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
"
26
#include "
paws/pawsstringpromptwindow.h
"
27
28
#define MAX_TITLE_LEN 50
29
#define MAX_CONTENT_LEN 65450
30
31
class
pawsEditTextBox
;
32
36
class
pawsWritingWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
,
public
iOnStringEnteredAction
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
41
pawsWritingWindow
();
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
61
CREATE_PAWS_FACTORY
(
pawsWritingWindow
);
62
#endif
pawsWritingWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
pawsWritingWindow::HandleMessage
void HandleMessage(MsgEntry *me)
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
cmdbase.h
pawsEditTextBox
An edit box widget/.
Definition:
pawstextbox.h:409
pawsWritingWindow::OnButtonPressed
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsstringpromptwindow.h
pawswidget.h
pawsWritingWindow::RequestDetails
void RequestDetails()
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsWritingWindow)
iOnStringEnteredAction
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
Definition:
pawsstringpromptwindow.h:37
pawsWritingWindow::pawsWritingWindow
pawsWritingWindow()
pawstextbox.h
pawsMultilineEditTextBox
Definition:
pawstextbox.h:740
pawsWritingWindow
Window used to write a book, you can choose title and type in content.
Definition:
pawswritingwindow.h:36
pawsWritingWindow::~pawsWritingWindow
virtual ~pawsWritingWindow()
psClientNetSubscriber
Definition:
cmdbase.h:67
pawsWritingWindow::OnStringEntered
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...
client
gui
pawswritingwindow.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11