Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions
impr_info Class Reference

#include <citydlg.h>

+ Inheritance diagram for impr_info:

Public Member Functions

 impr_info (QWidget *parent)
 
 ~impr_info ()
 
void add_item (impr_item *item)
 
void init_layout ()
 
void update_buildings ()
 
void clear_layout ()
 

Data Fields

QHBoxLayoutlayout
 
QList< impr_item * > impr_list
 

Protected Member Functions

void wheelEvent (QWheelEvent *event)
 

Detailed Description

Definition at line 251 of file citydlg.h.

Constructor & Destructor Documentation

◆ impr_info()

impr_info::impr_info ( QWidget *  parent)

Improvement list constructor

Definition at line 472 of file citydlg.cpp.

◆ ~impr_info()

impr_info::~impr_info ( )

Improvement list destructor

Definition at line 495 of file citydlg.cpp.

Member Function Documentation

◆ add_item()

void impr_info::add_item ( impr_item item)

Adds improvement item to list

Definition at line 503 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

◆ clear_layout()

void impr_info::clear_layout ( )

Clears layout on improvement list

Definition at line 511 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

◆ init_layout()

void impr_info::init_layout ( )

Inits improvement list constructor

Definition at line 482 of file citydlg.cpp.

Referenced by impr_info().

◆ update_buildings()

void impr_info::update_buildings ( )

Updates list of improvements

Definition at line 555 of file citydlg.cpp.

Referenced by city_dialog::update_improvements().

◆ wheelEvent()

void impr_info::wheelEvent ( QWheelEvent event)
protected

Mouse wheel event - send it to scrollbar

Definition at line 536 of file citydlg.cpp.

Field Documentation

◆ impr_list

QList<impr_item *> impr_info::impr_list

Definition at line 262 of file citydlg.h.

Referenced by add_item(), clear_layout(), and update_buildings().

◆ layout

QHBoxLayout* impr_info::layout

Definition at line 261 of file citydlg.h.

Referenced by clear_layout(), impr_info(), init_layout(), and update_buildings().