-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
76 lines (68 loc) · 2.14 KB
/
mainwindow.h
File metadata and controls
76 lines (68 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//-----------------------------------------------------------------------------------------------------------
// Emby Explorer (Qt) (w) 2024-2025 by Jan Buchholz
// UI - Main window
// last change: 20251128
//-----------------------------------------------------------------------------------------------------------
#pragma once
#include <QMainWindow>
#include <QComboBox>
#include <QLabel>
#include <QTableView>
#include <QCloseEvent>
#include "preferencesdialog.h"
#include "detailsdialog.h"
#include "dispatcher.h"
#include "splashdialog.h"
#include "export.h"
#include "messagedialog.h"
#include "aboutdialog.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
void saveSettings();
void loadSettings();
bool checkSettings();
void adjustTableView();
void initTableView(QString collectionType);
void displayDetails();
void showSplashScreen();
PreferencesDialog preferencesDialog;
SplashDialog splashDialog;
DetailsDialog detailsDialog;
embySettings embySettings;
QComboBox *cbxCollection;
QLabel *lblStatistics;
Dispatcher *dis;
Export *exp;
QVector<UserCollectionType> collections;
QVector<DetailsDataType> detailsBuffer;
bool detailsVisible;
void closeEvent(QCloseEvent *e);
void resizeEvent(QResizeEvent *e);
void centerDialog(QDialog& dlg);
QString const FILE_FILTER = tr("Excel Worksheet (*.xlsx)");
MessageDialog messageDialog;
AboutDialog aboutDialog;
QString const CAP_MOVIES_STATS = tr("Movies: %1");
QString const CAP_SERIES_STATS = tr("Series: %1, Episodes: %2");
QString const CAP_VIDEOS_STATS = tr("Videos: %1");
private slots:
void onActionQuit();
void onActionSettings();
void onActionAuthenticate();
void onActionFetch();
void onActionDetails();
void onActionExport();
void onActionAboutEmbyExplorer();
void onCollectionChanged(int);
void onItemSelectionChanged();
};