GLWidget Class Reference

#include <GLWidget.h>

Inheritance diagram for GLWidget:

MetaClass GLWBitmap GLWButton GLWChannelText GLWChannelView GLWCheckBox GLWCheckBoxText GLWDragger GLWDropDown GLWFileView GLWFlag GLWIcon GLWIconList GLWIconTable GLWImageList GLWLabel GLWListView GLWPanel GLWPlanView GLWScorchedInfo GLWScrollW GLWSlider GLWSpacer GLWSpinBox GLWTalkBox GLWTankFire GLWTankModel GLWTankViewer GLWTextBox GLWTime GLWTracker GLWWeaponModel GLWWindView

List of all members.

Public Member Functions

 GLWidget (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWidget ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void mouseUp (int button, float x, float y, bool &skipRest)
virtual void mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest)
virtual void keyDown (char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest)
virtual void mouseWheel (float x, float y, float z, bool &skipRest)
virtual void display ()
virtual void hide ()
unsigned int getId ()
virtual bool initFromXML (XMLNode *node)
virtual void setToolTip (ToolTip *tooltip)
virtual void setParent (GLWPanel *parent)
virtual GLWPanelgetParent ()
virtual void layout ()
void setVisible (bool visible)
bool getVisible ()
void setUserData (void *data)
void * getUserData ()
virtual const char * getName ()
virtual void setName (const std::string &name)
virtual float getX ()
virtual float getY ()
virtual float getW ()
virtual float getH ()
virtual void setX (float x)
virtual void setY (float y)
virtual void setW (float w)
virtual void setH (float h)

Static Public Member Functions

static bool inBox (float posX, float posY, float x, float y, float w, float h)
static void drawRoundBox (float x, float y, float w, float h, float size)
static void drawShadedRoundBox (float x, float y, float w, float h, float size, bool depressed)
static void drawCircle (int startA, int endA, float posX, float posY, float size)
static void drawWholeCircle (bool cap=false)
static void drawBox (float x, float y, float w, float h, bool depressed)

Protected Attributes

std::string name_
unsigned int id_
float x_
float y_
float w_
float h_
ToolTiptooltip_
bool tooltipTransparent_
bool visible_
GLWPanelparent_
void * userData_

Static Protected Attributes

static unsigned int nextId_ = 0


Detailed Description

A base class for al GL Widgets. Defines the interface.

Definition at line 35 of file GLWidget.h.


Constructor & Destructor Documentation

GLWidget::GLWidget ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 33 of file GLWidget.cpp.

GLWidget::~GLWidget (  )  [virtual]

Definition at line 39 of file GLWidget.cpp.


Member Function Documentation

void GLWidget::draw (  )  [virtual]

Reimplemented in AnimatedBackdropDialog, BackdropDialog, BuyAccessoryDialog, CameraDialog, LogDialog, MessageDialog, PlayerDialog, ProgressDialog, RulesDialog, ScoreDialog, StartDialog, TutorialDialog, GLMenu, GLWBitmap, GLWButton, GLWChannelText, GLWChannelView, GLWCheckBox, GLWCheckBoxText, GLWDropDown, GLWDropDownColor, GLWDropDownText, GLWFileView, GLWFlag, GLWIcon, GLWIconButton, GLWIconList, GLWIconTable, GLWImageList, GLWLabel, GLWListView, GLWPanel, GLWPlanView, GLWProgress, GLWScorchedInfo, GLWScrollPanel, GLWScrollW, GLWSelector, GLWSlider, GLWSpinBox, GLWTab, GLWTalkBox, GLWTankModel, GLWTankSlider, GLWTankViewer, GLWTextBox, GLWTextButton, GLWTime, GLWTankTracker, GLWWeaponModel, GLWWindow, and GLWWindView.

Definition at line 43 of file GLWidget.cpp.

References GLWToolTip::addToolTip(), GLWToolTip::clearToolTip(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), GL_COMPILE, glEndList(), glGenLists(), glNewList(), glVertex2f(), h_, GLWToolTip::instance(), listNo, PI, tooltip_, tooltipTransparent_, w_, x_, and y_.

Referenced by GLWWindView::draw(), GLWWeaponModel::draw(), GLWTankTracker::draw(), GLWTime::draw(), GLWTextBox::draw(), GLWTankSlider::draw(), GLWTalkBox::draw(), GLWScrollPanel::draw(), GLWScorchedInfo::draw(), GLWPlanView::draw(), GLWPanel::draw(), GLWLabel::draw(), GLWImageList::draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWIconButton::draw(), GLWIcon::draw(), GLWDropDown::draw(), GLWCheckBoxText::draw(), GLWCheckBox::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWButton::draw(), and GLWBitmap::draw().

void GLWidget::simulate ( float  frameTime  )  [virtual]

Reimplemented in AnimatedBackdropDialog, CameraDialog, ConnectDialog, MessageDialog, NetworkSelectDialog, SkipAllDialog, TutorialDialog, GLWButton, GLWChannelText, GLWChannelView, GLWFileView, GLWFlag, GLWIconList, GLWIconTable, GLWImageList, GLWListView, GLWPanel, GLWPlanView, GLWScrollPanel, GLWScrollW, GLWTalkBox, GLWTankModel, GLWTankViewer, GLWTextBox, and GLWWeaponModel.

Definition at line 81 of file GLWidget.cpp.

Referenced by GLWWeaponModel::simulate(), GLWPanel::simulate(), and GLWImageList::simulate().

void GLWidget::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented in CameraDialog, MsgBoxDialog, StartDialog, GLMenu, GLWButton, GLWChannelText, GLWChannelView, GLWCheckBox, GLWCheckBoxText, GLWDragger, GLWDropDown, GLWFileView, GLWIconList, GLWIconTable, GLWImageList, GLWListView, GLWPanel, GLWPlanView, GLWPushButton, GLWScorchedInfo, GLWScrollButton, GLWScrollPanel, GLWScrollW, GLWSelector, GLWSlider, GLWSpinBox, GLWTab, GLWTankFire, GLWTankModel, GLWTankViewer, GLWTextBox, GLWTracker, GLWWeaponModel, GLWWindow, and GLWWindView.

Definition at line 91 of file GLWidget.cpp.

Referenced by GLWScrollPanel::mouseDown(), GLWScorchedInfo::mouseDown(), GLWImageList::mouseDown(), GLWCheckBoxText::mouseDown(), and GLWCheckBox::mouseDown().

void GLWidget::mouseUp ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented in MsgBoxDialog, GLMenu, GLWButton, GLWChannelText, GLWChannelView, GLWCheckBoxText, GLWDragger, GLWDropDown, GLWFileView, GLWIconList, GLWIconTable, GLWImageList, GLWListView, GLWPanel, GLWPlanView, GLWPushButton, GLWScrollPanel, GLWScrollW, GLWSelector, GLWSlider, GLWSpinBox, GLWTankFire, GLWTankViewer, GLWTracker, and GLWWindow.

Definition at line 96 of file GLWidget.cpp.

Referenced by GLWScrollPanel::mouseUp(), GLWImageList::mouseUp(), and GLWCheckBoxText::mouseUp().

void GLWidget::mouseDrag ( int  button,
float  mx,
float  my,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented in GLMenu, GLWButton, GLWChannelText, GLWChannelView, GLWCheckBoxText, GLWDragger, GLWFileView, GLWIconList, GLWIconTable, GLWImageList, GLWListView, GLWPanel, GLWPlanView, GLWScrollButton, GLWScrollPanel, GLWScrollW, GLWSelector, GLWSlider, GLWSpinBox, GLWTankViewer, GLWTracker, and GLWWindow.

Definition at line 101 of file GLWidget.cpp.

Referenced by GLWScrollPanel::mouseDrag(), GLWImageList::mouseDrag(), and GLWCheckBoxText::mouseDrag().

void GLWidget::keyDown ( char *  buffer,
unsigned int  keyState,
KeyboardHistory::HistoryElement history,
int  hisCount,
bool &  skipRest 
) [virtual]

Reimplemented in MsgBoxDialog, PlayerDialog, GLMenu, GLWButton, GLWChannelText, GLWChannelView, GLWPanel, GLWSelector, GLWSpinBox, GLWTalkBox, GLWTextBox, and GLWWindow.

Definition at line 106 of file GLWidget.cpp.

void GLWidget::mouseWheel ( float  x,
float  y,
float  z,
bool &  skipRest 
) [virtual]

Reimplemented in MsgBoxDialog, GLWFileView, GLWIconList, GLWIconTable, GLWListView, GLWPanel, GLWScrollPanel, GLWScrollW, GLWScrollWBackwards, GLWTab, GLWTankViewer, and GLWWindow.

Definition at line 113 of file GLWidget.cpp.

void GLWidget::display (  )  [virtual]

Reimplemented in AdminAuthDialog, AdminCheckDialog, AdminDialog, AuthDialog, BuyAccessoryDialog, GiftMoneyDialog, HUDDialog, InventoryDialog, ModSelectDialog, ModSubSelectDialog, NetworkSelectDialog, PlayerDialog, QuitDialog, RulesDialog, SaveDialog, SaveSelectDialog, ScoreDialog, SettingsSelectDialog, SettingsSubSelectDialog, SkipAllDialog, SoundDialog, TipDialog, TutorialDialog, GLWPanel, and GLWTalkBox.

Definition at line 118 of file GLWidget.cpp.

void GLWidget::hide (  )  [virtual]

Reimplemented in NetworkSelectDialog, RulesDialog, and GLWPanel.

Definition at line 123 of file GLWidget.cpp.

unsigned int GLWidget::getId (  )  [inline]

Definition at line 56 of file GLWidget.h.

References id_.

Referenced by BuyAccessoryDialog::addAccessory(), GLWIconList::addItem(), GLWWindowManager::addWindow(), AdminCheckDialog::adminResult(), AutoDefenseDialog::AutoDefenseDialog(), GLWSpinBox::buttonDown(), GLWScrollW::buttonDown(), GLWIconTable::buttonDown(), GLWChannelView::buttonDown(), TipDialog::buttonDown(), SoundDialog::buttonDown(), SettingsSelectDialog::buttonDown(), SaveSelectDialog::buttonDown(), QuitDialog::buttonDown(), PlayerDialog::buttonDown(), NetworkSelectDialog::buttonDown(), MsgBoxDialog::buttonDown(), ModSubSelectDialog::buttonDown(), ModSelectDialog::buttonDown(), LogDialog::buttonDown(), InventoryDialog::buttonDown(), HUDDialog::buttonDown(), GiftMoneyDialog::buttonDown(), BuyAccessoryDialog::buttonDown(), AuthDialog::buttonDown(), AdminDialog::buttonDown(), AdminAuthDialog::buttonDown(), BuyAccessoryDialog::BuyAccessoryDialog(), TutorialConditionWindowVisible::checkCondition(), SaveSelectDialog::chosen(), NetworkSelectDialog::columnSelected(), GLWTankTracker::currentChanged(), GLWTankSlider::currentChanged(), ScoreDialog::display(), GiftMoneyDialog::display(), AuthDialog::display(), AdminCheckDialog::display(), AdminAuthDialog::display(), AutoDefenseDialog::displayCurrent(), GLWWindowManager::draw(), GLMenu::draw(), NetworkSelectDialog::drawColumn(), GLWWindow::drawMaximizedWindow(), AutoDefenseDialog::finished(), GLWWindowManager::getFocus(), GLWWindowManager::getMenuItems(), GiftMoneyDialog::GiftMoneyDialog(), RulesDialog::hide(), HUDDialog::HUDDialog(), InventoryDialog::InventoryDialog(), GLWWindowManager::keyboardCheck(), GLWTalkBox::keyDown(), GLWChannelView::keyDown(), GLWButton::keyDown(), KibitzingDialog::KibitzingDialog(), GLWWindow::loadPosition(), GLWWindowManager::menuSelection(), ModSelectDialog::ModSelectDialog(), ModSubSelectDialog::ModSubSelectDialog(), GLWWindowManager::mouseDown(), GLWPushButton::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWCheckBox::mouseDown(), GLWButton::mouseDown(), StartDialog::mouseDown(), GLWWindowManager::mouseDrag(), GLWTracker::mouseDrag(), GLWDragger::mouseDrag(), GLWWindowManager::mouseUp(), GLWButton::mouseUp(), GLWWindowManager::mouseWheel(), GLWWindowManager::moveToFront(), NetworkSelectDialog::NetworkSelectDialog(), PlayerDialog::nextPlayer(), PlayerDialog::PlayerDialog(), GLWChannelView::registeredForChannels(), ResignDialog::ResignDialog(), NetworkSelectDialog::rowChosen(), NetworkSelectDialog::rowChosenGames(), NetworkSelectDialog::rowSelected(), RulesDialog::RulesDialog(), SaveDialog::SaveDialog(), GLWWindow::savePosition(), SaveSelectDialog::SaveSelectDialog(), PlayerDialog::select(), InventoryDialog::select(), BuyAccessoryDialog::select(), GLWSlider::setCurrent(), GLWScrollW::setCurrent(), GLWWindowManager::setCurrentEntry(), GLWTab::setDepressed(), SettingsSelectDialog::SettingsSelectDialog(), SettingsSubSelectDialog::SettingsSubSelectDialog(), GLWWindowManager::simulate(), GLWButton::simulate(), SkipAllDialog::SkipAllDialog(), SkipDialog::SkipDialog(), SoundDialog::SoundDialog(), BuyAccessoryDialog::stateChange(), TipDialog::TipDialog(), TutorialDialog::url(), and GLWWindowManager::windowInCurrentState().

bool GLWidget::initFromXML ( XMLNode node  )  [virtual]

Reimplemented in GLWBitmap, GLWChannelText, GLWChannelView, GLWIcon, GLWPanel, GLWScorchedInfo, GLWTalkBox, GLWTime, GLWWindow, and GLWWindowSkin.

Definition at line 128 of file GLWidget.cpp.

References XMLNode::getNamedChild(), name_, setH(), setW(), setX(), setY(), tooltipTransparent_, and visible_.

Referenced by GLWTime::initFromXML(), GLWTalkBox::initFromXML(), GLWScorchedInfo::initFromXML(), GLWPanel::initFromXML(), GLWIcon::initFromXML(), GLWChannelView::initFromXML(), GLWChannelText::initFromXML(), and GLWBitmap::initFromXML().

virtual void GLWidget::setToolTip ( ToolTip tooltip  )  [inline, virtual]

Definition at line 58 of file GLWidget.h.

References tooltip_.

Referenced by BuyAccessoryDialog::addAccessory(), InventoryDialog::addPlayerWeapons(), AutoDefenseDialog::AutoDefenseDialog(), GLWOptionEntry::createEntry(), GLWWeaponModel::draw(), GLWScorchedInfo::draw(), GLWChannelText::GLWChannelText(), GLWChannelView::GLWChannelView(), GLWPlanView::GLWPlanView(), GLWTankFire::GLWTankFire(), GLWTankSlider::GLWTankSlider(), GLWTankTracker::GLWTankTracker(), GLWTankViewer::GLWTankViewer(), GLWWindowSkin::GLWWindowSkin(), GLWWindView::GLWWindView(), MsgBoxDialog::MsgBoxDialog(), PlayerDialog::nextPlayer(), PlayerDialog::PlayerDialog(), and QuitDialog::QuitDialog().

void GLWidget::setParent ( GLWPanel parent  )  [virtual]

Reimplemented in GLWChannelText, GLWTab, and GLWTextBox.

Definition at line 86 of file GLWidget.cpp.

References parent_.

Referenced by GLWPanel::addWidget(), GLWTextBox::setParent(), GLWTab::setParent(), and GLWChannelText::setParent().

virtual GLWPanel* GLWidget::getParent (  )  [inline, virtual]

Definition at line 60 of file GLWidget.h.

References parent_.

Referenced by TutorialDialog::processHighlight(), and GLWChannelText::setVisible().

void GLWidget::layout (  )  [virtual]

Reimplemented in GLWPanel, and GLWTabContainer.

Definition at line 76 of file GLWidget.cpp.

Referenced by GLWPanel::layout().

void GLWidget::setVisible ( bool  visible  )  [inline]

Reimplemented in GLWChannelText.

Definition at line 62 of file GLWidget.h.

References visible_.

Referenced by PlayerDialog::display().

bool GLWidget::getVisible (  )  [inline]

Definition at line 63 of file GLWidget.h.

References visible_.

Referenced by ClientWindowSetup::addStateWindows().

void GLWidget::setUserData ( void *  data  )  [inline]

Definition at line 64 of file GLWidget.h.

References userData_.

void* GLWidget::getUserData (  )  [inline]

Definition at line 65 of file GLWidget.h.

References userData_.

virtual const char* GLWidget::getName (  )  [inline, virtual]

Reimplemented in GLWTab.

Definition at line 67 of file GLWidget.h.

References name_.

Referenced by GLWWindowManager::getMenuItems(), GLWPanel::getWidgetByName(), GLWWindowManager::getWindowByName(), GLWWindowManager::loadPositions(), GLWWindowManager::menuSelection(), and GLWWindowManager::savePositions().

virtual void GLWidget::setName ( const std::string name  )  [inline, virtual]

Definition at line 68 of file GLWidget.h.

References name_.

Referenced by BuyAccessoryDialog::BuyAccessoryDialog(), PlayerDialog::display(), GLWWindow::GLWWindow(), InventoryDialog::InventoryDialog(), and PlayerDialog::PlayerDialog().

virtual float GLWidget::getX (  )  [inline, virtual]

Definition at line 71 of file GLWidget.h.

References x_.

Referenced by BuyAccessoryDialog::addAccessory(), GLWTankViewer::draw(), GLWIconTable::draw(), GLWWindowManager::getFocus(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), TutorialDialog::processHighlight(), GLWWindow::savePosition(), and GLWWindowManager::savePositions().

virtual float GLWidget::getY (  )  [inline, virtual]

Definition at line 72 of file GLWidget.h.

References y_.

Referenced by GLWScrollPanel::calculateVisible(), GLWTankViewer::draw(), GLWScrollPanel::draw(), BuyAccessoryDialog::draw(), GLWWindowManager::getFocus(), GLWScrollPanel::mouseDown(), GLWScrollPanel::mouseDrag(), GLWScrollPanel::mouseUp(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), GLWScrollPanel::positionChange(), TutorialDialog::processHighlight(), GLWWindow::savePosition(), and GLWWindowManager::savePositions().

virtual float GLWidget::getW (  )  [inline, virtual]

Reimplemented in GLWCheckBoxText, GLWLabel, and GLWTime.

Definition at line 73 of file GLWidget.h.

References w_.

Referenced by GLWWindow::draw(), GLWTankViewer::draw(), GLWTalkBox::draw(), GLWIconTable::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWWindowManager::getFocus(), GLWTime::getW(), GLWLabel::getW(), GLWCheckBoxText::getW(), GLWPanel::layout(), TutorialDialog::processHighlight(), CameraDialog::savePosition(), SettingsSubSelectDialog::SettingsSubSelectDialog(), and GLWCheckBoxText::setX().

virtual float GLWidget::getH (  )  [inline, virtual]

Reimplemented in GLWLabel.

Definition at line 74 of file GLWidget.h.

References h_.

Referenced by BuyAccessoryDialog::addAccessory(), GLWScrollPanel::calculateVisible(), GLWWindow::draw(), GLWTankViewer::draw(), GLWTalkBox::draw(), GLWScrollPanel::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWWindowManager::getFocus(), GLWLabel::getH(), GLWPanel::layout(), GLWScrollPanel::mouseDown(), GLWScrollPanel::mouseDrag(), GLWScrollPanel::mouseUp(), TutorialDialog::processHighlight(), CameraDialog::savePosition(), and SettingsSubSelectDialog::SettingsSubSelectDialog().

virtual void GLWidget::setX ( float  x  )  [inline, virtual]

Reimplemented in GLWChannelText, GLWChannelView, GLWCheckBoxText, GLWDropDown, GLWIconButton, GLWListView, GLWScrollW, and GLWTabContainer.

Definition at line 75 of file GLWidget.h.

References x_.

Referenced by BuyAccessoryDialog::addAccessory(), GLWWindow::draw(), GLWTextButton::draw(), GLWTab::draw(), GLWIconButton::draw(), SettingsSubSelectDialogListItem::draw(), GLWIconListSaveItem::draw(), GLWIconListSubModItem::draw(), GLWIconListModItem::draw(), MessageDialog::draw(), LogDialog::draw(), initFromXML(), GLWPanel::layout(), GLWWindow::loadPosition(), SettingsSubSelectDialog::SettingsSubSelectDialog(), GLWTabContainer::setX(), GLWScrollW::setX(), GLWIconButton::setX(), GLWDropDown::setX(), GLWCheckBoxText::setX(), GLWChannelView::setX(), and GLWChannelText::setX().

virtual void GLWidget::setY ( float  y  )  [inline, virtual]

Reimplemented in GLWChannelText, GLWChannelView, GLWCheckBoxText, GLWDropDown, GLWIconButton, GLWListView, GLWScrollW, and GLWTabContainer.

Definition at line 76 of file GLWidget.h.

References y_.

Referenced by GLWWindow::draw(), GLWTextButton::draw(), GLWScrollW::draw(), GLWIconButton::draw(), GLMenu::draw(), SettingsSubSelectDialogListItem::draw(), GLWIconListSaveItem::draw(), GLWIconListSubModItem::draw(), GLWIconListModItem::draw(), MessageDialog::draw(), LogDialog::draw(), BuyAccessoryDialog::draw(), initFromXML(), GLWPanel::layout(), GLWWindow::loadPosition(), GLWScrollPanel::positionChange(), GLWTab::setH(), GLWScrollW::setH(), InventoryDialog::setupWindow(), GLWTabContainer::setY(), GLWScrollW::setY(), GLWIconButton::setY(), GLWDropDown::setY(), GLWCheckBoxText::setY(), GLWChannelView::setY(), and GLWChannelText::setY().

virtual void GLWidget::setW ( float  w  )  [inline, virtual]

Reimplemented in GLWChannelText, GLWIconButton, GLWListView, and GLWScrollW.

Definition at line 77 of file GLWidget.h.

References w_.

Referenced by BuyAccessoryDialog::addAccessory(), BuyAccessoryDialog::BuyAccessoryDialog(), GLWWindow::draw(), MessageDialog::draw(), LogDialog::draw(), initFromXML(), GLWTabContainer::layout(), GLWPanel::layout(), CameraDialog::loadPosition(), GLWScrollW::setW(), GLWIconButton::setW(), and GLWChannelText::setW().

virtual void GLWidget::setH ( float  h  )  [inline, virtual]

Reimplemented in GLWChannelText, GLWIconButton, GLWListView, GLWScrollPanel, GLWScrollW, and GLWTab.

Definition at line 78 of file GLWidget.h.

References h_.

Referenced by BuyAccessoryDialog::addAccessory(), BuyAccessoryDialog::BuyAccessoryDialog(), GLWWindow::draw(), GLWScrollW::draw(), ScoreDialog::draw(), MessageDialog::draw(), LogDialog::draw(), BuyAccessoryDialog::draw(), initFromXML(), GLWTabContainer::layout(), GLWPanel::layout(), CameraDialog::loadPosition(), GLWScrollW::setH(), GLWScrollPanel::setH(), GLWIconButton::setH(), GLWChannelText::setH(), and InventoryDialog::setupWindow().

bool GLWidget::inBox ( float  posX,
float  posY,
float  x,
float  y,
float  w,
float  h 
) [static]

Definition at line 236 of file GLWidget.cpp.

Referenced by GLWScorchedInfo::draw(), StartDialog::draw(), GLWWindowManager::getFocus(), GLWWindView::mouseDown(), GLWWindow::mouseDown(), GLWWeaponModel::mouseDown(), GLWTracker::mouseDown(), GLWTextBox::mouseDown(), GLWTankViewer::mouseDown(), GLWTankModel::mouseDown(), GLWTankFire::mouseDown(), GLWSpinBox::mouseDown(), GLWSlider::mouseDown(), GLWScorchedInfo::mouseDown(), GLWPlanView::mouseDown(), GLWListView::mouseDown(), GLWImageList::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWDropDown::mouseDown(), GLWDragger::mouseDown(), GLWButton::mouseDown(), GLWPlanView::mouseDrag(), GLWButton::mouseDrag(), GLWTankFire::mouseUp(), GLWTankViewer::mouseWheel(), GLWScrollW::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWPanel::mouseWheel(), GLWListView::mouseWheel(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), and GLWFileView::mouseWheel().

void GLWidget::drawRoundBox ( float  x,
float  y,
float  w,
float  h,
float  size 
) [static]

Definition at line 187 of file GLWidget.cpp.

References drawCircle().

Referenced by GLWToolTip::draw(), GLWTalkBox::draw(), GLWSelectorPart::draw(), GLWChannelText::draw(), GLWWindow::drawInfoBox(), and GLMenuEntry::drawText().

void GLWidget::drawShadedRoundBox ( float  x,
float  y,
float  w,
float  h,
float  size,
bool  depressed 
) [static]

Definition at line 195 of file GLWidget.cpp.

References drawCircle(), and glColor3f().

Referenced by GLWTextBox::draw(), GLWTankViewer::draw(), GLWSpinBox::draw(), GLWSelectorPart::draw(), GLWScrollW::draw(), GLWPanel::draw(), GLWListView::draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWFileView::draw(), GLWDropDown::draw(), GLWCheckBox::draw(), and GLWButton::draw().

void GLWidget::drawCircle ( int  startA,
int  endA,
float  posX,
float  posY,
float  size 
) [static]

Definition at line 153 of file GLWidget.cpp.

References glVertex2f(), and PI.

Referenced by GLWCheckBox::draw(), CameraDialog::draw(), GLWTab::drawNonSurround(), GLWWindow::drawOutlinePoints(), drawRoundBox(), drawShadedRoundBox(), and GLWTab::drawSurround().

void GLWidget::drawWholeCircle ( bool  cap = false  )  [static]

Definition at line 147 of file GLWidget.cpp.

References glCallList(), glVertex2f(), and listNo.

Referenced by GLWWindow::drawJoin(), and GLWWindow::drawWindowCircle().

void GLWidget::drawBox ( float  x,
float  y,
float  w,
float  h,
bool  depressed 
) [static]

Definition at line 216 of file GLWidget.cpp.

References glColor3f(), and glVertex2f().

Referenced by GLWSlider::draw(), and GLWButton::draw().


Member Data Documentation

unsigned int GLWidget::nextId_ = 0 [static, protected]

Definition at line 89 of file GLWidget.h.

std::string GLWidget::name_ [protected]

Reimplemented in GLWTab.

Definition at line 90 of file GLWidget.h.

Referenced by getName(), GLWWindowSkin::initFromXML(), GLWWindow::initFromXML(), initFromXML(), and setName().

unsigned int GLWidget::id_ [protected]

Definition at line 91 of file GLWidget.h.

Referenced by GLWIconTable::buttonDown(), SkipDialog::buttonDown(), SkipAllDialog::buttonDown(), SettingsSubSelectDialog::buttonDown(), SettingsSelectDialog::buttonDown(), SaveSelectDialog::buttonDown(), SaveDialog::buttonDown(), RulesDialog::buttonDown(), ResignDialog::buttonDown(), QuitDialog::buttonDown(), NetworkSelectDialog::buttonDown(), MsgBoxDialog::buttonDown(), ModSubSelectDialog::buttonDown(), ModSelectDialog::buttonDown(), KibitzingDialog::buttonDown(), AdminDialog::buttonDown(), GLWIconTable::draw(), getId(), GLWDropDown::itemSelected(), GLWTextBox::keyDown(), GLWScrollButton::mouseDown(), GLWScrollButton::mouseDrag(), GLWDropDownColor::setCurrentColor(), GLWDropDown::setCurrentPosition(), GLWDropDownText::setCurrentText(), GLWTextBox::setText(), MsgBoxDialog::show(), SkipAllDialog::simulate(), and SkipAllDialog::windowInit().

float GLWidget::x_ [protected]

Reimplemented in GLWProgress.

Definition at line 92 of file GLWidget.h.

Referenced by ScoreDialog::addLine(), ScoreDialog::addScoreLine(), GLWDropDown::buttonDown(), GLWWindow::draw(), GLWWeaponModel::draw(), GLWTime::draw(), GLWTextButton::draw(), GLWTextBox::draw(), GLWTankViewer::draw(), GLWTankModel::draw(), GLWTalkBox::draw(), GLWTab::draw(), GLWSpinBox::draw(), GLWSlider::draw(), GLWScrollW::draw(), GLWScrollPanel::draw(), GLWScorchedInfo::draw(), GLWPanel::draw(), GLWListView::draw(), GLWLabel::draw(), GLWImageList::draw(), draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWIconButton::draw(), GLWIcon::draw(), GLWFlag::draw(), GLWFileView::draw(), GLWDropDownText::draw(), GLWDropDownColor::draw(), GLWDropDown::draw(), GLWCheckBox::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWButton::draw(), GLWBitmap::draw(), ScoreDialog::draw(), ProgressDialog::draw(), CameraDialog::draw(), BuyAccessoryDialog::draw(), GLWWindView::drawDisplay(), GLWPlanView::drawLines(), GLWPlanView::drawMap(), GLWWindow::drawMaximizedWindow(), GLWTab::drawNonSurround(), RulesDialog::drawRules(), GLWTab::drawSurround(), GLWPlanView::drawTanks(), GLWListView::drawUrl(), getX(), GLWWindView::mouseDown(), GLWWindow::mouseDown(), GLWWeaponModel::mouseDown(), GLWTracker::mouseDown(), GLWTextBox::mouseDown(), GLWTankViewer::mouseDown(), GLWTankModel::mouseDown(), GLWTankFire::mouseDown(), GLWTab::mouseDown(), GLWSpinBox::mouseDown(), GLWSlider::mouseDown(), GLWScrollPanel::mouseDown(), GLWScorchedInfo::mouseDown(), GLWPushButton::mouseDown(), GLWPlanView::mouseDown(), GLWPanel::mouseDown(), GLWImageList::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWDropDown::mouseDown(), GLWDragger::mouseDown(), GLWCheckBox::mouseDown(), GLWButton::mouseDown(), CameraDialog::mouseDown(), GLWWindow::mouseDrag(), GLWScrollPanel::mouseDrag(), GLWPlanView::mouseDrag(), GLWPanel::mouseDrag(), GLWButton::mouseDrag(), GLWTankFire::mouseUp(), GLWScrollPanel::mouseUp(), GLWPanel::mouseUp(), GLWTankViewer::mouseWheel(), GLWScrollW::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWPanel::mouseWheel(), GLWListView::mouseWheel(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), GLWFileView::mouseWheel(), GLWListView::setW(), GLWScrollW::setX(), GLWListView::setX(), setX(), and GLWChannelView::setX().

float GLWidget::y_ [protected]

Reimplemented in GLWProgress.

Definition at line 92 of file GLWidget.h.

Referenced by ScoreDialog::addLine(), ScoreDialog::addScoreLine(), GLWDropDown::buttonDown(), GLWWindow::draw(), GLWWeaponModel::draw(), GLWTime::draw(), GLWTextButton::draw(), GLWTextBox::draw(), GLWTankViewer::draw(), GLWTankModel::draw(), GLWTalkBox::draw(), GLWSpinBox::draw(), GLWSlider::draw(), GLWScrollW::draw(), GLWScrollPanel::draw(), GLWScorchedInfo::draw(), GLWPanel::draw(), GLWListView::draw(), GLWLabel::draw(), GLWImageList::draw(), draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWIconButton::draw(), GLWIcon::draw(), GLWFlag::draw(), GLWFileView::draw(), GLWDropDownText::draw(), GLWDropDownColor::draw(), GLWDropDown::draw(), GLWCheckBox::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWButton::draw(), GLWBitmap::draw(), ScoreDialog::draw(), ProgressDialog::draw(), CameraDialog::draw(), BuyAccessoryDialog::draw(), GLWWindView::drawDisplay(), GLWPlanView::drawLines(), GLWPlanView::drawMap(), GLWWindow::drawMaximizedWindow(), GLWTab::drawNonSurround(), RulesDialog::drawRules(), GLWTab::drawSurround(), GLWPlanView::drawTanks(), getY(), GLWIconTable::GLWIconTable(), GLWWindView::mouseDown(), GLWWindow::mouseDown(), GLWWeaponModel::mouseDown(), GLWTracker::mouseDown(), GLWTextBox::mouseDown(), GLWTankViewer::mouseDown(), GLWTankModel::mouseDown(), GLWTankFire::mouseDown(), GLWTab::mouseDown(), GLWSpinBox::mouseDown(), GLWSlider::mouseDown(), GLWScrollPanel::mouseDown(), GLWScorchedInfo::mouseDown(), GLWPushButton::mouseDown(), GLWPlanView::mouseDown(), GLWPanel::mouseDown(), GLWImageList::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWDropDown::mouseDown(), GLWDragger::mouseDown(), GLWCheckBox::mouseDown(), GLWButton::mouseDown(), CameraDialog::mouseDown(), GLWWindow::mouseDrag(), GLWScrollPanel::mouseDrag(), GLWPlanView::mouseDrag(), GLWPanel::mouseDrag(), GLWButton::mouseDrag(), GLWTankFire::mouseUp(), GLWScrollPanel::mouseUp(), GLWPanel::mouseUp(), GLWTankViewer::mouseWheel(), GLWScrollW::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWPanel::mouseWheel(), GLWListView::mouseWheel(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), GLWFileView::mouseWheel(), GLWTab::setH(), GLWScrollW::setH(), GLWScrollW::setY(), GLWListView::setY(), setY(), and GLWChannelView::setY().

float GLWidget::w_ [protected]

Reimplemented in GLWProgress.

Definition at line 92 of file GLWidget.h.

Referenced by ScoreDialog::addLine(), GLWScrollW::buttonDrag(), GLWTime::calcWidth(), GLWLabel::calcWidth(), GLWWindow::draw(), GLWWeaponModel::draw(), GLWTextButton::draw(), GLWTextBox::draw(), GLWTankViewer::draw(), GLWTankModel::draw(), GLWTalkBox::draw(), GLWSpinBox::draw(), GLWSlider::draw(), GLWScrollW::draw(), GLWScorchedInfo::draw(), GLWPanel::draw(), GLWListView::draw(), GLWImageList::draw(), draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWIcon::draw(), GLWFlag::draw(), GLWFileView::draw(), GLWDropDownText::draw(), GLWDropDownColor::draw(), GLWDropDown::draw(), GLWCheckBox::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWButton::draw(), GLWBitmap::draw(), CameraDialog::draw(), GLWPlanView::drawCameraPointer(), GLWWindView::drawDisplay(), GLWPlanView::drawLines(), GLWPlanView::drawMap(), GLWWindow::drawMaximizedWindow(), GLWTab::drawSurround(), GLWPlanView::drawTanks(), GLWListView::getLines(), getW(), GLWSelector::hideSelector(), GLWWindView::mouseDown(), GLWWindow::mouseDown(), GLWWeaponModel::mouseDown(), GLWTracker::mouseDown(), GLWTextBox::mouseDown(), GLWTankViewer::mouseDown(), GLWTankModel::mouseDown(), GLWTankFire::mouseDown(), GLWSpinBox::mouseDown(), GLWSlider::mouseDown(), GLWScorchedInfo::mouseDown(), GLWPushButton::mouseDown(), GLWPlanView::mouseDown(), GLWImageList::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWDropDown::mouseDown(), GLWDragger::mouseDown(), GLWCheckBox::mouseDown(), GLWButton::mouseDown(), GLWWindow::mouseDrag(), GLWTracker::mouseDrag(), GLWPlanView::mouseDrag(), GLWPanel::mouseDrag(), GLWDragger::mouseDrag(), GLWButton::mouseDrag(), GLWTankFire::mouseUp(), GLWTankViewer::mouseWheel(), GLWScrollW::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWPanel::mouseWheel(), GLWListView::mouseWheel(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), GLWFileView::mouseWheel(), GLWScrollW::setH(), GLWLabel::setSize(), GLWLabel::setText(), GLWListView::setW(), setW(), GLWListView::setX(), GLWDropDown::setX(), GLWScrollW::setY(), GLWSelector::showSelector(), and GLWChannelView::splitLine().

float GLWidget::h_ [protected]

Definition at line 92 of file GLWidget.h.

Referenced by ScoreDialog::addLine(), ScoreDialog::addScoreLine(), GLWScrollW::buttonDrag(), GLWScrollPanel::calculateVisible(), GLWLabel::calcWidth(), GLWWindow::draw(), GLWTextBox::draw(), GLWTankViewer::draw(), GLWTalkBox::draw(), GLWSpinBox::draw(), GLWScrollW::draw(), GLWScrollPanel::draw(), GLWScorchedInfo::draw(), GLWPanel::draw(), GLWListView::draw(), GLWImageList::draw(), draw(), GLWIconTable::draw(), GLWIconList::draw(), GLWIcon::draw(), GLWFlag::draw(), GLWFileView::draw(), GLWDropDown::draw(), GLWCheckBox::draw(), GLWChannelView::draw(), GLWChannelText::draw(), GLWButton::draw(), GLWBitmap::draw(), GLMenu::draw(), StartDialog::draw(), ScoreDialog::draw(), CameraDialog::draw(), GLWPlanView::drawCameraPointer(), GLWWindView::drawDisplay(), GLWPlanView::drawLines(), GLWPlanView::drawMap(), GLWWindow::drawMaximizedWindow(), GLWTab::drawNonSurround(), RulesDialog::drawRules(), GLWTab::drawSurround(), GLWPlanView::drawTanks(), getH(), GLWFileView::GLWFileView(), GLWIconTable::GLWIconTable(), GLWListView::GLWListView(), GLWSelector::hideSelector(), GLWWindView::mouseDown(), GLWWindow::mouseDown(), GLWWeaponModel::mouseDown(), GLWTracker::mouseDown(), GLWTextBox::mouseDown(), GLWTankViewer::mouseDown(), GLWTankModel::mouseDown(), GLWTankFire::mouseDown(), GLWTab::mouseDown(), GLWSpinBox::mouseDown(), GLWSlider::mouseDown(), GLWScrollPanel::mouseDown(), GLWScorchedInfo::mouseDown(), GLWPushButton::mouseDown(), GLWPlanView::mouseDown(), GLWImageList::mouseDown(), GLWIconTable::mouseDown(), GLWIconList::mouseDown(), GLWDropDown::mouseDown(), GLWDragger::mouseDown(), GLWCheckBox::mouseDown(), GLWButton::mouseDown(), GLWWindow::mouseDrag(), GLWScrollPanel::mouseDrag(), GLWPlanView::mouseDrag(), GLWPanel::mouseDrag(), GLWButton::mouseDrag(), GLWTankFire::mouseUp(), GLWScrollPanel::mouseUp(), GLWTankViewer::mouseWheel(), GLWScrollW::mouseWheel(), GLWScrollPanel::mouseWheel(), GLWPanel::mouseWheel(), GLWListView::mouseWheel(), GLWIconTable::mouseWheel(), GLWIconList::mouseWheel(), GLWFileView::mouseWheel(), GLWTab::setH(), GLWScrollW::setH(), GLWScrollPanel::setH(), GLWListView::setH(), setH(), GLWListView::setScroll(), GLWScrollW::setY(), and GLWSelector::showSelector().

ToolTip* GLWidget::tooltip_ [protected]

Definition at line 93 of file GLWidget.h.

Referenced by draw(), and setToolTip().

bool GLWidget::tooltipTransparent_ [protected]

Definition at line 94 of file GLWidget.h.

Referenced by draw(), GLWIcon::GLWIcon(), GLWLabel::GLWLabel(), GLWTime::GLWTime(), and initFromXML().

bool GLWidget::visible_ [protected]

Reimplemented in GLWChannelText.

Definition at line 95 of file GLWidget.h.

Referenced by GLWSelector::draw(), getVisible(), GLWSelector::GLWSelector(), GLWSelector::hideSelector(), initFromXML(), GLWSelector::mouseDown(), setVisible(), and GLWSelector::showSelector().

GLWPanel* GLWidget::parent_ [protected]

Definition at line 96 of file GLWidget.h.

Referenced by GLWTalkBox::draw(), GLWTab::draw(), GLWChannelView::draw(), getParent(), GLWTextBox::keyDown(), GLWTalkBox::keyDown(), GLWTextBox::setCurrent(), GLWTab::setDepressed(), and setParent().

void* GLWidget::userData_ [protected]

Definition at line 97 of file GLWidget.h.

Referenced by getUserData(), and setUserData().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3