19 #ifndef OST_GUI_MESSAGES_MESSAGE_WIDGET_HH
20 #define OST_GUI_MESSAGES_MESSAGE_WIDGET_HH
27 #include <QMessageBox>
28 #include <QStandardItemModel>
34 namespace ost {
namespace gui {
45 virtual void LogMessage(
const QString& message, QMessageBox::Icon icon=QMessageBox::Information);
47 virtual void LogMessage(
const QString& message, QIcon icon);
51 virtual bool Save(
const QString& prefix) {
return true; }
52 virtual bool Restore(
const QString& prefix) {
return true; }
54 QPixmap
GetIcon(QMessageBox::Icon icon, QWidget* widget);
69 void ContextMenuRequested(
const QPoint& pos);
72 void Increase(QMessageBox::Icon icon);
73 void Decrease(QMessageBox::Icon icon);
75 QStandardItemModel* model_;
79 QMap<int,int> count_map_;
#define DLLEXPORT_OST_GUI
QList< QAction * > ActionList