-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
46 lines (35 loc) · 882 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "d_format.hpp"
#include "tcpserver.h"
#include <QTreeWidgetItem>
#include <set>
#include "stateholder.h"
namespace Ui {
class MainWindow;
}
class RefsView : public QMainWindow
{
Q_OBJECT
public:
explicit RefsView(QWidget *parent = 0);
~RefsView();
public slots:
void resizeCols();
void onframeChanged(std::shared_ptr<Frame> renderFrame, int totalCount);
signals:
void onFileOpen(const QString &file);
private slots:
void on_actionOptions_triggered();
void itemExpanded(QTreeWidgetItem *item);
void itemCollapsed(QTreeWidgetItem *item);
void on_actionOpen_triggered();
private:
void addObjToTree(const Obj &obj);
Ui::MainWindow *ui;
TcpServer tcpServer;
StateHolder stateHolder;
std::set<QString> expandedItems;
};
#endif // MAINWINDOW_H