aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorConfuSomu2023-06-10 18:53:35 -0400
committerConfuSomu2023-06-10 18:59:30 -0400
commit7e4c7905c9e74d76de2e03413af0dc9e4cb84683 (patch)
treeca0de8ab135ecc9af006664b5f505c0e2415de5a /src/mainwindow.h
parentd3d14e07c202f9350f817802777720ded85e4248 (diff)
downloadActorViewer-7e4c7905c9e74d76de2e03413af0dc9e4cb84683.tar
ActorViewer-7e4c7905c9e74d76de2e03413af0dc9e4cb84683.tar.gz
ActorViewer-7e4c7905c9e74d76de2e03413af0dc9e4cb84683.zip
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.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h5
1 files changed, 4 insertions, 1 deletions
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 <QMainWindow>
#include <QListWidgetItem>
#include <QLocale>
-#include <qobjectdefs.h>
#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;