Planeshift
pawswritingwindow.h
Go to the documentation of this file.
1 
20 #ifndef PAWSWRITINGWINDOW_H
21 #define PAWSWRITINGWINDOW_H
22 
23 #include "net/cmdbase.h"
24 #include "paws/pawswidget.h"
25 #include "paws/pawstextbox.h"
27 
28 #define MAX_TITLE_LEN 50
29 #define MAX_CONTENT_LEN 65450
30 
31 class pawsEditTextBox;
32 
37 {
38 public:
39  //not only load from XML but also dynamically activate widgety things based on
40  //the inks & pens that the server sends us
42  virtual ~pawsWritingWindow();
43 
44  void OnStringEntered(const char *name, int param,const char *value);
45  bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget);
46  bool PostSetup();
47  void RequestDetails();
48 
49  void HandleMessage( MsgEntry* me );
50 private:
51  pawsEditTextBox* name;
52 
53  pawsMultilineEditTextBox* lefttext;
54  pawsMultilineEditTextBox* righttext;
55 
56  //so we know what book we're talking about here
57  int slotID;
58  int containerID;
59 };
60 
62 #endif
bool PostSetup()
This is called after the widget and all of it's children have been created.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
void HandleMessage(MsgEntry *me)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
An edit box widget/.
Definition: pawstextbox.h:409
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
CREATE_PAWS_FACTORY(pawsWritingWindow)
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
Window used to write a book, you can choose title and type in content.
virtual ~pawsWritingWindow()
void OnStringEntered(const char *name, int param, const char *value)
When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provid...