Advanced Strategic Command
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
CargoWidget Class Reference

#include <cargowidget.h>

Inheritance diagram for CargoWidget:
Inheritance graph
[legend]

Public Member Functions

 CargoWidget (PG_Widget *parent, const PG_Rect &pos, ContainerBase *container, bool setup)
 
bool eventKeyDown (const SDL_KeyboardEvent *key)
 
VehiclegetMarkedUnit ()
 
void redrawAll ()
 
void startDrag (Vehicle *v)
 
void releaseDrag (Vehicle *v=NULL)
 
void releaseDrag (int x, int y)
 
void enableDragNDrop (bool enable)
 
bool dragNdropEnabled () const
 
void registerStoringPositions (vector< StoringPosition * > sp, const int &colcount)
 
HighLightingManagergetHighLightingManager ()
 

Public Attributes

sigc::signal< void, Vehicle * > unitMarked
 
sigc::signal< void, Vehicle
*, SPoint, bool > 
unitClicked
 the bool param is set to true if this is the first click on a unit More...
 
sigc::signal< void, Vehicle
*, Vehicle * > 
sigDragDone
 First param: dragged unit, Second Param: target unit. More...
 
sigc::signal< bool, Vehicle
*, Vehicle * > 
sigDragAvail
 First param: dragged unit, Second Param: target unit. More...
 
sigc::signal< void > sigDragInProcess
 
sigc::signal< void > sigDragAborted
 
sigc::signal< void > sigScrollTrack
 

Protected Member Functions

bool handleScrollTrack (long data)
 

Detailed Description

Definition at line 90 of file cargowidget.h.

Constructor & Destructor Documentation

CargoWidget::CargoWidget ( PG_Widget *  parent,
const PG_Rect &  pos,
ContainerBase container,
bool  setup 
)

Member Function Documentation

bool CargoWidget::dragNdropEnabled ( ) const
inline

Definition at line 133 of file cargowidget.h.

Referenced by StoringPosition::eventMouseButtonDown().

void CargoWidget::enableDragNDrop ( bool  enable)
inline

Definition at line 132 of file cargowidget.h.

Referenced by CargoDialog::userHandler().

bool CargoWidget::eventKeyDown ( const SDL_KeyboardEvent *  key)

Definition at line 454 of file cargowidget.cpp.

HighLightingManager& CargoWidget::getHighLightingManager ( )
inline

Definition at line 135 of file cargowidget.h.

Referenced by CargoDialog::userHandler().

Vehicle * CargoWidget::getMarkedUnit ( )
bool CargoWidget::handleScrollTrack ( long  data)
protected

Definition at line 416 of file cargowidget.cpp.

References sigScrollTrack.

Referenced by CargoWidget().

void CargoWidget::redrawAll ( )
void CargoWidget::registerStoringPositions ( vector< StoringPosition * >  sp,
const int &  colcount 
)
void CargoWidget::releaseDrag ( Vehicle v = NULL)
void CargoWidget::releaseDrag ( int  x,
int  y 
)

Definition at line 524 of file cargowidget.cpp.

References StoringPosition::NoDragging, sigDragAborted, and sigDragDone.

void CargoWidget::startDrag ( Vehicle v)

Member Data Documentation

sigc::signal<void> CargoWidget::sigDragAborted

Definition at line 128 of file cargowidget.h.

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

sigc::signal<bool, Vehicle*, Vehicle*> CargoWidget::sigDragAvail

First param: dragged unit, Second Param: target unit.

Definition at line 125 of file cargowidget.h.

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

sigc::signal<void, Vehicle*, Vehicle*> CargoWidget::sigDragDone

First param: dragged unit, Second Param: target unit.

Definition at line 122 of file cargowidget.h.

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

sigc::signal<void> CargoWidget::sigDragInProcess

Definition at line 127 of file cargowidget.h.

Referenced by StoringPosition::eventMouseMotion(), and CargoDialog::userHandler().

sigc::signal<void> CargoWidget::sigScrollTrack

Definition at line 130 of file cargowidget.h.

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

sigc::signal<void,Vehicle*,SPoint,bool> CargoWidget::unitClicked

the bool param is set to true if this is the first click on a unit

Definition at line 114 of file cargowidget.h.

Referenced by CargoDialog::userHandler().

sigc::signal<void,Vehicle*> CargoWidget::unitMarked

Definition at line 111 of file cargowidget.h.

Referenced by CargoDialog::userHandler().


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