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

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

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

#include <npcdialog.h>

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

List of all members.

Public Member Functions

void action (const gcn::ActionEvent &event)
void addChoice (const std::string &)
void addText (const std::string &string, bool save=true)
void center ()
void choiceRequest ()
void clearLayout ()
virtual void close ()
void closeDialog ()
void draw (gcn::Graphics *graphics)
std::string getElementAt (int i)
int getGuiAlpha ()
LayoutgetLayout ()
int getMaxHeight () const
int getMaxWidth () const
int getMinHeight () const
int getMinWidth () const
int getNumberOfElements ()
WindowgetParentWindow () const
ContainerPlacer getPlacer (int x, int y)
const std::string & getWindowName () const
void integerRequest (int defaultValue=0, int min=0, int max=2147483647)
bool isDefaultVisible () const
bool isInputFocused () const
bool isResizable () const
bool isSticky () const
bool isTextInputFocused () const
void loadWindowState ()
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)
void move (int amount)
void nextDialog ()
 NpcDialog (int npcId)
void optionChanged (const std::string &name)
void parseListItems (const std::string &itemString)
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 ()
void setCloseButton (bool flag)
void setContentSize (int width, int height)
void setDefaultSize ()
void setDefaultSize (int defaultWidth, int defaultHeight, ImageRect::ImagePosition position, int offsetx=0, int offsetY=0)
void setDefaultSize (int defaultX, int defaultY, int defaultWidth, int defaultHeight)
void setDefaultVisible (bool save)
void setLocationRelativeTo (ImageRect::ImagePosition position, int offsetX=0, int offsetY=0)
void setLocationRelativeTo (gcn::Widget *widget)
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)
void setText (const std::string &string)
void setVisible (bool visible, bool forceSticky)
void setVisible (bool visible)
void setWindowName (const std::string &name)
void showCloseButton ()
void showNextButton ()
void textRequest (const std::string &defaultText="")
virtual void widgetHidden (const gcn::Event &event)
void widgetResized (const gcn::Event &event)
bool willSaveVisible () const

Static Public Member Functions

static void closeAll ()
static NpcDialoggetActive ()
static bool isActive ()
static bool isAnyInputFocused ()
static void setWindowContainer (WindowContainer *windowContainer)

Private Types

typedef std::list< NpcDialog * > DialogList
enum  NpcActionState { NPC_ACTION_WAIT, NPC_ACTION_NEXT, NPC_ACTION_INPUT, NPC_ACTION_CLOSE }
enum  NpcInputState { NPC_INPUT_NONE, NPC_INPUT_LIST, NPC_INPUT_STRING, NPC_INPUT_INTEGER }

Private Member Functions

void buildLayout ()

Private Attributes

NpcActionState mActionState
ButtonmButton
ButtonmClearButton
int mDefaultInt
std::string mDefaultString
NpcInputState mInputState
IntTextFieldmIntField
ListBoxmItemList
std::vector< std::string > mItems
gcn::ScrollArea * mListScrollArea
bool mLogInteraction
ButtonmMinusButton
std::string mNewText
int mNpcId
ButtonmPlusButton
ButtonmResetButton
gcn::ScrollArea * mScrollArea
std::string mText
TextBoxmTextBox
TextFieldmTextField

Static Private Attributes

static DialogList instances

Detailed Description

The npc dialog.

Definition at line 48 of file npcdialog.h.


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

Generated by  Doxygen 1.6.0   Back to index