diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/Makefile.am | 23 | ||||
-rw-r--r-- | ui/design.glade | 317 | ||||
-rw-r--r-- | ui/main.c | 34 | ||||
-rw-r--r-- | ui/ui-arena.c | 45 | ||||
-rw-r--r-- | ui/ui-arena.h | 58 | ||||
-rw-r--r-- | ui/ui-cmdwin.c | 45 | ||||
-rw-r--r-- | ui/ui-cmdwin.h | 58 | ||||
-rw-r--r-- | ui/ui-window-private.h | 32 | ||||
-rw-r--r-- | ui/ui-window.c | 80 | ||||
-rw-r--r-- | ui/ui-window.h | 58 |
10 files changed, 0 insertions, 750 deletions
diff --git a/ui/Makefile.am b/ui/Makefile.am deleted file mode 100644 index cf01f1b..0000000 --- a/ui/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -## Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> -## -## src/Makefile.am -## -## GNU Robots is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation, either version 3 of the License, or -## (at your option) any later version. -## -## GNU Robots is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - -bin_PROGRAMS = uitest - -INCLUDES = $(GTK_CFLAGS) -I$(top_builddir)/ui/ - -uitest_SOURCES = main.c ui-window.c ui-arena.c ui-cmdwin.c -uitest_LDFLAGS = $(GTK_LIBS) diff --git a/ui/design.glade b/ui/design.glade deleted file mode 100644 index b8d6fba..0000000 --- a/ui/design.glade +++ /dev/null @@ -1,317 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> -<!--Generated with glade3 3.4.5 on Fri May 16 20:44:59 2008 --> -<glade-interface> - <widget class="GtkWindow" id="window1"> - <child> - <widget class="GtkAlignment" id="alignment1"> - <property name="visible">True</property> - <property name="left_padding">2</property> - <property name="right_padding">2</property> - <child> - <widget class="GtkVBox" id="vbox1"> - <property name="visible">True</property> - <child> - <widget class="GtkMenuBar" id="menubar1"> - <property name="visible">True</property> - <child> - <widget class="GtkMenuItem" id="menuitem1"> - <property name="visible">True</property> - <property name="label" translatable="yes">_File</property> - <property name="use_underline">True</property> - <child> - <widget class="GtkMenu" id="menu1"> - <property name="visible">True</property> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem1"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-new</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem2"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-open</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem3"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-save</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem4"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-save-as</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> - <property name="visible">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem5"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-quit</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - </widget> - </child> - </widget> - </child> - <child> - <widget class="GtkMenuItem" id="menuitem2"> - <property name="visible">True</property> - <property name="label" translatable="yes">_Edit</property> - <property name="use_underline">True</property> - <child> - <widget class="GtkMenu" id="menu2"> - <property name="visible">True</property> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem6"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-cut</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem7"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-copy</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem8"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-paste</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem9"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-delete</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - </widget> - </child> - </widget> - </child> - <child> - <widget class="GtkMenuItem" id="menuitem3"> - <property name="visible">True</property> - <property name="label" translatable="yes">_View</property> - <property name="use_underline">True</property> - </widget> - </child> - <child> - <widget class="GtkMenuItem" id="menuitem4"> - <property name="visible">True</property> - <property name="label" translatable="yes">_Help</property> - <property name="use_underline">True</property> - <child> - <widget class="GtkMenu" id="menu3"> - <property name="visible">True</property> - <child> - <widget class="GtkImageMenuItem" id="imagemenuitem10"> - <property name="visible">True</property> - <property name="label" translatable="yes">gtk-about</property> - <property name="use_underline">True</property> - <property name="use_stock">True</property> - </widget> - </child> - </widget> - </child> - </widget> - </child> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkToolbar" id="toolbar1"> - <property name="visible">True</property> - <child> - <widget class="GtkToolButton" id="toolbutton1"> - <property name="visible">True</property> - <property name="stock_id">gtk-open</property> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="position">1</property> - </packing> - </child> - <child> - <widget class="GtkVPaned" id="vpaned1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <child> - <widget class="GtkAlignment" id="alignment2"> - <property name="visible">True</property> - <property name="extension_events">GDK_EXTENSION_EVENTS_ALL</property> - <property name="top_padding">3</property> - <property name="bottom_padding">3</property> - <child> - <widget class="GtkImage" id="image1"> - <property name="visible">True</property> - <property name="extension_events">GDK_EXTENSION_EVENTS_ALL</property> - <property name="stock">gtk-missing-image</property> - <property name="icon_size">6</property> - </widget> - </child> - </widget> - <packing> - <property name="resize">False</property> - <property name="shrink">True</property> - </packing> - </child> - <child> - <widget class="GtkVBox" id="vbox2"> - <property name="visible">True</property> - <child> - <widget class="GtkHBox" id="hbox1"> - <property name="visible">True</property> - <property name="spacing">11</property> - <child> - <widget class="GtkHBox" id="hbox3"> - <property name="visible">True</property> - <child> - <widget class="GtkButton" id="button1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="relief">GTK_RELIEF_NONE</property> - <property name="focus_on_click">False</property> - <property name="response_id">0</property> - <child> - <widget class="GtkImage" id="image2"> - <property name="visible">True</property> - <property name="stock">gtk-media-play</property> - </widget> - </child> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkButton" id="button2"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="relief">GTK_RELIEF_NONE</property> - <property name="focus_on_click">False</property> - <property name="response_id">0</property> - <child> - <widget class="GtkImage" id="image3"> - <property name="visible">True</property> - <property name="stock">gtk-media-next</property> - </widget> - </child> - </widget> - <packing> - <property name="expand">False</property> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkHBox" id="hbox4"> - <property name="visible">True</property> - <property name="spacing">2</property> - <child> - <widget class="GtkLabel" id="label2"> - <property name="visible">True</property> - <property name="xalign">1</property> - <property name="label" translatable="yes">Speed</property> - <property name="justify">GTK_JUSTIFY_RIGHT</property> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkHScale" id="hscale1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="adjustment">0 0 100 1 10 10</property> - <property name="value_pos">GTK_POS_RIGHT</property> - </widget> - <packing> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="expand">False</property> - </packing> - </child> - <child> - <widget class="GtkLabel" id="label3"> - <property name="visible">True</property> - <property name="label" translatable="yes">Commands/Interaction</property> - </widget> - <packing> - <property name="position">1</property> - </packing> - </child> - </widget> - <packing> - <property name="resize">False</property> - <property name="shrink">True</property> - </packing> - </child> - </widget> - <packing> - <property name="position">2</property> - </packing> - </child> - <child> - <widget class="GtkStatusbar" id="statusbar1"> - <property name="visible">True</property> - <property name="spacing">2</property> - </widget> - <packing> - <property name="expand">False</property> - <property name="position">3</property> - </packing> - </child> - </widget> - </child> - </widget> - </child> - </widget> -</glade-interface> diff --git a/ui/main.c b/ui/main.c deleted file mode 100644 index da7e94c..0000000 --- a/ui/main.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots UI Test, main.c. - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#include <gtk/gtkmain.h> - -#include "ui-window.h" - -int main(int argc, char* argv[]) -{ - GtkWidget* window; - - gtk_init(&argc, &argv); - - window = ui_window_new(); - - gtk_main(); - - return 0; -} diff --git a/ui/ui-arena.c b/ui/ui-arena.c deleted file mode 100644 index 06c7bcc..0000000 --- a/ui/ui-arena.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots, ui-arena.c - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "ui-arena.h" - -struct _UIArenaPrivate -{ - int dummy; -}; - -#define UI_ARENA_GET_PRIVATE(obj) \ - G_TYPE_INSTANCE_GET_PRIVATE(obj, UI_TYPE_ARENA, UIArenaPrivate) - -G_DEFINE_TYPE(UIArena, ui_arena, GTK_TYPE_DRAWING_AREA) - -GtkWidget *ui_arena_new(void) -{ - return GTK_WIDGET(g_object_new(UI_TYPE_ARENA, NULL)); -} - -static void ui_arena_init(UIArena *arena) -{ - gtk_widget_set_size_request(GTK_WIDGET(arena), 40*16,18*16); -} - -static void ui_arena_class_init(UIArenaClass *klass) -{ - g_type_class_add_private(G_OBJECT_CLASS(klass), - sizeof(UIArenaPrivate)); -} diff --git a/ui/ui-arena.h b/ui/ui-arena.h deleted file mode 100644 index 5277f54..0000000 --- a/ui/ui-arena.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots, ui-arena.h - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __UI_ARENA_H__ -#define __UI_ARENA_H__ - -#include <gtk/gtk.h> - -G_BEGIN_DECLS - -#define UI_TYPE_ARENA \ - ui_arena_get_type() -#define UI_ARENA(obj) \ - G_TYPE_CHECK_INSTANCE_CAST(obj, UI_TYPE_ARENA, UIArena) -#define UI_ARENA_CLASS(klass) \ - G_TYPE_CHECK_CLASS_CAST(klass, UI_ARENA_TYPE, UIArenaClass) -#define IS_UI_ARENA(obj) \ - G_TYPE_CHECK_INSTANCE_TYPE(obj, UI_TYPE_ARENA) -#define IS_UI_ARENA_CLASS(klass) \ - G_TYPE_CHECK_CLASS_TYPE(klass, UI_TYPE_ARENA) - -typedef struct _UIArena UIArena; -typedef struct _UIArenaClass UIArenaClass; -typedef struct _UIArenaPrivate UIArenaPrivate; - -struct _UIArena -{ - GtkDrawingArea widget; - UIArenaPrivate* priv; -}; - -struct _UIArenaClass -{ - GtkDrawingAreaClass parent_class; -}; - -GType ui_arena_get_type(void) G_GNUC_CONST; - -GtkWidget *ui_arena_new(void); - -G_END_DECLS - -#endif diff --git a/ui/ui-cmdwin.c b/ui/ui-cmdwin.c deleted file mode 100644 index b743687..0000000 --- a/ui/ui-cmdwin.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots, ui-cmdwin.c - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "ui-cmdwin.h" - -struct _UICmdWinPrivate -{ - int dummy; -}; - -#define UI_CMDWIN_GET_PRIVATE(obj) \ - G_TYPE_INSTANCE_GET_PRIVATE(obj, UI_TYPE_CMDWIN, UICmdWinPrivate) - -G_DEFINE_TYPE(UICmdWin, ui_cmdwin, GTK_TYPE_VBOX) - -GtkWidget *ui_cmdwin_new(void) -{ - return GTK_WIDGET(g_object_new(UI_TYPE_CMDWIN, NULL)); -} - -static void ui_cmdwin_init(UICmdWin *cmdwin) -{ - gtk_widget_set_size_request(GTK_WIDGET(cmdwin), 40*16,200); -} - -static void ui_cmdwin_class_init(UICmdWinClass *klass) -{ - g_type_class_add_private(G_OBJECT_CLASS(klass), - sizeof(UICmdWinPrivate)); -} diff --git a/ui/ui-cmdwin.h b/ui/ui-cmdwin.h deleted file mode 100644 index c3bcf8a..0000000 --- a/ui/ui-cmdwin.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots, ui-cmdwin.h - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __UI_CMDWIN_H__ -#define __UI_CMDWIN_H__ - -#include <gtk/gtk.h> - -G_BEGIN_DECLS - -#define UI_TYPE_CMDWIN \ - ui_cmdwin_get_type() -#define UI_CMDWIN(obj) \ - G_TYPE_CHECK_INSTANCE_CAST(obj, UI_TYPE_CMDWIN, UICmdWin) -#define UI_CMDWIN_CLASS(klass) \ - G_TYPE_CHECK_CLASS_CAST(klass, UI_CMDWIN_TYPE, UICmdWinClass) -#define IS_UI_CMDWIN(obj) \ - G_TYPE_CHECK_INSTANCE_TYPE(obj, UI_TYPE_CMDWIN) -#define IS_UI_CMDWIN_CLASS(klass) \ - G_TYPE_CHECK_CLASS_TYPE(klass, UI_TYPE_CMDWIN) - -typedef struct _UICmdWin UICmdWin; -typedef struct _UICmdWinClass UICmdWinClass; -typedef struct _UICmdWinPrivate UICmdWinPrivate; - -struct _UICmdWin -{ - GtkVBox widget; - UICmdWinPrivate* priv; -}; - -struct _UICmdWinClass -{ - GtkVBoxClass parent_class; -}; - -GType ui_cmdwin_get_type(void) G_GNUC_CONST; - -GtkWidget *ui_cmdwin_new(void); - -G_END_DECLS - -#endif diff --git a/ui/ui-window-private.h b/ui/ui-window-private.h deleted file mode 100644 index cfb8b63..0000000 --- a/ui/ui-window-private.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots UI Test, ui-window-private.h. - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __UI_WINDOW_PRIVATE_H__ -#define __UI_WINDOW_PRIVATE_H__ - -G_BEGIN_DECLS - -struct _UIWindowPrivate -{ - GtkWidget *cmdwin; - GtkWidget *arena; -}; - -G_END_DECLS - -#endif /* __UI_WINDOW_PRIVATE_H__ */ diff --git a/ui/ui-window.c b/ui/ui-window.c deleted file mode 100644 index 27c49e9..0000000 --- a/ui/ui-window.c +++ /dev/null @@ -1,80 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots UI Test, ui-window.c. - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "ui-window.h" -#include "ui-window-private.h" - -#include "ui-cmdwin.h" -#include "ui-arena.h" - -#include <gtk/gtkmain.h> - -#define UI_WINDOW_GET_PRIVATE(obj) \ - G_TYPE_INSTANCE_GET_PRIVATE(obj, UI_TYPE_WINDOW, UIWindowPrivate) - -G_DEFINE_TYPE(UIWindow, ui_window, GTK_TYPE_WINDOW) - -static void on_ui_window_destroy(GtkWidget *widget, gpointer data); - -GtkWidget *ui_window_new(void) -{ - return GTK_WIDGET(g_object_new(UI_TYPE_WINDOW, NULL)); -} - -static void on_ui_window_destroy(GtkWidget *widget, gpointer data) -{ - gtk_widget_hide(widget); - gtk_main_quit(); -} - -static void ui_window_init(UIWindow *window) -{ - GtkWidget *vbox; - GtkWidget *vpaned; - - window->priv = UI_WINDOW_GET_PRIVATE(window); - - vbox = gtk_vbox_new(FALSE, 0); - vpaned = gtk_vpaned_new(); - window->priv->cmdwin = ui_cmdwin_new(); - window->priv->arena = ui_arena_new(); - - gtk_paned_add1(GTK_PANED(vpaned), window->priv->arena); - gtk_paned_add2(GTK_PANED(vpaned), window->priv->cmdwin); - - /* TODO: Add menu first etc */ - gtk_box_pack_start(GTK_BOX(vbox), vpaned, TRUE, TRUE, 0); - - gtk_container_add(GTK_CONTAINER(window), vbox); - - g_signal_connect(G_OBJECT(window), "destroy", - G_CALLBACK(on_ui_window_destroy), NULL); - - gtk_window_set_title(GTK_WINDOW(window), "UI Test"); - gtk_widget_show(window->priv->cmdwin); - gtk_widget_show(window->priv->arena); - gtk_widget_show(vpaned); - gtk_widget_show(vbox); - gtk_widget_show(GTK_WIDGET(window)); -} - -static void ui_window_class_init(UIWindowClass *klass) -{ - g_type_class_add_private(G_OBJECT_CLASS(klass), - sizeof(UIWindowPrivate)); -} diff --git a/ui/ui-window.h b/ui/ui-window.h deleted file mode 100644 index 450223b..0000000 --- a/ui/ui-window.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk> - * - * GNU Robots UI Test, ui-window.h. - * - * GNU Robots is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * GNU Robots is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Robots. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __UI_WINDOW_H__ -#define __UI_WINDOW_H__ - -#include <gtk/gtkwindow.h> - -G_BEGIN_DECLS - -#define UI_TYPE_WINDOW \ - ui_window_get_type() -#define UI_WINDOW(obj) \ - G_TYPE_CHECK_INSTANCE_CAST(obj, UI_TYPE_WINDOW, UIWindow) -#define UI_WINDOW_CLASS(klass) \ - G_TYPE_CHECK_CLASS_CAST(klass, UI_WINDOW_TYPE, UIWindowClass) -#define IS_UI_WINDOW(obj) \ - G_TYPE_CHECK_INSTANCE_TYPE(obj, UI_TYPE_WINDOW) -#define IS_UI_WINDOW_CLASS(klass) \ - G_TYPE_CHECK_CLASS_TYPE(klass, UI_TYPE_WINDOW) - -typedef struct _UIWindow UIWindow; -typedef struct _UIWindowClass UIWindowClass; -typedef struct _UIWindowPrivate UIWindowPrivate; - -struct _UIWindow -{ - GtkWindow widget; - UIWindowPrivate* priv; -}; - -struct _UIWindowClass -{ - GtkWindowClass parent_class; -}; - -GType ui_window_get_type(void) G_GNUC_CONST; - -GtkWidget *ui_window_new(void); - -G_END_DECLS - -#endif /* __UI_WINDOW_H__ */ |