Planeshift
pawstutorialwindow.h
Go to the documentation of this file.
1
/*
2
* tutorialwindow.h - Author: Keith Fulton
3
*
4
* Copyright (C) 2006 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5
*
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation (version 2 of the License)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*
18
*/
19
20
#ifndef PAWS_TUTORIAL_WINDOW_HEADER
21
#define PAWS_TUTORIAL_WINDOW_HEADER
22
23
#include "
paws/pawswidget.h
"
24
#include "
paws/pawslistbox.h
"
25
#include "
paws/pawsbutton.h
"
26
#include "
paws/pawstabwindow.h
"
27
#include "
gui/pawscontrolwindow.h
"
28
29
36
class
pawsTutorialNotifyWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
37
{
38
public
:
40
pawsTutorialNotifyWindow
();
41
43
virtual
~pawsTutorialNotifyWindow
();
44
46
void
HandleMessage
(
MsgEntry
* message );
47
49
bool
PostSetup
();
50
52
bool
OnButtonPressed
(
int
mouseButton,
int
keyModifier,
pawsWidget
* reporter);
53
55
bool
NextTutorial
();
56
57
protected
:
59
pawsWidget
*
instr_container
;
61
pawsMultiLineTextBox
*
instructions
;
63
csArray<csString>
instrArray
;
64
};
65
68
CREATE_PAWS_FACTORY
(
pawsTutorialNotifyWindow
);
69
75
class
pawsTutorialWindow
:
public
pawsWidget
76
{
77
public
:
78
pawsTutorialWindow
();
79
virtual
~
pawsTutorialWindow
();
80
81
bool
PostSetup
();
82
83
// bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
84
85
void
Close
();
86
87
private
:
88
89
pawsTutorialNotifyWindow
*notifywnd;
90
pawsMultiLineTextBox
*
instructions
;
91
};
92
93
CREATE_PAWS_FACTORY
(
pawsTutorialWindow
);
94
95
96
97
98
#endif
pawsTutorialNotifyWindow::PostSetup
bool PostSetup()
Setup the widget with command/message handling capabilities.
pawsTutorialNotifyWindow
Window contains a button solely to popup another window showing instructions if the user clicks the b...
Definition:
pawstutorialwindow.h:36
pawsTutorialNotifyWindow::~pawsTutorialNotifyWindow
virtual ~pawsTutorialNotifyWindow()
Virtual destructor.
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
pawsbutton.h
pawsTutorialWindow
A window that shows the instructions if the TutorialNotify window button is clicked.
Definition:
pawstutorialwindow.h:75
pawslistbox.h
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
pawsMultiLineTextBox
Definition:
pawstextbox.h:613
pawscontrolwindow.h
pawsTutorialNotifyWindow::instr_container
pawsWidget * instr_container
Ptr to the widget that popups when you click the alerter.
Definition:
pawstutorialwindow.h:59
pawsTutorialNotifyWindow::pawsTutorialNotifyWindow
pawsTutorialNotifyWindow()
Constructor.
pawsTutorialNotifyWindow::instrArray
csArray< csString > instrArray
Queue of pending instructions to show, cleared as the user sees them.
Definition:
pawstutorialwindow.h:63
pawsTutorialNotifyWindow::instructions
pawsMultiLineTextBox * instructions
Ptr to the widget that displays the actual text of the instructions for this message.
Definition:
pawstutorialwindow.h:61
pawsWidget::Close
virtual void Close()
Simply calls Hide() unless overidden.
Definition:
pawswidget.h:470
pawswidget.h
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsTutorialNotifyWindow)
The pawsTutorialNotifyWindow factory.
pawsTutorialNotifyWindow::OnButtonPressed
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *reporter)
Handle button clicks.
pawsTutorialNotifyWindow::HandleMessage
void HandleMessage(MsgEntry *message)
Handles tutorial server messages.
pawsTutorialNotifyWindow::NextTutorial
bool NextTutorial()
The click event of the Instruction window calls this, which activates the next message in the queue...
psClientNetSubscriber
Definition:
cmdbase.h:67
pawstabwindow.h
client
gui
pawstutorialwindow.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11