-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.h
47 lines (39 loc) · 1.16 KB
/
MainWindow.h
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
#pragma once
#include <QMainWindow>
#include <QItemSelection>
class VP3Viewer;
class QSplitter;
class QListView;
class QStandardItemModel;
class MainWindow : public QMainWindow
{
Q_OBJECT;
public:
MainWindow();
std::string libraryFolder = "C:\\EmbroideryLibrary\\";
std::string usbFolder = "D:\\";
private slots:
void pcListViewSelectionChanged(QItemSelection);
void usbListViewSelectionChanged(QItemSelection);
void actionCopyToUSBTriggered();
void actionCopyToPCTriggered();
void actionDeleteTriggered();
void actionImportTriggered();
void actionOptionsTriggered();
private:
void setupUi();
void copySelection(QListView* srcListView, QStandardItemModel* destModel, std::string destFolder);
std::string showOpenFileDialog();
QSplitter* horzSplitter = nullptr;
QSplitter* vertSplitter = nullptr;
QListView* pcListView = nullptr;
QListView* usbListView = nullptr;
VP3Viewer* viewer = nullptr;
QStandardItemModel* pcItemModel = nullptr;
QStandardItemModel* usbItemModel = nullptr;
QAction* actionCopyToUSB = nullptr;
QAction* actionCopyToPC = nullptr;
QAction* actionDelete = nullptr;
QAction* actionImport = nullptr;
QAction* actionOptions = nullptr;
};