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);
46 virtual void LogMessage(QStandardItem* item);
47 virtual void LogMessage(
const QString& message, QIcon icon);
49 virtual int GetMessagesCount(QMessageBox::Icon icon=QMessageBox::NoIcon);
50 virtual int GetTotalMessagesCount();
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);
59 void MessageCountChanged(QMessageBox::Icon);
63 void ErrorOutput(
unsigned int id,
const QString& output);
65 void RemoveSelected();
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
ImageStateConstModIPAlgorithm< ClearFnc > Clear