Freeciv-3.2
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes
production_widget Class Reference

#include <citydlg.h>

+ Inheritance diagram for production_widget:

Public Slots

void prod_selected (const QItemSelection &sl, const QItemSelection &ds)
 

Public Member Functions

 production_widget (QWidget *parent, struct city *pcity, bool future, int when, int curr, bool show_units, bool buy=false, bool show_wonders=true, bool show_buildings=true)
 
 ~production_widget ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 
bool eventFilter (QObject *obj, QEvent *ev)
 

Private Attributes

city_production_modellist_model
 
city_production_delegatec_p_d
 
struct citypw_city
 
int when_change
 
int curr_selection
 
bool sh_units
 
bool buy_it
 
fc_tooltipfc_tt
 

Detailed Description

Definition at line 384 of file citydlg.h.

Constructor & Destructor Documentation

◆ production_widget()

production_widget::production_widget ( QWidget *  parent,
struct city pcity,
bool  future,
int  when,
int  curr,
bool  show_units,
bool  buy = false,
bool  show_wonders = true,
bool  show_buildings = true 
)

Constructor for production widget future - show future targets show_units - if to show units when - where to insert curr - current index to insert buy - buy if possible

Definition at line 4519 of file citydlg.cpp.

◆ ~production_widget()

production_widget::~production_widget ( )

Destructor for production widget

Definition at line 4704 of file citydlg.cpp.

Member Function Documentation

◆ eventFilter()

bool production_widget::eventFilter ( QObject *  obj,
QEvent *  ev 
)
protected

Event filter for production widget

Definition at line 4606 of file citydlg.cpp.

◆ mousePressEvent()

void production_widget::mousePressEvent ( QMouseEvent event)
protected

Mouse press event for production widget

Definition at line 4593 of file citydlg.cpp.

◆ prod_selected

void production_widget::prod_selected ( const QItemSelection sl,
const QItemSelection ds 
)
slot

Changed selection in production widget

Definition at line 4631 of file citydlg.cpp.

Referenced by production_widget().

Field Documentation

◆ buy_it

bool production_widget::buy_it
private

Definition at line 409 of file citydlg.h.

Referenced by prod_selected(), and production_widget().

◆ c_p_d

city_production_delegate* production_widget::c_p_d
private

Definition at line 389 of file citydlg.h.

Referenced by production_widget(), and ~production_widget().

◆ curr_selection

int production_widget::curr_selection
private

Definition at line 407 of file citydlg.h.

Referenced by prod_selected(), and production_widget().

◆ fc_tt

fc_tooltip* production_widget::fc_tt
private

Definition at line 410 of file citydlg.h.

Referenced by production_widget(), and ~production_widget().

◆ list_model

city_production_model* production_widget::list_model
private

Definition at line 388 of file citydlg.h.

Referenced by production_widget(), and ~production_widget().

◆ pw_city

struct city* production_widget::pw_city
private

Definition at line 405 of file citydlg.h.

Referenced by prod_selected(), and production_widget().

◆ sh_units

bool production_widget::sh_units
private

Definition at line 408 of file citydlg.h.

Referenced by production_widget().

◆ when_change

int production_widget::when_change
private

Definition at line 406 of file citydlg.h.

Referenced by prod_selected(), and production_widget().