Freeciv21
Develop your civilization from humble roots to a global empire
eco_report Class Reference

#include <view_economics.h>

+ Inheritance diagram for eco_report:
+ Collaboration diagram for eco_report:

Public Member Functions

 eco_report ()
 Constructor for economy report. More...
 
 ~eco_report ()
 Destructor for economy report. More...
 
void update_report ()
 Refresh all widgets for economy report. More...
 
void init ()
 Initializes place in tab for economy report. More...
 

Private Slots

void disband_units ()
 Disband pointed units (in economy report) More...
 
void sell_buildings ()
 Sell all pointed builings. More...
 
void sell_redundant ()
 Sells redundant buildings. More...
 
void selection_changed (const QItemSelection &sl, const QItemSelection &ds)
 Action for selection changed in economy report. More...
 

Private Attributes

int index
 
int curr_row {-1}
 
int max_row {0}
 
cid uid {0}
 
int counter {0}
 
Ui::FormEconomyReport ui
 

Detailed Description

Definition at line 21 of file view_economics.h.

Constructor & Destructor Documentation

◆ eco_report()

eco_report::eco_report ( )

Constructor for economy report.

Definition at line 27 of file view_economics.cpp.

◆ ~eco_report()

eco_report::~eco_report ( )

Destructor for economy report.

Definition at line 64 of file view_economics.cpp.

Member Function Documentation

◆ disband_units

void eco_report::disband_units ( )
privateslot

Disband pointed units (in economy report)

Definition at line 248 of file view_economics.cpp.

Referenced by eco_report().

◆ init()

void eco_report::init ( )

Initializes place in tab for economy report.

Definition at line 69 of file view_economics.cpp.

Referenced by economy_report_dialog_popup().

◆ selection_changed

void eco_report::selection_changed ( const QItemSelection &  sl,
const QItemSelection &  ds 
)
privateslot

Action for selection changed in economy report.

Definition at line 200 of file view_economics.cpp.

Referenced by eco_report().

◆ sell_buildings

void eco_report::sell_buildings ( )
privateslot

Sell all pointed builings.

Definition at line 286 of file view_economics.cpp.

Referenced by eco_report().

◆ sell_redundant

void eco_report::sell_redundant ( )
privateslot

Sells redundant buildings.

Definition at line 331 of file view_economics.cpp.

Referenced by eco_report().

◆ update_report()

void eco_report::update_report ( )

Refresh all widgets for economy report.

Definition at line 74 of file view_economics.cpp.

Referenced by economy_report_dialog_popup(), and real_economy_report_dialog_update().

Member Data Documentation

◆ counter

int eco_report::counter {0}
private

Definition at line 35 of file view_economics.h.

Referenced by disband_units(), selection_changed(), sell_buildings(), and sell_redundant().

◆ curr_row

int eco_report::curr_row {-1}
private

Definition at line 32 of file view_economics.h.

Referenced by selection_changed().

◆ index

int eco_report::index
private

Definition at line 31 of file view_economics.h.

Referenced by eco_report(), and init().

◆ max_row

int eco_report::max_row {0}
private

Definition at line 33 of file view_economics.h.

Referenced by selection_changed(), and update_report().

◆ ui

Ui::FormEconomyReport eco_report::ui
private

Definition at line 36 of file view_economics.h.

Referenced by eco_report(), selection_changed(), and update_report().

◆ uid

cid eco_report::uid {0}
private

Definition at line 34 of file view_economics.h.

Referenced by disband_units(), selection_changed(), sell_buildings(), and sell_redundant().