21 #ifndef PAWS_SHORTCUT_WINDOW 22 #define PAWS_SHORTCUT_WINDOW 34 #include "../globals.h" 53 #define NUM_SHORTCUTS 256 69 virtual bool Setup(iDocumentNode *node);
72 bool OnMouseDown(
int button,
int modifiers,
int x,
int y );
203 csArray<csString> allIcons;
204 csArray<csString> allNames;
205 csArray<csString> stubArray;
This is a window that is controlled by a button on the control bar.
void SetManaFlashLevel(float val)
pawsEditTextBox * labelBox
pawsTextBox * shortcutText
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
void SetHPFlashLevel(float val)
CREATE_PAWS_FACTORY(pawsShortcutWindow)
float GetManaFlashLevel()
const csString & GetCommandName(int shortcutNum)
Get the short cut script.
void SetHPWarnLevel(float val)
Main Chat window for PlaneShift.
The structure of 1 queue entry (pointer to a message)
virtual bool Setup(iDocumentNode *node)
Setup this widget.
bool OnButtonReleased(int mouseButton, int keyModifier, pawsWidget *reporter)
Called whenever a button is released.
bool LoadUserPrefs()
Load the preferences set by the Shortcut Configuration interface.
void LoadDefaultCommands()
Load the commands, icon names and shortcut text keys.
csString GetTriggerText(int shortcutNum)
Get the text of a buttons assigned shortcut key.
bool OnFingering(csString string, psControl::Device device, uint button, uint32 mods)
Returns whether the combo was accepted and the fingering window should hide.
void SetManaWarnLevel(float val)
pawsDnDButton * iconDisplay
pawsScrollMenu * iconPalette
float GetManaDangerLevel()
void Show()
When the window is opened let the controller window know about it.
virtual ~pawsShortcutWindow()
bool OnMouseDown(int button, int modifiers, int x, int y)
Manage mouse down event to test for and apply window changes.
pawsChatWindow * chatWindow
chat window for easy access
void SetManaDangerLevel(float val)
bool LoadUserSharedPrefs()
char const * GetFontName()
return the name of the font
bool OnScroll(int direction, pawsScrollBar *widget)
Called whenever a window is scrolled.
The shortcut window itself, including the window used to edit the shortcuts.
csString buttonBackgroundImage
void SetHPDangerLevel(float val)
void LoadCommands(const char *FN)
void OnResize()
Sets the new position of the close button.
virtual void HandleMessage(MsgEntry *msg)
This interface receive OnFingering notification from the FingeringWindow.
csArray< csString > toolTips
pawsWidget * editedButton
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *reporter)
Called whenever a button is pressed.
void ExecuteCommand(int shortcutNum)
Execute a short cut script.
pawsMultilineEditTextBox * textBox
csArray< csString > names