diff options
author | ConfuSomu | 2023-08-02 01:56:58 +0200 |
---|---|---|
committer | ConfuSomu | 2023-08-02 01:56:58 +0200 |
commit | 42434314d65cdc29402c7adcb08c2fa5113f7ca2 (patch) | |
tree | 703e792905b16d02c7137dd8cf7b60ed8d911890 /src/mainwindow.h | |
parent | cdd08523b9af7afda906766d22197a066c9264f3 (diff) | |
download | ActorViewer-42434314d65cdc29402c7adcb08c2fa5113f7ca2.tar ActorViewer-42434314d65cdc29402c7adcb08c2fa5113f7ca2.tar.gz ActorViewer-42434314d65cdc29402c7adcb08c2fa5113f7ca2.zip |
Implement find dialog
This dialog consolidates options for searching through textual elements
in lists which simplifies the logic present in the MainWindow class.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index abf9acc..7b87880 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -9,6 +9,7 @@ #include "archive_parser.h" #include "types.h" #include "command_line.h" +#include "finddialog.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } @@ -24,6 +25,13 @@ public: void act_command_line(CommandLineParsedOptions &options, QCommandLineParser &parser); +public slots: + void select_list_item(QListWidgetItem* item); + void set_search_text(const QString &text); + +signals: + void search_text_changed(const QString &text); + private slots: void on_actionOpen_triggered(bool checked); void on_actionQuit_triggered(bool checked); @@ -39,6 +47,7 @@ private slots: void on_actionRandom_status_triggered(bool checked); void on_actionCopy_status_triggered(bool checked); + void on_textInputSearch_textEdited(const QString &text); void on_buttonSearch_clicked(); void on_menuView_aboutToHide(); @@ -54,6 +63,8 @@ private: void finish_listWidget_itemActivated(const QString& status_info); void finish_open_file(const Archive::InitError& parse_error); + FindDialog* find_dialog = nullptr; + QString open_file_filename; Ui::MainWindow *ui; |