Advanced Strategic Command
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ResearchGraph Class Reference
Inheritance diagram for ResearchGraph:
Inheritance graph
[legend]

Public Member Functions

 ResearchGraph (PG_Widget *parent, const PG_Rect &rect, ContainerBase *container)
 
- Public Member Functions inherited from GraphWidget
 GraphWidget (PG_Widget *parent, const PG_Rect &rect)
 
void setRange (int x, int y)
 
int addCurve (int color)
 
int addBar (int pos, int color)
 
void addVerticalLine (int x, int color)
 
void clearVerticalLines ()
 
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 

Public Attributes

sigc::signal< void > sigChange
 

Protected Member Functions

int getPoint (int curve, int x)
 
void addSecondaryLab (ContainerBase *lab)
 
void recalc ()
 
bool setResearch (ContainerBase *lab, int x)
 
void click (int x, int button)
 
void setResearch (int x, bool global=false)
 
- Protected Member Functions inherited from GraphWidget
virtual int getBarHeight (int bar)
 
bool eventMouseMotion (const SDL_MouseMotionEvent *motion)
 
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 
int mapColor (int col)
 

Additional Inherited Members

- Protected Attributes inherited from GraphWidget
int xrange
 
int yrange
 

Detailed Description

Definition at line 1304 of file cargodialog.cpp.

Constructor & Destructor Documentation

ResearchGraph::ResearchGraph ( PG_Widget *  parent,
const PG_Rect &  rect,
ContainerBase container 
)
inline

Member Function Documentation

void ResearchGraph::addSecondaryLab ( ContainerBase lab)
inlineprotected
void ResearchGraph::click ( int  x,
int  button 
)
inlineprotectedvirtual

Reimplemented from GraphWidget.

Definition at line 1353 of file cargodialog.cpp.

References setResearch().

int ResearchGraph::getPoint ( int  curve,
int  x 
)
inlineprotectedvirtual

Reimplemented from GraphWidget.

Definition at line 1308 of file cargodialog.cpp.

References Resources::energy, and returnResourcenUseForResearch().

void ResearchGraph::recalc ( )
inlineprotected
bool ResearchGraph::setResearch ( ContainerBase lab,
int  x 
)
inlineprotected
void ResearchGraph::setResearch ( int  x,
bool  global = false 
)
inlineprotected

Member Data Documentation

sigc::signal<void> ResearchGraph::sigChange

Definition at line 1381 of file cargodialog.cpp.

Referenced by setResearch(), and CargoDialog::userHandler().


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