-
Notifications
You must be signed in to change notification settings - Fork 0
/
appAddDlg.h
78 lines (63 loc) · 1.71 KB
/
appAddDlg.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
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
77
78
#ifndef APPADDDLG_H
#define APPADDDLG_H
#include <ZPopup.h>
#include <ZSoftKey.h>
#include <ZListBox.h>
#include <RES_ICON_Reader.h>
#include "source.h"
#include "myDef.h"
#include "UtilsDBOperation.h"
#include "ZTaskItem.h"
class appAddDlg : public ZPopup
{
Q_OBJECT
public:
enum appAddDlgType {
DT_addFavApp = 0, //添加快捷方式到favtab
DT_getAppInfo = 1, //显示一个程序列表,得到选中的程序信息,用于fmtab的打开方式功能
DT_showFavMenuList = 2, //显示fav或者mgx标签的菜单列表,用于管理菜单的信息
DT_showMgxMenuList,
};
appAddDlg(const QString &title = QString::null, appAddDlgType type = DT_addFavApp, bool isMult = false); //0 for app add in the fav tab
//1 for get app property(show a menu and choose the app item)
// 2 for manager menu in mgx
~appAddDlg();//{};
bool isCancel;
QString appDir;
QString appExec;
QString appGname;
QString appName;
public:
struct appObject
{
QString uid;
QString name;
QString type; //1 -> java, 0->native
QString path;
QString icon;
QString exec;
};
private:
void buildAppList();
void showAppList();
void creatPHApp();
void creatSDApp();
void creatMgxMenuList();
void creatSYSApp();
public slots:
void initList();
private slots:
void slotOK();
void slotCancel();
void obj_click(int index);
private :
int m_nIndex;
SettingItemRegion m_eRegion;
QString m_strItemType;
bool m_bIsMult;
appAddDlgType m_eDlgType;
QList<struct appObject> m_lsAppList;
ZListBox *m_zListBox;
ZTaskItem *m_zTaskItem;
};
#endif