NCBI C++ ToolKit
Classes | Macros
ui_command.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <unordered_map>
#include <gui/gui_export.h>
#include <gui/utils/ui_object.hpp>
#include <gui/utils/command.hpp>
#include <gui/widgets/wx/fixed_base.hpp>
#include <wx/menuitem.h>
#include <wx/event.h>
#include <wx/menu.h>
+ Include dependency graph for ui_command.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CUICommand
 CUICommand. More...
 
struct  SwxCommandRec
 
class  CUICommandRegistry
 CUICommandRegistry is a centralized registry where all application commands should be registered. More...
 
struct  SwxMenuItemRec
 
class  IUICommandContributor
 IUICommandContributor - contributes commands to the common command space. More...
 
class  IMenuContributor
 IMenuContributor - contributes menu to Menu Service. More...
 
class  IToolBarContributor
 IToolBarContributor - a factory that produces toolbars. More...
 

Macros

#define WX_DEFINE_MENU(name)
 New macros for defining menus for use with CUICommandRegistry. More...
 
#define WX_MENU_ITEM(cmd)    { SwxMenuItemRec::eDefaultItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_MENU_NORMAL_ITEM(cmd)    { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_MENU_CHECK_ITEM(cmd)    { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_MENU_RADIO_ITEM(cmd)    { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_MENU_SEPARATOR()    { SwxMenuItemRec::eSeparator, "", eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_MENU_SEPARATOR_L(label)    { SwxMenuItemRec::eSeparator, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_SUBMENU(label)    { SwxMenuItemRec::eSubmenu, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_END_SUBMENU()    { SwxMenuItemRec::eSubmenu, "", eCmdInvalid, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },
 
#define WX_END_MENU()
 
#define WX_SUBMENU_INT(label)    { SwxMenuItemRec::eSubmenu, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_MENU_ITEM_INT(cmd)    { SwxMenuItemRec::eDefaultItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_MENU_NORMAL_ITEM_INT(cmd)    { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem. SwxMenuItemRec::eInternal },
 
#define WX_MENU_CHECK_ITEM_INT(cmd)    { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_MENU_RADIO_ITEM_INT(cmd)    { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_MENU_SEPARATOR_INT()    { SwxMenuItemRec::eSeparator, "", eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_MENU_SEPARATOR_L_INT(label)    { SwxMenuItemRec::eSeparator, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },
 
#define WX_SUBMENU_EXT(label)    { SwxMenuItemRec::eSubmenu, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 
#define WX_MENU_ITEM_EXT(cmd)    { SwxMenuItemRec::eDefaultItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 
#define WX_MENU_NORMAL_ITEM_EXT(cmd)    { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem. SwxMenuItemRec::eExternal },
 
#define WX_MENU_CHECK_ITEM_EXT(cmd)    { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 
#define WX_MENU_RADIO_ITEM_EXT(cmd)    { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 
#define WX_MENU_SEPARATOR_EXT()    { SwxMenuItemRec::eSeparator, "", eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 
#define WX_MENU_SEPARATOR_L_EXT(label)    { SwxMenuItemRec::eSeparator, label, eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },
 

Macro Definition Documentation

◆ WX_DEFINE_MENU

#define WX_DEFINE_MENU (   name)
Value:
const SwxMenuItemRec name[] = { \
WX_SUBMENU("Root")

New macros for defining menus for use with CUICommandRegistry.

Definition at line 266 of file ui_command.hpp.

◆ WX_END_MENU

#define WX_END_MENU ( )

◆ WX_END_SUBMENU

Definition at line 291 of file ui_command.hpp.

◆ WX_MENU_CHECK_ITEM

#define WX_MENU_CHECK_ITEM (   cmd)     { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },

Definition at line 276 of file ui_command.hpp.

◆ WX_MENU_CHECK_ITEM_EXT

#define WX_MENU_CHECK_ITEM_EXT (   cmd)     { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },

Definition at line 330 of file ui_command.hpp.

◆ WX_MENU_CHECK_ITEM_INT

#define WX_MENU_CHECK_ITEM_INT (   cmd)     { SwxMenuItemRec::eCheckItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },

Definition at line 308 of file ui_command.hpp.

◆ WX_MENU_ITEM

Definition at line 270 of file ui_command.hpp.

◆ WX_MENU_ITEM_EXT

Definition at line 324 of file ui_command.hpp.

◆ WX_MENU_ITEM_INT

Definition at line 302 of file ui_command.hpp.

◆ WX_MENU_NORMAL_ITEM

#define WX_MENU_NORMAL_ITEM (   cmd)     { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },

Definition at line 273 of file ui_command.hpp.

◆ WX_MENU_NORMAL_ITEM_EXT

#define WX_MENU_NORMAL_ITEM_EXT (   cmd)     { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem. SwxMenuItemRec::eExternal },

Definition at line 327 of file ui_command.hpp.

◆ WX_MENU_NORMAL_ITEM_INT

#define WX_MENU_NORMAL_ITEM_INT (   cmd)     { SwxMenuItemRec::eNormalItem, "", cmd, SwxMenuItemRec::eDefaultItem. SwxMenuItemRec::eInternal },

Definition at line 305 of file ui_command.hpp.

◆ WX_MENU_RADIO_ITEM

#define WX_MENU_RADIO_ITEM (   cmd)     { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eBoth },

Definition at line 279 of file ui_command.hpp.

◆ WX_MENU_RADIO_ITEM_EXT

#define WX_MENU_RADIO_ITEM_EXT (   cmd)     { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },

Definition at line 333 of file ui_command.hpp.

◆ WX_MENU_RADIO_ITEM_INT

#define WX_MENU_RADIO_ITEM_INT (   cmd)     { SwxMenuItemRec::eRadioItem, "", cmd, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },

Definition at line 311 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR

Definition at line 282 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR_EXT

#define WX_MENU_SEPARATOR_EXT ( )     { SwxMenuItemRec::eSeparator, "", eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eExternal },

Definition at line 336 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR_INT

#define WX_MENU_SEPARATOR_INT ( )     { SwxMenuItemRec::eSeparator, "", eCmdNone, SwxMenuItemRec::eDefaultItem, SwxMenuItemRec::eInternal },

Definition at line 314 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR_L

Definition at line 285 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR_L_EXT

Definition at line 339 of file ui_command.hpp.

◆ WX_MENU_SEPARATOR_L_INT

Definition at line 317 of file ui_command.hpp.

◆ WX_SUBMENU

Definition at line 288 of file ui_command.hpp.

◆ WX_SUBMENU_EXT

Definition at line 321 of file ui_command.hpp.

◆ WX_SUBMENU_INT

Definition at line 299 of file ui_command.hpp.

Modified on Fri Sep 20 14:58:22 2024 by modify_doxy.py rev. 669887