GRE::TOOL Class Reference
Base class for tools attached to view.
More...
#include <gre/viewlegacy.h>
List of all members.
Detailed Description
Base class for tools attached to view.
Member Enumeration Documentation
- Enumerator:
| STATE_NotInitialized |
|
| STATE_Inactive |
|
| STATE_Active |
|
| STATE_NoLayers |
|
| STATE_Suspended |
|
Constructor & Destructor Documentation
Standard constructor.
- Parameters:
-
| view | View to associate tool with |
| toolname | Tool name string, cannot be NULL |
Constructor with interface component IDs.
- Parameters:
-
| view | View to associate tool with |
| icidmenu | Interface component ID for menu customization |
| icidicon | Interface component ID for ToolBar customization |
| toolname | Tool name string, cannot be NULL |
| virtual GRE::TOOL::~TOOL |
( |
|
) |
[virtual] |
Member Function Documentation
| void GRE::TOOL::Activate |
( |
|
) |
|
| void GRE::TOOL::Deactivate |
( |
|
) |
|
| virtual bool GRE::TOOL::DoActivate |
( |
|
) |
[private, pure virtual] |
| virtual void GRE::TOOL::DoDeactivate |
( |
|
) |
[private, pure virtual] |
| virtual bool GRE::TOOL::DoInitialize |
( |
|
) |
[private, virtual] |
| virtual void GRE::TOOL::DoResume |
( |
|
) |
[private, virtual] |
| virtual void GRE::TOOL::DoSuspend |
( |
|
) |
[private, virtual] |
| const char* GRE::TOOL::GetHelpCode |
( |
|
) |
const [inline] |
Get "help code" associated with tool.
| const char* GRE::TOOL::GetIconGroup |
( |
|
) |
const [inline] |
Get "icon group" for tool.
| const char* GRE::TOOL::GetIconName |
( |
|
) |
const [inline] |
Get "icon name" for tool.
| Widget GRE::TOOL::GetMenuWidget |
( |
|
) |
const [inline] |
Get widget for item on view's "Tool" menu.
| const char* GRE::TOOL::GetName |
( |
|
) |
const [inline] |
| TOOLSTATE GRE::TOOL::GetState |
( |
|
) |
const [inline, protected] |
| Widget GRE::TOOL::GetToolbarWidget |
( |
|
) |
const [inline] |
Get widget for button on view's toolbar.
Get view this tool is attached to.
| bool GRE::TOOL::IsDisabled |
( |
|
) |
const [inline] |
Determine if tool is currently disabled.
| virtual bool GRE::TOOL::IsScript |
( |
|
) |
const [virtual] |
Determine if tool is implemented via script.
This should only be overridden by the script tool.
Reimplemented in GRE::TOOL_SML.
| void GRE::TOOL::Resume |
( |
|
) |
|
Resume tool (after screen update).
| void GRE::TOOL::SetName |
( |
const MISTRING & |
name |
) |
[inline, protected] |
| void GRE::TOOL::SetSensitive |
( |
bool |
sensitive = true |
) |
|
Set sensitivity of tool menu item and button.
| void GRE::TOOL::SetupButtonItem |
( |
BUTTONITEM & |
item |
) |
|
| void GRE::TOOL::SetupMenuItem |
( |
MENUITEM & |
item |
) |
|
Setup MENUITEM to use on menu to activate tool.
| bool GRE::TOOL::Suspend |
( |
|
) |
|
Suspend tool (during screen update).
- Returns:
- true if suspended, false if was already suspended
Member Data Documentation
View tool is contained in.
The documentation for this class was generated from the following file: