21#include <QElapsedTimer>
22#include <QItemDelegate>
24#include <QProgressBar>
51#define SPECENUM_NAME city_info
53#define SPECENUM_VALUE0 INFO_CITIZEN
54#define SPECENUM_VALUE0NAME N_("Size:")
55#define SPECENUM_VALUE1 INFO_FOOD
56#define SPECENUM_VALUE1NAME N_("Food:")
57#define SPECENUM_VALUE2 INFO_SHIELD
58#define SPECENUM_VALUE2NAME N_("Prod:")
59#define SPECENUM_VALUE3 INFO_TRADE
60#define SPECENUM_VALUE3NAME N_("Trade:")
61#define SPECENUM_VALUE4 INFO_GOLD
62#define SPECENUM_VALUE4NAME N_("Gold:")
63#define SPECENUM_VALUE5 INFO_LUXURY
64#define SPECENUM_VALUE5NAME N_("Luxury:")
65#define SPECENUM_VALUE6 INFO_SCIENCE
66#define SPECENUM_VALUE6NAME N_("Science:")
67#define SPECENUM_VALUE7 INFO_GRANARY
68#define SPECENUM_VALUE7NAME N_("Granary:")
69#define SPECENUM_VALUE8 INFO_GROWTH
70#define SPECENUM_VALUE8NAME N_("Change in:")
71#define SPECENUM_VALUE9 INFO_CORRUPTION
72#define SPECENUM_VALUE9NAME N_("Corruption:")
73#define SPECENUM_VALUE10 INFO_WASTE
74#define SPECENUM_VALUE10NAME N_("Waste:")
75#define SPECENUM_VALUE11 INFO_CULTURE
76#define SPECENUM_VALUE11NAME N_("Culture:")
77#define SPECENUM_VALUE12 INFO_POLLUTION
78#define SPECENUM_VALUE12NAME N_("Pollution:")
79#define SPECENUM_VALUE13 INFO_ILLNESS
80#define SPECENUM_VALUE13NAME N_("Plague risk:")
81#define SPECENUM_VALUE14 INFO_STEAL
82#define SPECENUM_VALUE14NAME N_("Tech Stolen:")
83#define SPECENUM_VALUE15 INFO_AIRLIFT
84#define SPECENUM_VALUE15NAME N_("Airlift:")
86#define SPECENUM_COUNT NUM_INFO_FIELDS
323 const QRect &rect)
const;
355 QObject *
parent =
nullptr);
367 int role = Qt::DisplayRole);
393 int when,
int curr,
bool show_units,
bool buy =
false,
394 bool show_wonders =
true,
bool show_buildings =
true);
void set_city(struct city *pcity)
void mousePressEvent(QMouseEvent *event)
void paintEvent(QPaintEvent *event)
void mousePressEvent(QMouseEvent *event)
void set_pixmap(struct city *pcity, float z)
void context_menu(QPoint point)
QSize minimumSizeHint() const
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
void drawFocus(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const
~city_production_delegate()
int rowCount(const QModelIndex &index=QModelIndex()) const
QList< production_item * > city_target_list
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole)
int columnCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
void add_item(impr_item *item)
void wheelEvent(QWheelEvent *event)
QList< impr_item * > impr_list
void mouseDoubleClickEvent(QMouseEvent *event)
void enterEvent(QEnterEvent *event)
struct canvas * impr_pixmap
const struct impr_type * impr
void leaveEvent(QEvent *event)
void wheelEvent(QWheelEvent *event)
struct universal * target
void paintEvent(QPaintEvent *event)
void resizeEvent(QResizeEvent *event)
void set_pixmap(struct universal *target)
void mousePressEvent(QMouseEvent *event)
void timerEvent(QTimerEvent *event)
void wheelEvent(QWheelEvent *event)
void add_item(unit_item *item)
QList< unit_item * > unit_list
void enterEvent(QEnterEvent *event)
void contextMenuEvent(QContextMenuEvent *ev)
QAction * activate_and_close
void mousePressEvent(QMouseEvent *event)
void wheelEvent(QWheelEvent *event)
void leaveEvent(QEvent *event)
void activate_and_close_dialog()
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
QString get_tooltip_improvement(const impr_type *building, struct city *pcity=nullptr, bool ext=false)
QString get_tooltip_unit(const struct unit_type *utype, bool ext=false)
QString get_tooltip(QVariant qvar)
void destroy_city_dialog()
struct player_slot * slots
void setup_ui(struct city *qcity)
city_label * citizens_label
QGroupBox * info_labels_group
void closeEvent(QCloseEvent *event)
void update_nation_table()
void hideEvent(QHideEvent *event)
void cma_toggle_changed_depr(int state)
QPushButton * work_next_but
progress_bar * production_combo_p
QTableWidget * nationality_table
void showEvent(QShowEvent *event)
QPushButton * happiness_button
void cma_double_clicked(int row, int column)
void display_worklist_menu(const QPoint &p)
QPushButton * next_city_but
QLabel * qlt[NUM_INFO_FIELDS]
QPushButton * work_prev_but
unit_info * supported_units
QHBoxLayout * single_page_layout
QHBoxLayout * leftbot_layout
QPushButton * zoom_in_button
QGridLayout * info_grid_layout
QPushButton * counterss_button
impr_info * city_buildings
city_label * lab_table[6]
unit_info * current_units
QPushButton * zoom_out_button
struct city_dialog::@148 happiness
QPushButton * work_add_but
QSplitter * central_left_splitter
void disband_state_changed(bool allow_disband)
QCheckBox * cma_celeb_checkbox
enum city_dialog::city_dialog_tab current_tab
void dbl_click_p(QTableWidgetItem *item)
QPushButton * cma_enable_but
QSlider * slider_tab[2 *O_LAST+2]
bool eventFilter(QObject *obj, QEvent *event)
QSplitter * prod_unit_splitter
QVBoxLayout * left_layout
QPushButton * work_rem_but
QSplitter * central_splitter
QWidget * prod_happ_widget
void cma_toggle_changed(Qt::CheckState state)
QVBoxLayout * counterss_layout
QPushButton * prev_city_but
void update_counters_table()
void update_improvements()
QHBoxLayout * happiness_layout
QCheckBox * future_targets
void change_production(bool next)
void cma_selected(const QItemSelection &sl, const QItemSelection &ds)
QCheckBox * cma_max_growth
void item_selected(const QItemSelection &sl, const QItemSelection &ds)
void show_targets_worklist()
void cma_context_menu(const QPoint &p)
struct city_dialog::@149 counters
void production_changed(int index)
void update_prod_buttons()
QWidget * happiness_widget
QGroupBox * happiness_group
QCheckBox * show_buildings