-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPredictMainWindow.h
More file actions
65 lines (60 loc) · 1.39 KB
/
PredictMainWindow.h
File metadata and controls
65 lines (60 loc) · 1.39 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
/*
Time : 2016/06/13
Author: Kay Yang (1025115216@qq.com)
*/
#ifndef CONSOLE
#ifndef _QtPredictMainWindow_H
#define _QtPredictMainWindow_H
#include "PredictTypeDefines.h"
#include "PredictServerImpl.h"
#include <QtWidgets/QApplication>
#include <QMainWindow>
#include <QWidget>
#include "ui_mainwindow.h"
class QtProperty;
class PredictMainWindow : public QMainWindow
{
Q_OBJECT
public:
PredictMainWindow(QWidget *parent = 0);
~PredictMainWindow();
// close it, maybe want save the config information. confirm it ?
void Close();
void StartServer();
void StopServer();
void PrintText(const DataStructures::HexString& message);
protected:
void closeEvent(QCloseEvent *event);
public slots:
void onCheckNow(bool state);
void onCalculateAll();
void onNotice();
void onPreference();
void onOpen();
void onDuplicate();
void onAbout();
void onDocument();
void printText(const QString& text);
void onClearText();
// file
void onDoubleClicked(const QModelIndex& index);
void onFileViewMenuReq(const QPoint & pos);
void onFileViewPress(const QModelIndex &index);
private:
void InitializeDir();
void BindSignalAndSlot();
void StoreCurrentFile(const QModelIndex &index);
public:
QApplication* mApp;
DataStructures::HexString mIP;
__u16 mPort;
private:
#ifdef WIN32
void GetLocalIPs(DataStructures::HexString& mIP);
#endif
Ui::MainWindow *ui;
PredictServerImpl* mServer;
bool mConnect;
};
#endif
#endif