Planeshift
|
00001 00020 #ifndef PAWSWRITINGWINDOW_H 00021 #define PAWSWRITINGWINDOW_H 00022 00023 #include "net/cmdbase.h" 00024 #include "paws/pawswidget.h" 00025 #include "paws/pawstextbox.h" 00026 #include "paws/pawsstringpromptwindow.h" 00027 00028 #define MAX_TITLE_LEN 50 00029 #define MAX_CONTENT_LEN 65450 00030 00031 class pawsEditTextBox; 00036 class pawsWritingWindow: public pawsWidget, public psClientNetSubscriber, public iOnStringEnteredAction 00037 /* la? */ 00038 { 00039 /* la. */ 00040 public: 00041 //not only load from XML but also dynamically activate widgety things based on 00042 //the inks & pens that the server sends us 00043 pawsWritingWindow(); 00044 virtual ~pawsWritingWindow(); 00045 00046 void OnStringEntered(const char *name, int param,const char *value); 00047 bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget); 00048 bool PostSetup(); 00049 void RequestDetails(); 00050 00051 void HandleMessage( MsgEntry* me ); 00052 private: 00053 pawsEditTextBox* name; 00054 00055 pawsMultilineEditTextBox* lefttext; 00056 pawsMultilineEditTextBox* righttext; 00057 00058 //so we know what book we're talking about here 00059 int slotID; 00060 int containerID; 00061 }; 00062 00063 CREATE_PAWS_FACTORY( pawsWritingWindow ); 00064 #endif