mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mdialog.h
1 /*
2  * \file mmainwnd.h
3  * \author dongjunjie
4  * \date 2009/01/01
5  *
6  * This file include the dialog defines
7  *
8  \verbatim
9 
10  This file is part of mGNCS, a component for MiniGUI.
11 
12  Copyright (C) 2008~2018, Beijing FMSoft Technologies Co., Ltd.
13 
14  This program is free software: you can redistribute it and/or modify
15  it under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  GNU General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with this program. If not, see <http://www.gnu.org/licenses/>.
26 
27  Or,
28 
29  As this program is a library, any link to this program must follow
30  GNU General Public License version 3 (GPLv3). If you cannot accept
31  GPLv3, you need to be licensed from FMSoft.
32 
33  If you have got a commercial license of this program, please use it
34  under the terms and conditions of the commercial license.
35 
36  For more information about the commercial license, please refer to
37  <http://www.minigui.com/en/about/licensing-policy/>.
38 
39  \endverbatim
40  */
41 
42 #ifdef _MGNCSCTRL_DIALOGBOX
43 
44 #ifndef _MGUI_CTRL_DLGBOX_H
45 #define _MGUI_CTRL_DLGBOX_H
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
60 #define NCSCTRL_DIALOGBOX NCSCLASSNAME("dialogbox")
61 
62 typedef struct _mDialogBox mDialogBox;
63 typedef struct _mDialogBoxClass mDialogBoxClass;
64 typedef struct _mDialogBoxRenderer mDialogBoxRenderer;
65 
66 /* define mDialogBoxRenderer */
67 #define mDialogBoxRendererHeader(clsName, parentClass) \
68  mMainWndRendererHeader(clsName, parentClass)
69 
77 struct _mDialogBoxRenderer {
78  mDialogBoxRendererHeader(mDialogBox, mMainWnd)
79 };
80 
81 /* define mDialogBox */
82 #define mDialogBoxHeader(className) \
83  mMainWndHeader(className)
84 
94 struct _mDialogBox{
95  mDialogBoxHeader(mDialogBox)
96 };
97 
98 /* define mDialogBoxClass */
99 #define mDialogBoxClassHeader(clsName, parentClass) \
100  mMainWndClassHeader(clsName, parentClass)
101 
110 struct _mDialogBoxClass
111 {
112  mDialogBoxClassHeader(mDialogBox, mMainWnd)
113 };
114 
119 MGNCS_EXPORT extern mDialogBoxClass g_stmDialogBoxCls; //Class(mDialogBox);
120 
121 
122 #define NCSS_DLGBOX_SHIFT NCSS_MNWND_SHIFT
123 
124 enum enumDialogBoxNotify {
125  NCSN_DLGBOX_MAX = NCSN_MNWND_MAX + 1
126 };
127 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
135 #endif
define the memders of mMainWnd, inherit from mPanel