Tome
A generic data editor for games supporting arbitrary input and output formats.
errorlistdockwidget.h
1 #ifndef ERRORLISTDOCKWIDGET_H
2 #define ERRORLISTDOCKWIDGET_H
3 
4 #include <QDockWidget>
5 #include <QHBoxLayout>
6 #include <QTableWidget>
7 #include <QToolButton>
8 #include <QVBoxLayout>
9 
10 #include "../Model/messagelist.h"
11 
12 namespace Tome
13 {
17  class ErrorListDockWidget : public QDockWidget
18  {
19  Q_OBJECT
20 
21  public:
26  ErrorListDockWidget(QWidget* parent);
28 
33  void showMessages(const MessageList& messages);
34 
35  signals:
43  void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue) const;
44 
49  void recordLinkActivated(const QString& recordId);
50 
51  private:
52  QWidget* widget;
53 
54  QVBoxLayout* verticalLayout;
55 
56  QTableWidget* tableWidgetErrorList;
57 
58  QHBoxLayout* toolButtonsLayout;
59 
60  QToolButton* toolButtonErrors;
61  QToolButton* toolButtonMessages;
62  QToolButton* toolButtonWarnings;
63 
64  MessageList messages;
65 
66  void refreshMessages();
67 
68  private slots:
69  void onRecordLinkActivated(const QString& recordId);
70  void onToolButtonErrorsToggled(bool checked);
71  void onToolButtonWarningsToggled(bool checked);
72  void onToolButtonMessagesToggled(bool checked);
73  };
74 }
75 
76 
77 #endif // ERRORLISTDOCKWIDGET_H
Definition: commandlineoptions.h:6
void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue) const
Progress of the refreshing the message list has changed.
ErrorListDockWidget(QWidget *parent)
Constructs a new widget for showing messages, warnings and errors generated by automated tasks...
Definition: errorlistdockwidget.cpp:9
Shows messages, warnings and errors generated by automated tasks.
Definition: errorlistdockwidget.h:17
void recordLinkActivated(const QString &recordId)
A link to another Tome record has been activated.
void showMessages(const MessageList &messages)
Shows the passed messages, warnings and errors.
Definition: errorlistdockwidget.cpp:97