Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Widget to display error messages to be accessible in non-modal way.
Notifications are shown in a simple text window with scrollbars; new entries can be added with a severity level, causing the widget to scroll down to the last line of the content buffer.
The ErrorLogDisplay is typically managed as child of a container widget. However, the ctrl::NotificationHub as controller does a lookup and attaches to an ErrorLogDisplay found within the InfoBoxPanel, using it as holder for information and error messages pushed into the GUI. For that reason, it is important really to destroy the ErrorLogDisplay, when it is taken out of service. Since ErrorLogDisplay inherits from sigc::trackable
, it is automatically detached from the WLink implementing this cross-attachment, but only when actually the dtor is called.
remove()
a widget from a container, the container no longer manages the widget, so you are responsible to take ownership in such situations. And, as said, in case of the ErrorLogDisplay, you should delete
it. WIP-WIP-WIP as of 9/2017 this is a first draft of a widget to be used as receiver by the GuiNotificationService.
WIP-WIP and in 9/2018 this draft gradually shifts towards a prototype how to deal with custom configured widget behaviour, and how to integrate with our GUI framework (#1099)
Definition in file error-log-display.hpp.
#include "stage/gtk-base.hpp"
#include "stage/style-scheme.hpp"
#include "stage/model/flash-deco.hpp"
#include "stage/model/expander-revealer.hpp"
#include "include/gui-notification-facade.h"
#include "lib/format-string.hpp"
#include "lib/symbol.hpp"
#include "lib/util.hpp"
#include <utility>
#include <vector>
Classes | |
class | ErrorLogDisplay |
Widget to display log and error messages. More... | |
Typedefs | |
using | Tag = Glib::RefPtr< Gtk::TextBuffer::Tag > |
Functions | |
void | populateStandardTextTags (Glib::RefPtr< TextBuffer::TagTable > tagTable) |
Namespaces | |
stage | |
Lumiera GTK UI implementation root. | |
stage::widget | |
Lumiera custom widgets. | |