|
Last change
on this file since 1893 was
1893,
checked in by bensch, 21 years ago
|
|
orxonox/branches/gui: added guicc: a c++ version of the gui, that should be object-oriented
|
|
File size:
919 bytes
|
| Line | |
|---|
| 1 | #ifndef _ORXONOX_GUI_H |
|---|
| 2 | #define _ORXONOX_GUI_H |
|---|
| 3 | |
|---|
| 4 | #include <stdio.h> |
|---|
| 5 | #include <stdlib.h> |
|---|
| 6 | #include <string.h> |
|---|
| 7 | #include <gtk/gtk.h> |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | class Widget |
|---|
| 11 | { |
|---|
| 12 | private: |
|---|
| 13 | |
|---|
| 14 | Widget* next; |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | public: |
|---|
| 18 | GtkWidget* widget; |
|---|
| 19 | //virtual void create (); |
|---|
| 20 | virtual void show () = 0; |
|---|
| 21 | // void addWidget (); |
|---|
| 22 | static void connectSignal (Widget* thisWidget, char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *)); |
|---|
| 23 | }; |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | class Container : public Widget |
|---|
| 28 | { |
|---|
| 29 | private: |
|---|
| 30 | int borderwidth; |
|---|
| 31 | int policy; |
|---|
| 32 | char* label; |
|---|
| 33 | Widget* down; |
|---|
| 34 | |
|---|
| 35 | public: |
|---|
| 36 | void setBorderWidth (int borderwidth); |
|---|
| 37 | virtual void setTitle (char* title) = 0; |
|---|
| 38 | }; |
|---|
| 39 | |
|---|
| 40 | class Window : public Container |
|---|
| 41 | { |
|---|
| 42 | private: |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | public: |
|---|
| 47 | Window (char* windowName); |
|---|
| 48 | Window (void); |
|---|
| 49 | ~Window (); |
|---|
| 50 | void setTitle (char* title); |
|---|
| 51 | void show (); |
|---|
| 52 | |
|---|
| 53 | }; |
|---|
| 54 | |
|---|
| 55 | class Box : public Widget |
|---|
| 56 | { |
|---|
| 57 | |
|---|
| 58 | }; |
|---|
| 59 | |
|---|
| 60 | gint orxonox_gui_quit ( GtkWidget *widget, GdkEvent *event, gpointer data); |
|---|
| 61 | |
|---|
| 62 | #endif /* _ORXONOX_GUI_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.