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

#include <view_map.h>

+ Inheritance diagram for info_tile:
+ Collaboration diagram for info_tile:

Static Public Member Functions

static info_tilei (struct tile *p=nullptr)
 Returns given instance. More...
 
static void drop ()
 Deletes current instance. More...
 
static bool shown ()
 Check if the info tile is currently shown. More...
 

Public Attributes

struct tileitile
 

Private Member Functions

 Q_DISABLE_COPY (info_tile)
 
 info_tile (struct tile *ptile, QWidget *parent=0)
 Constructor for info_tile. More...
 
void calc_size ()
 Calculates size of info_tile and moves it to be fully visible. More...
 

Static Private Attributes

static info_tilem_instance = nullptr
 

Detailed Description

Definition at line 115 of file view_map.h.

Constructor & Destructor Documentation

◆ info_tile()

info_tile::info_tile ( struct tile ptile,
QWidget *  parent = 0 
)
private

Constructor for info_tile.

Definition at line 612 of file view_map.cpp.

Referenced by i().

Member Function Documentation

◆ calc_size()

void info_tile::calc_size ( )
private

Calculates size of info_tile and moves it to be fully visible.

Definition at line 625 of file view_map.cpp.

Referenced by info_tile().

◆ drop()

void info_tile::drop ( )
static

Deletes current instance.

Definition at line 657 of file view_map.cpp.

Referenced by popdown_tile_info().

◆ i()

info_tile * info_tile::i ( struct tile p = nullptr)
static

Returns given instance.

Definition at line 671 of file view_map.cpp.

Referenced by popdown_tile_info(), and popup_tile_info().

◆ Q_DISABLE_COPY()

info_tile::Q_DISABLE_COPY ( info_tile  )
private

◆ shown()

bool info_tile::shown ( )
static

Check if the info tile is currently shown.

Definition at line 666 of file view_map.cpp.

Referenced by map_view::shortcut_released().

Member Data Documentation

◆ itile

struct tile* info_tile::itile

Definition at line 124 of file view_map.h.

Referenced by calc_size(), and info_tile().

◆ m_instance

info_tile * info_tile::m_instance = nullptr
staticprivate

Definition at line 128 of file view_map.h.

Referenced by drop(), i(), and shown().