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

Go to the SVN repository for this file.

1 #ifndef GUI_UTILS___COMMAND__HPP
2 #define GUI_UTILS___COMMAND__HPP
3 
4 /* $Id: command.hpp 43842 2019-09-09 21:57:24Z evgeniev $
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: Andrey Yazhuk
30  *
31  */
32 
33 /** @addtogroup GUI_UTILS
34 *
35 * @{
36 */
37 
38 /// @file command.hpp
39 /// GUI command routing and handling framework.
40 ///
41 /// The following are parts of the framework:
42 /// CCommandTarget class - represents a class capable of handling commands
43 /// using command maps.
44 /// Command map - structure mapping command IDs to handler funtion pointers.
45 /// IMenu - interface for CCommandTraget compatible menus.
46 
47 #include <corelib/ncbistl.hpp>
48 #include <corelib/ncbistd.hpp>
49 
50 #include <gui/gui.hpp>
51 
53 
54 
56 
57 /// Definitions for generic commands.
58 ///
59 /// Subsytems of GUI should define they own command enumerations, preferable
60 /// with non-overlapping ranges.
61 
63  eCmdMenuEnd = -2, /// marks menu end in array initializers
64  eCmdInvalid = -1, /// not a valid command
65  eCmdNone = 0, /// empty command
66 
67  /// zoom events
73  eCmdZoomSel, /// Zoom to Selection
74  eCmdZoomSeq, /// Zoom to Sequence
84 
85  eCmdSettings, // widget/view settings
87 
88  // Web help commands
96 
98 
99  /// Navigation commands
102 
103  /// goto sequence position
105 
109 
110  // insert new command here
112 };
113 
114 /// Commands needed to mange sticky tool tip windows
117  eCmdParentMove, /// tool tip window parent moves
118  eCmdSuspend, /// tool tip parent window about to dock
119  eCmdReCreate, /// tool tip parent window finished docking
120  eCmdDockMainWindow, /// tool tip cmd indicating a main-window docking update
121  eCmdParentActivate, /// tool tip parent window activated
122  eCmdParentShow, /// tool tip parent window shown
123  eCmdParentHide, /// tool tip parent window hidden
124  eCmdPinTip, /// tool tip pinned or unpinned
125  eCmdSearchTip, /// search (scroll) window to tip element
126  eCmdZoomTip, /// zoom into tip element
127  eCmdInfoTip, /// tip info button
128  eCmdClickTip, /// User clicked somewhere on a tip
129  eCmdReleaseTip, /// Left mouse (or equiv) up inside tip area
130  eCmdMoveTip, /// User is interactively moving a tool tip
131  eCmdTipActive, /// Mouse entered a tip (highlight matching glyph)
132  eCmdTipInactive, /// Mouse left a tip (remove glyph highlight)
133  eCmdCopyTipText, /// User selected option to copy (all) tip text
134  eCmdSelectTipText, /// User selected option to make text selectable
135  eCmdCopySelectedTipText, /// Copy currently selected tip text to clipboard
136  eCmdTipAdded, /// Event fired when a new tip added
137  eCmdTipRemoved, /// Event fired when an existing tip is removed
139 };
140 
141 
143 
144 /* @} */
145 
146 #endif // GUI_UTILS___COMMAND__HPP
Include a standard set of the NCBI C++ Toolkit most basic headers.
EStickyToolTipCommands
Commands needed to mange sticky tool tip windows.
Definition: command.hpp:115
EBaseCommands
Definitions for generic commands.
Definition: command.hpp:62
@ eCmdParentHide
tool tip parent window shown
Definition: command.hpp:123
@ eCmdReleaseTip
User clicked somewhere on a tip.
Definition: command.hpp:129
@ eCmdCopySelectedTipText
User selected option to make text selectable.
Definition: command.hpp:135
@ eCmdParentMove
Definition: command.hpp:117
@ eCmdFirstStickyToolTipCmd
Definition: command.hpp:116
@ eCmdMoveTip
Left mouse (or equiv) up inside tip area.
Definition: command.hpp:130
@ eCmdParentActivate
tool tip cmd indicating a main-window docking update
Definition: command.hpp:121
@ eCmdCopyTipText
Mouse left a tip (remove glyph highlight)
Definition: command.hpp:133
@ eCmdZoomTip
search (scroll) window to tip element
Definition: command.hpp:126
@ eCmdLastStickyToolTipCmd
Event fired when an existing tip is removed.
Definition: command.hpp:138
@ eCmdSelectTipText
User selected option to copy (all) tip text.
Definition: command.hpp:134
@ eCmdReCreate
tool tip parent window about to dock
Definition: command.hpp:119
@ eCmdTipRemoved
Event fired when a new tip added.
Definition: command.hpp:137
@ eCmdClickTip
tip info button
Definition: command.hpp:128
@ eCmdSuspend
tool tip window parent moves
Definition: command.hpp:118
@ eCmdSearchTip
tool tip pinned or unpinned
Definition: command.hpp:125
@ eCmdParentShow
tool tip parent window activated
Definition: command.hpp:122
@ eCmdTipActive
User is interactively moving a tool tip.
Definition: command.hpp:131
@ eCmdTipAdded
Copy currently selected tip text to clipboard.
Definition: command.hpp:136
@ eCmdInfoTip
zoom into tip element
Definition: command.hpp:127
@ eCmdDockMainWindow
tool tip parent window finished docking
Definition: command.hpp:120
@ eCmdTipInactive
Mouse entered a tip (highlight matching glyph)
Definition: command.hpp:132
@ eCmdPinTip
tool tip parent window hidden
Definition: command.hpp:124
@ eCmdZoomOutX
Definition: command.hpp:78
@ eCmdConfigureTracks
Definition: command.hpp:86
@ eCmdZoomAllX
Definition: command.hpp:79
@ eBaseCmdLast
Definition: command.hpp:111
@ eCmdZoomInMouse
Definition: command.hpp:71
@ eCmdSettings
Definition: command.hpp:85
@ eCmdForward
Definition: command.hpp:101
@ eCmdResetSelection
Definition: command.hpp:97
@ eCmdZoomOutMouse
Definition: command.hpp:72
@ eCmdMenuEnd
Definition: command.hpp:63
@ eCmdHelpStart
Definition: command.hpp:89
@ eCmdSubmissionsWebHelp
Definition: command.hpp:91
@ eCmdInvalid
marks menu end in array initializers
Definition: command.hpp:64
@ eCmdNone
not a valid command
Definition: command.hpp:65
@ eCmdZoomOutY
Definition: command.hpp:81
@ eCmdSaveSvg
Definition: command.hpp:108
@ eCmdZoomInX
Definition: command.hpp:77
@ eCmdSaveImages
Definition: command.hpp:106
@ eCmdWebHelpGSVLegends
Definition: command.hpp:94
@ eCmdZoomIn
empty command
Definition: command.hpp:68
@ eCmdWebHelpApp
Definition: command.hpp:90
@ eCmdSavePdf
Definition: command.hpp:107
@ eCmdSeqGoto
goto sequence position
Definition: command.hpp:104
@ eCmdZoomAllY
Definition: command.hpp:82
@ eCmdZoomSelObjects
Definition: command.hpp:76
@ eCmdZoomOut
Definition: command.hpp:69
@ eCmdSetEqualScale
Definition: command.hpp:83
@ eCmdZoomSeq
Zoom to Selection.
Definition: command.hpp:74
@ eCmdZoomInY
Definition: command.hpp:80
@ eCmdWebHelpGSVInteractionGuide
Definition: command.hpp:93
@ eCmdZoomAll
Definition: command.hpp:70
@ eCmdBack
Navigation commands.
Definition: command.hpp:100
@ eCmdZoomObjects
Zoom to Sequence.
Definition: command.hpp:75
@ eCmdWebHelpGSVNavigation
Definition: command.hpp:92
@ eCmdHelpEnd
Definition: command.hpp:95
@ eCmdZoomSel
Definition: command.hpp:73
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
The NCBI C++/STL use hints.
Modified on Tue Jul 16 13:17:16 2024 by modify_doxy.py rev. 669887