MaxCustomControls::CommandSystem::CheckableCommand Class Reference


Detailed Description

This command is an abstract for those commands which have an internal state that can be checked.

Inheritance diagram for MaxCustomControls::CommandSystem::CheckableCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  CheckableCommand ()
  Constructor.

Protected Member Functions

void  UpdateCheckedState ()
  This function will be called if the checked state of this command internally changed.
abstract bool  IsChecked ()
  Get the internal check state.
void  RaiseCheckedChanged ()
  Raise the checked-changed event.

Properties

virtual bool  Checked [get, set]
  Get and set the checked state of the command.
override Explorer  Explorer [get, set]
  Override Base.Explorer to bind/unbind local event handler to external checked-changed event.

Events

EventHandler  CheckedChanged
  The event handler will be invoked whenever the internal check state changes.

Constructor & Destructor Documentation

MaxCustomControls::CommandSystem::CheckableCommand::CheckableCommand ( ) [inline]

Constructor.


Member Function Documentation

void MaxCustomControls::CommandSystem::CheckableCommand::UpdateCheckedState ( ) [inline, protected]

This function will be called if the checked state of this command internally changed.

This will notify corresponding UI items to update their appearance.

void MaxCustomControls::CommandSystem::CheckableCommand::RaiseCheckedChanged ( ) [inline, protected]

Raise the checked-changed event.

So UI items that interested in this command can update their appearance.


Property Documentation

virtual bool MaxCustomControls::CommandSystem::CheckableCommand::Checked [get, set]

Get and set the checked state of the command.

Implements MaxCustomControls::ICheckable.


Event Documentation

EventHandler MaxCustomControls::CommandSystem::CheckableCommand::CheckedChanged

The event handler will be invoked whenever the internal check state changes.

Implements MaxCustomControls::ICheckable.


MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand
MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand MaxCustomControls::CommandSystem::CheckableCommand