Lumiera  0.pre.03
»edit your freedom«
infobox-panel.hpp
Go to the documentation of this file.
1 /*
2  infobox-panel.hpp - A dockable panel to expose information and parameters
3 
4  Copyright (C) Lumiera.org
5  2017, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
34 #ifndef STAGE_PANEL_INFOBOX_PANEL_H
35 #define STAGE_PANEL_INFOBOX_PANEL_H
36 
37 
38 #include "stage/panel/panel.hpp"
39 
40 #include <memory>
41 
42 namespace stage {
43 namespace widget {
44  class ErrorLogDisplay;
45 }
46 namespace panel{
47 
49  : public Panel
50  {
51  public:
59  InfoBoxPanel (workspace::PanelManager&, Gdl::DockItem&);
60 
61 
62  static const char* getTitle();
63  static const gchar* getStockID();
64 
65  widget::ErrorLogDisplay& getLog();
66 
67  private:
68  Gtk::Box twoParts_;
69  Gtk::ButtonBox buttons_;
70  Gtk::Button buttonClear_, buttonClearInfo_, buttonClearErr_;
71  Gtk::Frame frame_;
72  Gtk::Expander logExpander_;
73 
74  std::unique_ptr<widget::ErrorLogDisplay> theLog_;
75 
76  void reflect_LogErrorState (bool);
77  };
78 
79 
80 }}// namespace stage::panel
81 #endif /*STAGE_PANEL_INFOBOX_PANEL_H*/
A class to manage DockItem objects for WorkspaceWindow.
The base class for all dockable panels.
Definition: panel.hpp:49
Base class and interface for all dockable panels.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Widget to display log and error messages.