summaryrefslogtreecommitdiff
path: root/src/gtk
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-04-29 09:14:33 -0700
committerDaniel Burrows <dburrows@debian.org>2010-04-29 09:14:33 -0700
commit53de7492a5969c63ac23eb4d40f2788fda8675f8 (patch)
treea7ca11dd52238b947e33c3b661a024a6a454db87 /src/gtk
parent4d4287d3d237a747e6bbc4cc21b342f87b6e8538 (diff)
downloadaptitude-53de7492a5969c63ac23eb4d40f2788fda8675f8.tar.gz
Add some stub files sketching out the classes that I want to exist.
Diffstat (limited to 'src/gtk')
-rw-r--r--src/gtk/toplevel/Makefile.am4
-rw-r--r--src/gtk/toplevel/SConscript2
-rw-r--r--src/gtk/toplevel/sidebar.h50
-rw-r--r--src/gtk/toplevel/tabs_notebook.h39
4 files changed, 94 insertions, 1 deletions
diff --git a/src/gtk/toplevel/Makefile.am b/src/gtk/toplevel/Makefile.am
index 11040549..64e345d9 100644
--- a/src/gtk/toplevel/Makefile.am
+++ b/src/gtk/toplevel/Makefile.am
@@ -6,4 +6,6 @@ EXTRA_DIST=README
libgtk_toplevel_a_SOURCES = \
area.cc \
- area.h \ No newline at end of file
+ area.h \
+ sidebar.h \
+ tabs_notebook.h \ No newline at end of file
diff --git a/src/gtk/toplevel/SConscript b/src/gtk/toplevel/SConscript
index 24a933a9..fd34911e 100644
--- a/src/gtk/toplevel/SConscript
+++ b/src/gtk/toplevel/SConscript
@@ -3,6 +3,8 @@ Import('programs_env')
toplevel_srcs = map(File, [
'area.cc',
'area.h',
+ 'sidebar.h',
+ 'tabs_notebook.h'
])
srcs = toplevel_srcs
diff --git a/src/gtk/toplevel/sidebar.h b/src/gtk/toplevel/sidebar.h
new file mode 100644
index 00000000..e897aceb
--- /dev/null
+++ b/src/gtk/toplevel/sidebar.h
@@ -0,0 +1,50 @@
+/** \file sidebar.h */ // -*-c++-*-
+
+// Copyright (C) 2010 Daniel Burrows
+//
+// 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; see the file COPYING. If not, write to
+// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+#ifndef TOPLEVEL_SIDEBAR_H
+#define TOPLEVEL_SIDEBAR_H
+
+#include "area.h"
+
+namespace gui
+{
+ namespace toplevel
+ {
+ /** \brief Displays a list of areas and the tabs that can be
+ * selected in each area.
+ *
+ * Notifications will appear in line with the tabs.
+ *
+ * Display of the actual tabs is left to another widget.
+ */
+ class sidebar
+ {
+ public:
+ /** \brief Create a new sidebar.
+ *
+ * \param The list of areas whose contents will appear in this
+ * sidebar.
+ */
+ sidebar(const boost::shared_ptr<area_list> &areas);
+ };
+ }
+}
+
+#endif // TOPLEVEL_SIDEBAR_H
+
diff --git a/src/gtk/toplevel/tabs_notebook.h b/src/gtk/toplevel/tabs_notebook.h
new file mode 100644
index 00000000..967ec49a
--- /dev/null
+++ b/src/gtk/toplevel/tabs_notebook.h
@@ -0,0 +1,39 @@
+/** \file tabs_notebook.h */ // -*-c++-*-
+
+
+// Copyright (C) 2010 Daniel Burrows
+//
+// 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; see the file COPYING. If not, write to
+// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+#ifndef TOPLEVEL_TABS_NOTEBOOK_H
+#define TOPLEVEL_TABS_NOTEBOOK_H
+
+namespace gui
+{
+ namespace toplevel
+ {
+ /** \brief Display a collection of tabs as a notebook widget. */
+ class tabs
+ {
+ public:
+ /** \brief Create a new notebook displaying the given area.
+ */
+ tabs(const boost::shared_ptr<area_info> &area);
+ };
+ }
+}
+
+#endif TOPLEVEL_TABS_H