CompanyWindow Struct Reference

Window with general information about a company. More...

Inheritance diagram for CompanyWindow:

Window ZeroedMemoryAllocator

Public Member Functions

 CompanyWindow (const WindowDesc *desc, WindowNumber window_number)
virtual void OnPaint ()
 This window is currently being repainted.
virtual void OnClick (Point pt, int widget)
 A click with the left mouse button has been made on the window.
virtual void OnHundredthTick ()
 Called once every 100 (game) ticks.
virtual void OnPlaceObject (Point pt, TileIndex tile)
 The user clicked some place on the map when a tile highlight mode has been set.
virtual void OnPlaceObjectAbort ()
 The user cancelled a tile highlight mode that has been set.
virtual void OnQueryTextFinished (char *str)
 The query window opened from this window has closed.

Data Fields

CompanyWindowWidgets query_widget

Detailed Description

Window with general information about a company.

Definition at line 1251 of file company_gui.cpp.


Member Function Documentation

virtual void CompanyWindow::OnClick ( Point  pt,
int  widget 
) [inline, virtual]

virtual void CompanyWindow::OnPlaceObject ( Point  pt,
TileIndex  tile 
) [inline, virtual]

The user clicked some place on the map when a tile highlight mode has been set.

Parameters:
pt the exact point on the map that has been clicked.
tile the tile on the map that has been clicked.

Reimplemented from Window.

Definition at line 1422 of file company_gui.cpp.

References CMD_BUILD_COMPANY_HQ, CMD_MSG, DoCommandP(), and Window::RaiseButtons().

virtual void CompanyWindow::OnQueryTextFinished ( char *  str  )  [inline, virtual]

The query window opened from this window has closed.

Parameters:
str the new value of the string or NULL if the window was cancelled.

Reimplemented from Window.

Definition at line 1435 of file company_gui.cpp.

References CMD_MSG, CMD_RENAME_COMPANY, CMD_RENAME_PRESIDENT, and DoCommandP().


The documentation for this struct was generated from the following file:

Generated on Sun Mar 15 22:50:14 2009 for openttd by  doxygen 1.5.6