ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/RenegadeMapSelector/MapSelector.h
Revision: 86
Committed: 2003-03-15T16:43:53-08:00 (22 years, 3 months ago) by douglas
Content type: text/x-c
Original Path: trunk/RenegadeMapSelector/MapSelector.h
File size: 710 byte(s)
Log Message:
Objectified!

File Contents

# User Rev Content
1 douglas 86 // Renegade Map Selector
2     //
3     // Douglas Thrift
4     //
5     // MapSelector.h
6    
7     #ifndef _WIN32
8     #ifndef _MapSelector_h_
9     #define _MapSelector_h_
10    
11     #include "RenegadeConfig.h"
12     #include <gtk/gtk.h>
13    
14     inline void message(GtkWindow* parent, const string& text, const string& title,
15     GtkMessageType type)
16     {
17     GtkWidget* box = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL, type,
18     GTK_BUTTONS_OK, text.c_str());
19    
20     gtk_window_set_title(GTK_WINDOW(box), title.c_str());
21    
22     gtk_dialog_run(GTK_DIALOG(box));
23     gtk_widget_destroy(box);
24     }
25    
26     class MapSelector
27     {
28     private:
29     GtkWidget* window;
30     GtkWidget* add;
31     GtkWidget* remove;
32     GtkWidget* up;
33     GtkWidget* down;
34     //
35     public:
36     MapSelector();
37     ~MapSelector();
38     };
39    
40     #endif _MapSelector_h_
41     #endif