Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
AppMainMenuItem Class Reference

Public Types

enum  Type {
  TYPE_COMMAND_WITH_CALLBACK,
  TYPE_COMMAND_WITH_FILE,
  TYPE_COMMAND_WITH_SCRIPT,
  TYPE_MENU,
  TYPE_SEPARATOR,
  TYPE_NOT_DEFINE
}
 

Public Member Functions

 AppMainMenuItem (AppMainMenu &menu, const CoreString &menu_path)
 
virtual bool exec_command ()
 
virtual bool exec_command_show ()
 
virtual bool enable_command (const bool &state)
 
bool is_menu () const
 
bool is_separator () const
 
bool is_command () const
 
Type get_type () const
 
CoreString get_path () const
 
CoreString get_name () const
 
CoreString get_parent_menu_path () const
 
CoreString get_shortcut () const
 
CoreString get_description () const
 
void set_description (const CoreString &desc)
 
CoreString get_icon_path () const
 
CoreString get_icon_fullpath () const
 
CoreString get_action_file () const
 
CoreString get_action_file_fullpath () const
 
CoreVector< CoreStringget_action_files_show () const
 
CoreVector< CoreStringget_action_files_show_fullpath () const
 
bool is_enable () const
 
void set_icon (const CoreString &image_path)
 
void set_icon (const GuiImage *image_icon)
 
void set_icon (const OfClass *class_item)
 
const GuiImageget_icon () const
 
void set_radio_group (const CoreString &group_name)
 
CoreString get_radio_group () const
 
void set_checkable (const bool &value)
 
bool is_checkable () const
 
void set_checked (const bool &value)
 
bool is_checked () const
 
void set_custom_data (const CoreString &data)
 
CoreString get_custom_data () const
 
AppMainMenuItemget_item (const CoreString &menu_path, const bool &recursive=true)
 
CoreVector< CoreStringget_all_commands (const bool &recursive, const bool &show_menu_and_separator=true)
 
void remove_all_commands ()
 
bool remove_command (const CoreString &item_path)
 
bool remove_command (AppMainMenuItem *item)
 
void set_working_directory (const CoreString working_directory)
 
CoreString get_working_directory ()
 

Protected Member Functions

void init ()
 

Protected Attributes

AppMainMenum_menu
 
CoreString m_parent_menu_path
 
CoreString m_path
 
CoreString m_name
 
CoreString m_shortcut
 
CoreString m_description
 
CoreString m_custom_data
 
CoreString m_working_directory
 
AppMainMenu::MenuItemCallback m_callback
 
AppMainMenu::MenuItemCallback m_show_callback
 
CoreString m_action_file
 
CoreVector< CoreStringm_action_file_show
 
CoreString m_action_script
 
CoreString m_module_scripting
 
const GuiImagem_image_icon
 
const GuiIconm_icon
 
CoreString m_icon_path
 
CoreString m_radio_group
 
CoreVector< AppMainMenuItem * > m_items_menu
 
Type m_type
 
bool m_enable
 
bool m_checkable
 
bool m_checked
 

Friends

class AppMainMenu
 
class GuiAppMainMenu
 
class GuiAppMainMenuItem