BackgroundDialog.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 ** 
00004 ** Copyright (C) 2006 The TBT Team.
00005 ** 
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 ** 
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 ** 
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
00015 */
00016 #ifndef BACKGROUNDDIALOG_HH_
00017 #define BACKGROUNDDIALOG_HH_
00018 
00019 #include "paragui.h"
00020 #include "pgwindow.h"
00021 #include "pgbutton.h"
00022 #include "pgmultilineedit.h"
00023 
00024 class DECLSPEC BackgroundDialog  : public PG_Window 
00025 {
00026 public:
00036     BackgroundDialog(PG_Widget* parent, 
00037                 const PG_Rect& r, const char* windowtitle,
00038                 const char* background,
00039                 const char* style="MessageBox");
00040     
00041     virtual ~BackgroundDialog();
00042     
00043     void LoadThemeStyle(const char* widgettype);
00044 
00049     inline int WaitForClick() {
00050         return RunModal();
00051     }
00052     
00053     const char* getBackground();
00054 
00055 private:  
00059     bool handleButton(PG_Button* button);    
00060 
00061     void Init(const char* style);
00062 
00063     // -----------------------------------------------------------------------
00064     //  Private data members
00065     // -----------------------------------------------------------------------
00066     PG_Widget*         parent_;
00067 
00068     PG_Button*         btnOk_;
00069     PG_Button*         btnCancel_;
00070     
00071     PG_MultiLineEdit*  multiLEdit_;
00072 };
00073 
00074 #endif /*BACKGROUNDDIALOG_HH_*/

Generated on Sat Jun 23 16:07:22 2007 for Stechec/TBT by  doxygen 1.4.7