From 7e23270da02d73e1d917f7b55cd5fa6ace69e999 Mon Sep 17 00:00:00 2001 From: schodet Date: Sun, 16 Nov 2003 21:49:23 +0000 Subject: Ajout des headers d'interface. --- i/siroco/src/interface_asservissement.h | 38 +++++++++++++++++++++++++++++ i/siroco/src/interface_container.h | 40 ++++++++++++++++++++++++++++++ i/siroco/src/interface_notebook.h | 43 +++++++++++++++++++++++++++++++++ i/siroco/src/interface_widget.h | 39 ++++++++++++++++++++++++++++++ 4 files changed, 160 insertions(+) create mode 100644 i/siroco/src/interface_asservissement.h create mode 100644 i/siroco/src/interface_container.h create mode 100644 i/siroco/src/interface_notebook.h create mode 100644 i/siroco/src/interface_widget.h (limited to 'i') diff --git a/i/siroco/src/interface_asservissement.h b/i/siroco/src/interface_asservissement.h new file mode 100644 index 0000000..f3036d8 --- /dev/null +++ b/i/siroco/src/interface_asservissement.h @@ -0,0 +1,38 @@ +#ifndef interface_asservissement_h +#define interface_asservissement_h +// interface_asservissement.h +// {{{ +// +// Copyright (C) 2003 Nicolas Schodet et Pierre-André Galmes +// +// Robot APB Team/Efrei 2004. +// Web: http://assos.efrei.fr/robot/ +// Email: robot AT efrei DOT fr +// +// This program 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 2 of the License, or +// (at your option) any later version. +// +// This program 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 this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// +// }}} +#include "interface_widget.h" + +class InterfaceAsservissement : public InterfaceWidget +{ + public: + // Destructeur. + ~InterfaceAsservissement (void); + // Récupère le widget qui correspond à cet InterfaceWidget. + Gtk::Widget &getGtkWidget (void); +}; + +#endif // interface_asservissement_h diff --git a/i/siroco/src/interface_container.h b/i/siroco/src/interface_container.h new file mode 100644 index 0000000..c29fdf0 --- /dev/null +++ b/i/siroco/src/interface_container.h @@ -0,0 +1,40 @@ +#ifndef interface_container_h +#define interface_container_h +// interface_container.h +// {{{ +// +// Copyright (C) 2003 Nicolas Schodet et Pierre-André Galmes +// +// Robot APB Team/Efrei 2004. +// Web: http://assos.efrei.fr/robot/ +// Email: robot AT efrei DOT fr +// +// This program 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 2 of the License, or +// (at your option) any later version. +// +// This program 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 this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// +// }}} +#include "interface_widget.h" + +class InterfaceContainer +{ + public: + // Destructeur. + virtual ~InterfaceContainer (void); + // Ajoute un widget. + virtual void add (InterfaceWidget &w, const string &name) = 0; + // Enlève un widget. + virtual void remove (InterfaceWidget &w) = 0; +}; + +#endif // interface_container_h diff --git a/i/siroco/src/interface_notebook.h b/i/siroco/src/interface_notebook.h new file mode 100644 index 0000000..9d74b0e --- /dev/null +++ b/i/siroco/src/interface_notebook.h @@ -0,0 +1,43 @@ +#ifndef interface_notebook_h +#define interface_notebook_h +// interface_notebook.h +// {{{ +// +// Copyright (C) 2003 Nicolas Schodet et Pierre-André Galmes +// +// Robot APB Team/Efrei 2004. +// Web: http://assos.efrei.fr/robot/ +// Email: robot AT efrei DOT fr +// +// This program 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 2 of the License, or +// (at your option) any later version. +// +// This program 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 this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// +// }}} +#include "interface_widget.h" +#include "interface_container.h" + +class InterfaceNotebook : public InterfaceWidget, public InterfaceContainer +{ + public: + // Destructeur. + ~InterfaceNotebook (void); + // Récupère le widget qui correspond à cet InterfaceWidget. + Gtk::Widget &getGtkWidget (void); + // Ajoute un widget. + void add (InterfaceWidget &w, const string &name); + // Enlève un widget. + void remove (InterfaceWidget &w); +}; + +#endif // interface_notebook_h diff --git a/i/siroco/src/interface_widget.h b/i/siroco/src/interface_widget.h new file mode 100644 index 0000000..410d4f7 --- /dev/null +++ b/i/siroco/src/interface_widget.h @@ -0,0 +1,39 @@ +#ifndef interface_widget_h +#define interface_widget_h +// interface_widget.h +// {{{ +// +// Copyright (C) 2003 Nicolas Schodet et Pierre-André Galmes +// +// Robot APB Team/Efrei 2004. +// Web: http://assos.efrei.fr/robot/ +// Email: robot AT efrei DOT fr +// +// This program 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 2 of the License, or +// (at your option) any later version. +// +// This program 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 this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// +// }}} + +#include + +class InterfaceWidget +{ + public: + // Destructeur. + virtual ~InterfaceWidget (void); + // Récupère le widget qui correspond à cet InterfaceWidget. + virtual Gtk::Widget &getGtkWidget (void) = 0; +}; + +#endif // interface_widget_h -- cgit v1.2.3