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 
37 {
38 public:
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:
63  csArray<csString> instrArray;
64 };
65 
69 
76 {
77 public:
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;
91 };
92 
94 
95 
96 
97 
98 #endif
bool PostSetup()
Setup the widget with command/message handling capabilities.
Window contains a button solely to popup another window showing instructions if the user clicks the b...
virtual ~pawsTutorialNotifyWindow()
Virtual destructor.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
A window that shows the instructions if the TutorialNotify window button is clicked.
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
pawsWidget * instr_container
Ptr to the widget that popups when you click the alerter.
pawsTutorialNotifyWindow()
Constructor.
csArray< csString > instrArray
Queue of pending instructions to show, cleared as the user sees them.
pawsMultiLineTextBox * instructions
Ptr to the widget that displays the actual text of the instructions for this message.
virtual void Close()
Simply calls Hide() unless overidden.
Definition: pawswidget.h:470
CREATE_PAWS_FACTORY(pawsTutorialNotifyWindow)
The pawsTutorialNotifyWindow factory.
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *reporter)
Handle button clicks.
void HandleMessage(MsgEntry *message)
Handles tutorial server messages.
bool NextTutorial()
The click event of the Instruction window calls this, which activates the next message in the queue...