Planeshift

pawstutorialwindow.h

Go to the documentation of this file.
00001 /*
00002  * tutorialwindow.h - Author: Keith Fulton
00003  *
00004  * Copyright (C) 2006 Atomic Blue ([email protected], http://www.atomicblue.org)
00005  *
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation (version 2 of the License)
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  *
00018  */
00019 
00020 #ifndef PAWS_TUTORIAL_WINDOW_HEADER
00021 #define PAWS_TUTORIAL_WINDOW_HEADER
00022 
00023 #include "paws/pawswidget.h"
00024 #include "paws/pawslistbox.h"
00025 #include "paws/pawsbutton.h"
00026 #include "paws/pawstabwindow.h"
00027 #include "gui/pawscontrolwindow.h"
00028 
00029 
00036 class pawsTutorialNotifyWindow : public pawsWidget, public psClientNetSubscriber
00037 {
00038 public:
00040     pawsTutorialNotifyWindow();
00041 
00043     virtual ~pawsTutorialNotifyWindow();
00044 
00046     void HandleMessage( MsgEntry* message );
00047 
00049     bool PostSetup();
00050 
00052     bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* reporter);
00053 
00055     bool NextTutorial();
00056 
00057 protected:
00059     pawsWidget *instr_container;
00061     pawsMultiLineTextBox* instructions;
00063     csArray<csString> instrArray;
00064 };
00065 
00068 CREATE_PAWS_FACTORY( pawsTutorialNotifyWindow );
00069 
00075 class pawsTutorialWindow : public pawsWidget
00076 {
00077 public:
00078     pawsTutorialWindow();
00079     virtual ~pawsTutorialWindow();
00080 
00081     bool PostSetup();
00082 
00083     // bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
00084 
00085     void Close();
00086 
00087 private:
00088 
00089     pawsTutorialNotifyWindow *notifywnd;
00090     pawsMultiLineTextBox *instructions;
00091 };
00092 
00093 CREATE_PAWS_FACTORY( pawsTutorialWindow );
00094 
00095 
00096 
00097 
00098 #endif