Logo Search packages:      
Sourcecode: mana version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends

ServerDialog Class Reference
[User interface related classes (windows, dialogs)]

#include <serverdialog.h>

Inheritance diagram for ServerDialog:
Inheritance graph
[legend]
Collaboration diagram for ServerDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void action (const gcn::ActionEvent &event)
void center ()
void clearLayout ()
virtual void close ()
void draw (gcn::Graphics *graphics)
int getGuiAlpha ()
LayoutgetLayout ()
int getMaxHeight () const
int getMaxWidth () const
int getMinHeight () const
int getMinWidth () const
WindowgetParentWindow () const
ContainerPlacer getPlacer (int x, int y)
const std::string & getWindowName () const
bool isDefaultVisible () const
bool isResizable () const
bool isSticky () const
void keyPressed (gcn::KeyEvent &keyEvent)
void loadWindowState ()
void logic ()
void mouseDragged (gcn::MouseEvent &event)
void mouseExited (gcn::MouseEvent &event)
void mouseMoved (gcn::MouseEvent &event)
void mousePressed (gcn::MouseEvent &event)
void mouseReleased (gcn::MouseEvent &event)
LayoutCellplace (int x, int y, gcn::Widget *, int w=1, int h=1)
void redraw ()
void reflowLayout (int w=0, int h=0)
virtual void resetToDefaultSize ()
void saveWindowState ()
void scheduleDelete ()
 ServerDialog (ServerInfo *serverInfo, const std::string &dir)
void setCloseButton (bool flag)
void setContentSize (int width, int height)
void setDefaultSize (int defaultWidth, int defaultHeight, ImageRect::ImagePosition position, int offsetx=0, int offsetY=0)
void setDefaultSize ()
void setDefaultSize (int defaultX, int defaultY, int defaultWidth, int defaultHeight)
void setDefaultVisible (bool save)
void setLocationRelativeTo (gcn::Widget *widget)
void setLocationRelativeTo (ImageRect::ImagePosition position, int offsetX=0, int offsetY=0)
void setMaxHeight (int height)
void setMaxWidth (int width)
void setMinHeight (int height)
void setMinWidth (int width)
void setResizable (bool resize)
void setSaveVisible (bool save)
void setShowTitle (bool flag)
void setSticky (bool sticky)
void setStickyButton (bool flag)
virtual void setVisible (bool visible)
void setVisible (bool visible, bool forceSticky)
void setWindowName (const std::string &name)
void valueChanged (const gcn::SelectionEvent &event)
virtual void widgetHidden (const gcn::Event &event)
void widgetResized (const gcn::Event &event)
bool willSaveVisible () const
 ~ServerDialog ()

Static Public Member Functions

static void setWindowContainer (WindowContainer *windowContainer)

Protected Member Functions

MutexLocker lock ()

Private Types

enum  ServerDialogDownloadStatus {
  DOWNLOADING_ERROR, DOWNLOADING_PREPARING, DOWNLOADING_IDLE, DOWNLOADING_IN_PROGRESS,
  DOWNLOADING_COMPLETE, DOWNLOADING_OVER
}

Private Member Functions

void downloadServerList ()
void loadCustomServers ()
void loadServers ()
void saveCustomServers (const ServerInfo &currentServer=ServerInfo())
void setFieldsReadOnly (bool readOnly)

Static Private Member Functions

static int downloadUpdate (void *ptr, DownloadStatus status, size_t total, size_t remaining)

Private Attributes

ButtonmConnectButton
ButtonmDeleteButton
LabelmDescription
const std::string & mDir
Net::DownloadmDownload
float mDownloadProgress
ServerDialogDownloadStatus mDownloadStatus
ServerInfos mManaservServers
ButtonmManualEntryButton
Mutex mMutex
TextFieldmPortField
ButtonmQuitButton
ServerInfomServerInfo
TextFieldmServerNameField
ServerInfos mServers
ListBoxmServersList
ServersListModelmServersListModel
DropDownmTypeField
TypeListModelmTypeListModel

Friends

class ServersListModel

Detailed Description

The server choice dialog.

Definition at line 108 of file serverdialog.h.


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

Generated by  Doxygen 1.6.0   Back to index