NCBI C++ ToolKit
types.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI___TYPES__HPP
2 #define GUI___TYPES__HPP
3 
4 /* $Id: types.hpp 15475 2007-12-06 00:01:59Z yazhuk $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Denis Vakatov
30  *
31  * File Description:
32  * NCBI GUI types
33  *
34  */
35 
36 #include <corelib/ncbistd.hpp>
37 #include <util/range.hpp>
38 
39 
41 
42 
43 /// enumerated type for dialog boxes
45 {
47  eDialog_Ok = 0x0001,
48  eDialog_OkCancel = 0x0002,
49  eDialog_YesNo = 0x0003,
51 
52  // flags that can modify the styles
53  eDialog_Modal = 0x0100,
54  eDialog_Centered = 0x0200,
56 };
57 typedef unsigned int TDialogType;
58 
59 
60 /// enumerated type for dialog icon
62 {
67 };
68 
69 /// enumerated return values for dialog boxes, starting from 1 to undermine
70 /// attempts to cast it "bool"
72  eCancel = 1,
73  eNo,
74  eOK,
75  eYes
76 };
77 
78 
79 /// enumerated return values for dialog boxes
82  eWrap
83 };
84 
85 // TODO drop this enumeration, use a class derived from CObserverUpdate instead
86 // we disregard most of these flags anyway
87 
88 /// Enumerated values for update states.
89 /// These are used by the framework to communicate between projects and views.
90 //
92  // Used to indicate internally in a view or among sibling views that the
93  // components selected by a view have changed.
95 
96  // Used to indicate to a set of views bound to a project that the data
97  // represented by the project has changed. This can be used to segregate
98  // potentially expensive operations our from other events.
99  fProjectChanged = 0x0002,
100 
101  // Used to indicate to all projects and views that a project has been
102  // destroyed. For this event, projects and views could verify that all
103  // selections refer to active projects.
105 
106  // Used to indicate to all projects and views that a new project has been
107  // created.
108  fProjectCreated = 0x0008,
109 
110  // Used to indicated among a set of sibling views that a view has changed
111  // its view focus.
112  fViewChanged = 0x0010,
113 
114  // Used to communicate that a view has been deleted
115  fViewReleased = 0x0020,
116 
117  // Used to indicate that a new view exists.
118  fViewCreated = 0x0040,
119 
120  // Used to communicate that a viewer has been deleted
121  fViewerReleased = 0x0080,
122 
123  // Used to indicate that a new viewer exists.
124  fViewerCreated = 0x0040,
125 
126  // Used to indicate that a view's visible range has changed
128 
129  // Used to notify CDocMgrView that it is attached to CDocManager
130  fAttached = 0x0200,
131 
132  // Used to notify CDocMgrView that it is detached to CDocManager
133  fDetached = 0x0400,
134 
135  // Binary mask for all events
136  fAllEvents = 0xffffffff
137 };
138 typedef unsigned int TUpdateFlags; // bitwise OR of "EUpdateFlags"
139 
140 
141 
143 
144 #endif /* GUI___TYPES__HPP */
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
EDialogIcon
enumerated type for dialog icon
Definition: types.hpp:62
@ eIcon_Info
Definition: types.hpp:63
@ eIcon_Exclamation
Definition: types.hpp:65
@ eIcon_Stop
Definition: types.hpp:66
@ eIcon_Question
Definition: types.hpp:64
EUpdateFlags
Enumerated values for update states.
Definition: types.hpp:91
@ fAllEvents
Definition: types.hpp:136
@ fViewerCreated
Definition: types.hpp:124
@ fVisibleRangeChanged
Definition: types.hpp:127
@ fDetached
Definition: types.hpp:133
@ fViewCreated
Definition: types.hpp:118
@ fViewChanged
Definition: types.hpp:112
@ fViewerReleased
Definition: types.hpp:121
@ fSelectionChanged
Definition: types.hpp:94
@ fProjectChanged
Definition: types.hpp:99
@ fProjectReleased
Definition: types.hpp:104
@ fProjectCreated
Definition: types.hpp:108
@ fAttached
Definition: types.hpp:130
@ fViewReleased
Definition: types.hpp:115
unsigned int TDialogType
Definition: types.hpp:57
EDialogTextMode
enumerated return values for dialog boxes
Definition: types.hpp:80
@ eRaw
Definition: types.hpp:81
@ eWrap
Definition: types.hpp:82
EDialogReturnValue
enumerated return values for dialog boxes, starting from 1 to undermine attempts to cast it "bool"
Definition: types.hpp:71
@ eCancel
Definition: types.hpp:72
@ eOK
Definition: types.hpp:74
@ eNo
Definition: types.hpp:73
@ eYes
Definition: types.hpp:75
unsigned int TUpdateFlags
Definition: types.hpp:138
EDialogType
enumerated type for dialog boxes
Definition: types.hpp:45
@ eDialog_Ok
Definition: types.hpp:47
@ eDialog_OkCancel
Definition: types.hpp:48
@ eDialog_StyleMask
Definition: types.hpp:46
@ eDialog_YesNoCancel
Definition: types.hpp:50
@ eDialog_Modal
Definition: types.hpp:53
@ eDialog_YesNo
Definition: types.hpp:49
@ eDialog_Centered
Definition: types.hpp:54
@ eDialog_CenteredAtMouse
Definition: types.hpp:55
Modified on Sat May 04 13:11:44 2024 by modify_doxy.py rev. 669887