Lumiera  0.pre.03
»edityourfreedom«
InfoBoxPanel Class Reference

#include "gui/panel/infobox-panel.hpp"

Description

Definition at line 48 of file infobox-panel.hpp.

Public Member Functions

 InfoBoxPanel (workspace::PanelManager &, Gdl::DockItem &)
 Build a new InfoBox-Panel. More...
 
widget::ErrorLogDisplaygetLog ()
 on demand allocate display of information / error log More...
 
- Public Member Functions inherited from Panel
 ~Panel ()
 
Gdl::DockItem & getDockItem ()
 
workspace::PanelManagergetPanelManager ()
 
void iconify ()
 
bool is_iconified () const
 
bool is_locked () const
 
bool is_shown () const
 
void lock (bool show=true)
 Locks or unlocks the panel against modifications. More...
 
void show (bool show=true)
 Shows or hides the panel. More...
 
sigc::signal< void > & signal_hidePanel ()
 fires when the dock item gets hidden. More...
 

Static Public Member Functions

static const gchar * getStockID ()
 
static const char * getTitle ()
 

Private Member Functions

void reflect_LogErrorState (bool)
 

Private Attributes

Gtk::Button buttonClear_
 
Gtk::Button buttonClearErr_
 
Gtk::Button buttonClearInfo_
 
Gtk::ButtonBox buttons_
 
Gtk::Frame frame_
 
Gtk::Expander logExpander_
 
std::unique_ptr< widget::ErrorLogDisplaytheLog_
 
Gtk::Box twoParts_
 

Additional Inherited Members

- Protected Member Functions inherited from Panel
 Panel (workspace::PanelManager &, Gdl::DockItem &, const gchar *longName, const gchar *stockID)
 
workspace::WorkspaceWindowgetWorkspaceWindow ()
 
- Protected Attributes inherited from Panel
Gdl::DockItem & dockItem_
 owner dock item widget that will host the widgets in this panel. More...
 
sigc::signal< void > hidePanelSignal_
 signal that fires when the dock item is hidden. More...
 
widget::PanelBar panelBar_
 panel bar to attach to the panel grip. More...
 
workspace::PanelManagerpanelManager_
 The owner panel manager object. More...
 

Constructor & Destructor Documentation

◆ InfoBoxPanel()

InfoBoxPanel ( workspace::PanelManager panelManager,
Gdl::DockItem &  dockItem 
)

Build a new InfoBox-Panel.

Parameters
PanelManagerThe owner panel manager widget.
DockItemThe GdlDockItem that will host this panel.
Todo:
just used as place for the error log as of 10/2017. More to come...

Definition at line 39 of file infobox-panel.cpp.

References _, InfoBoxPanel::buttonClear_, InfoBoxPanel::buttonClearErr_, InfoBoxPanel::buttonClearInfo_, InfoBoxPanel::buttons_, InfoBoxPanel::frame_, InfoBoxPanel::logExpander_, InfoBoxPanel::reflect_LogErrorState(), InfoBoxPanel::theLog_, and InfoBoxPanel::twoParts_.

+ Here is the call graph for this function:

Member Function Documentation

◆ getTitle()

const char * getTitle ( )
static

Definition at line 88 of file infobox-panel.cpp.

References _.

◆ getStockID()

const gchar * getStockID ( )
static

Definition at line 94 of file infobox-panel.cpp.

◆ getLog()

ErrorLogDisplay & getLog ( )

on demand allocate display of information / error log

Note
we assume it stays alive until the panel itself is closed.
Remarks
the ErrorLogDisplay widget exposes a Expander functor, which is wired here with the Gtk::Expander container holding the Log. This setup allows to trigger the expand/collapse functionality and query the expansion state directly on the widget. Especially NotificationHub relies on this configuration.

Definition at line 109 of file infobox-panel.cpp.

References InfoBoxPanel::frame_, InfoBoxPanel::logExpander_, InfoBoxPanel::reflect_LogErrorState(), Panel::show(), and InfoBoxPanel::theLog_.

+ Here is the call graph for this function:

◆ reflect_LogErrorState()

void reflect_LogErrorState ( bool  isError)
private

Definition at line 134 of file infobox-panel.cpp.

References InfoBoxPanel::buttonClearErr_, and InfoBoxPanel::buttonClearInfo_.

Referenced by InfoBoxPanel::getLog(), and InfoBoxPanel::InfoBoxPanel().

+ Here is the caller graph for this function:

Member Data Documentation

◆ twoParts_

Gtk::Box twoParts_
private

Definition at line 68 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::InfoBoxPanel().

◆ buttons_

Gtk::ButtonBox buttons_
private

Definition at line 69 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::InfoBoxPanel().

◆ buttonClear_

Gtk::Button buttonClear_
private

Definition at line 70 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::InfoBoxPanel().

◆ buttonClearInfo_

Gtk::Button buttonClearInfo_
private

◆ buttonClearErr_

Gtk::Button buttonClearErr_
private

◆ frame_

Gtk::Frame frame_
private

Definition at line 71 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::getLog(), and InfoBoxPanel::InfoBoxPanel().

◆ logExpander_

Gtk::Expander logExpander_
private

Definition at line 72 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::getLog(), and InfoBoxPanel::InfoBoxPanel().

◆ theLog_

std::unique_ptr<widget::ErrorLogDisplay> theLog_
private

Definition at line 74 of file infobox-panel.hpp.

Referenced by InfoBoxPanel::getLog(), and InfoBoxPanel::InfoBoxPanel().

+ Inheritance diagram for InfoBoxPanel:
+ Collaboration diagram for InfoBoxPanel:

The documentation for this class was generated from the following files: