Tome
A generic data editor for games supporting arbitrary input and output formats.
searchresultsdockwidget.h
1 #ifndef SEARCHRESULTSDOCKWIDGET_H
2 #define SEARCHRESULTSDOCKWIDGET_H
3 
4 #include <QDockWidget>
5 #include <QTableWidget>
6 #include <QVBoxLayout>
7 
8 #include "../Model/searchresultlist.h"
9 
10 namespace Tome
11 {
15  class SearchResultsDockWidget : public QDockWidget
16  {
17  Q_OBJECT
18 
19  public:
24  SearchResultsDockWidget(QWidget* parent);
26 
32  void showResults(const QString& title, const SearchResultList& results);
33 
34  signals:
42  void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue);
43 
48  void recordLinkActivated(const QString& recordId);
49 
50  private:
51  QWidget* widget;
52  QVBoxLayout* verticalLayout;
53  QTableWidget* tableWidget;
54 
55  SearchResultList results;
56 
57  private slots:
58  void onRecordLinkActivated(const QString& recordId);
59  };
60 }
61 
62 #endif // SEARCHRESULTSDOCKWIDGET_H
Definition: commandlineoptions.h:6
Shows the results of a search operation.
Definition: searchresultsdockwidget.h:15
void showResults(const QString &title, const SearchResultList &results)
Shows the passed search results.
Definition: searchresultsdockwidget.cpp:41
SearchResultsDockWidget(QWidget *parent)
Constructs a new widget for showing the results of a search operation.
Definition: searchresultsdockwidget.cpp:12
void progressChanged(const QString title, const QString text, const int currentValue, const int maximumValue)
Progress of the current search operation has changed.
void recordLinkActivated(const QString &recordId)
A link to another Tome record has been activated.