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

#include <gotodlg.h>

+ Inheritance diagram for goto_dialog:

Public Slots

void close_dlg ()
 

Public Member Functions

 goto_dialog (QWidget *parent=0)
 
void init ()
 
 ~goto_dialog ()
 
void update_dlg ()
 
void show_me ()
 
void sort_def ()
 
- Public Member Functions inherited from qfc_dialog
 qfc_dialog (QWidget *parent)
 
void reactivate ()
 

Protected Member Functions

void paint (QPainter *painter, QPaintEvent *event)
 
void paintEvent (QPaintEvent *event)
 
- Protected Member Functions inherited from qfc_dialog
void paintEvent (QPaintEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 

Private Slots

void go_to_city ()
 
void airlift_to ()
 
void item_selected (const QItemSelection &sl, const QItemSelection &ds)
 
void checkbox_changed (Qt::CheckState state)
 
void checkbox_changed_depr (int state)
 

Private Member Functions

void fill_tab (struct player *pplayer)
 

Private Attributes

QTableWidget * goto_tab
 
QPushButton * goto_city
 
QPushButton * airlift_city
 
QPushButton * close_but
 
QCheckBoxshow_all
 
QGridLayoutlayout
 
QLabel * show_all_label
 
struct tileoriginal_tile
 

Detailed Description

Definition at line 42 of file gotodlg.h.

Constructor & Destructor Documentation

◆ goto_dialog()

goto_dialog::goto_dialog ( QWidget *  parent = 0)

Constructor for goto_dialog

Definition at line 70 of file gotodlg.cpp.

◆ ~goto_dialog()

goto_dialog::~goto_dialog ( )

Destructor for goto dialog

Definition at line 156 of file gotodlg.cpp.

Member Function Documentation

◆ airlift_to

void goto_dialog::airlift_to ( )
privateslot

Slot for airlifting unit

Definition at line 433 of file gotodlg.cpp.

Referenced by goto_dialog().

◆ checkbox_changed

void goto_dialog::checkbox_changed ( Qt::CheckState  state)
privateslot

Slot for checkbox 'all nations'

Definition at line 163 of file gotodlg.cpp.

Referenced by goto_dialog().

◆ checkbox_changed_depr

void goto_dialog::checkbox_changed_depr ( int  state)
privateslot

Slot for checkbox 'all nations' This deprecated slot is used in Qt < 6.7

Definition at line 172 of file gotodlg.cpp.

Referenced by goto_dialog().

◆ close_dlg

void goto_dialog::close_dlg ( )
slot

Slot for hiding dialog

Definition at line 474 of file gotodlg.cpp.

Referenced by goto_dialog(), and popdown_all_game_dialogs().

◆ fill_tab()

void goto_dialog::fill_tab ( struct player pplayer)
private

Helper for function for filling table

Definition at line 271 of file gotodlg.cpp.

Referenced by update_dlg().

◆ go_to_city

void goto_dialog::go_to_city ( )
privateslot

Slot for goto for city

Definition at line 454 of file gotodlg.cpp.

Referenced by goto_dialog().

◆ init()

void goto_dialog::init ( )

Sets variables which must be destroyed later

Definition at line 145 of file gotodlg.cpp.

Referenced by popup_goto_dialog(), and show_me().

◆ item_selected

void goto_dialog::item_selected ( const QItemSelection sl,
const QItemSelection ds 
)
privateslot

User has chosen some city on table

Definition at line 180 of file gotodlg.cpp.

Referenced by goto_dialog().

◆ paint()

void goto_dialog::paint ( QPainter painter,
QPaintEvent event 
)
protected

Paints rectangles for goto_dialog

Definition at line 488 of file gotodlg.cpp.

Referenced by paintEvent().

◆ paintEvent()

void goto_dialog::paintEvent ( QPaintEvent event)
protected

Paint event for goto_dialog

Definition at line 499 of file gotodlg.cpp.

◆ show_me()

void goto_dialog::show_me ( )

Shows and moves widget

Definition at line 227 of file gotodlg.cpp.

Referenced by popup_goto_dialog().

◆ sort_def()

void goto_dialog::sort_def ( )

Sorts dialog by default column (0)

Definition at line 219 of file gotodlg.cpp.

Referenced by popup_goto_dialog().

◆ update_dlg()

void goto_dialog::update_dlg ( )

Updates table in widget

Definition at line 250 of file gotodlg.cpp.

Referenced by checkbox_changed(), checkbox_changed_depr(), popup_goto_dialog(), and qtg_real_focus_units_changed().

Field Documentation

◆ airlift_city

QPushButton* goto_dialog::airlift_city
private

Definition at line 47 of file gotodlg.h.

Referenced by goto_dialog(), and item_selected().

◆ close_but

QPushButton* goto_dialog::close_but
private

Definition at line 48 of file gotodlg.h.

Referenced by goto_dialog().

◆ goto_city

QPushButton* goto_dialog::goto_city
private

Definition at line 46 of file gotodlg.h.

Referenced by goto_dialog().

◆ goto_tab

QTableWidget* goto_dialog::goto_tab
private

◆ layout

QGridLayout* goto_dialog::layout
private

Definition at line 50 of file gotodlg.h.

Referenced by goto_dialog().

◆ original_tile

struct tile* goto_dialog::original_tile
private

Definition at line 76 of file gotodlg.h.

Referenced by close_dlg(), goto_dialog(), init(), and show_me().

◆ show_all

QCheckBox* goto_dialog::show_all
private

Definition at line 49 of file gotodlg.h.

Referenced by goto_dialog(), and update_dlg().

◆ show_all_label

QLabel* goto_dialog::show_all_label
private

Definition at line 51 of file gotodlg.h.

Referenced by goto_dialog().