From 7e4c7905c9e74d76de2e03413af0dc9e4cb84683 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 10 Jun 2023 18:53:35 -0400 Subject: Implement command line options Implementing a command line argument specifying the data export to open allows iterating faster as the file to open can be specified without navigating through a GUI. In the future, more command line options could be specified to specify the view filters for instance. --- src/mainwindow.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index 8bfa3b2..2d05e00 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -3,10 +3,10 @@ #include #include #include -#include #include "archive_parser.h" #include "types.h" +#include "command_line.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } @@ -20,6 +20,8 @@ public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); + void act_command_line(CommandLineParsedOptions &options, QCommandLineParser &parser); + private slots: void on_actionOpen_triggered(bool checked); void on_actionQuit_triggered(bool checked); @@ -44,6 +46,7 @@ private slots: private: void reset_view_filters(); void relist_statuses(); + void open_file(const QString &filename); Ui::MainWindow *ui; -- cgit v1.2.3-54-g00ecf