SaveDialog Class Reference

#include <SaveDialog.h>

Inheritance diagram for SaveDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void display ()

Static Public Member Functions

static SaveDialoginstance ()

Protected Attributes

unsigned int okId_
unsigned int cancelId_
GLWTextBoxtextBox_

Static Protected Attributes

static SaveDialoginstance_ = 0

Private Member Functions

 SaveDialog ()
virtual ~SaveDialog ()


Detailed Description

Definition at line 28 of file SaveDialog.h.


Constructor & Destructor Documentation

SaveDialog::SaveDialog (  )  [private]

Definition at line 43 of file SaveDialog.cpp.

References GLWPanel::addWidget(), GLWPanel::AlignRight, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, GLWidget::getId(), GLWPanel::GLWPanel(), LANG_RESOURCE, GLWPanel::layout(), GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, okId_, GLWPanel::setLayout(), GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, GLWPanel::SpaceTop, and textBox_.

SaveDialog::~SaveDialog (  )  [private, virtual]

Definition at line 71 of file SaveDialog.cpp.


Member Function Documentation

SaveDialog * SaveDialog::instance (  )  [static]

Definition at line 34 of file SaveDialog.cpp.

References instance_.

Referenced by ClientWindowSetup::addCommonComponents(), QuitDialog::buttonDown(), and TankMenus::PlayerMenu::menuSelection().

void SaveDialog::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 84 of file SaveDialog.cpp.

References cancelId_, S3D::formatStringBuffer(), S3D::getSaveFile(), GLWTextBox::getText(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), ScorchedClient::instance(), LANG_RESOURCE, LANG_RESOURCE_1, okId_, ClientSave::saveClient(), ChannelManager::showText(), and textBox_.

void SaveDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 76 of file SaveDialog.cpp.

References GLWPanel::display(), S3D::formatStringBuffer(), LANG_STRING, GLWTextBox::setText(), and textBox_.


Member Data Documentation

unsigned int SaveDialog::okId_ [protected]

Definition at line 37 of file SaveDialog.h.

Referenced by buttonDown(), and SaveDialog().

unsigned int SaveDialog::cancelId_ [protected]

Definition at line 37 of file SaveDialog.h.

Referenced by buttonDown(), and SaveDialog().

SaveDialog * SaveDialog::instance_ = 0 [static, protected]

Definition at line 38 of file SaveDialog.h.

Referenced by instance().

GLWTextBox* SaveDialog::textBox_ [protected]

Definition at line 39 of file SaveDialog.h.

Referenced by buttonDown(), display(), and SaveDialog().


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