InfoBarViewOp Class Reference

#include <infobar.h>

Inheritance diagram for InfoBarViewOp:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 InfoBarViewOp ()
 Constructor for InfoBarViewOp operation. It is not undoable.
void Do (OpDescriptor *)
 Toggles the info bar.

Static Public Member Functions

static BOOL Init ()
 Declares op descriptor for toggling info bar..
static OpState GetState (String_256 *, OpDescriptor *)
 This item is always available, so long as a document is visible. It is ticked if the info bar is visible.

Detailed Description

Definition at line 150 of file infobar.h.


Constructor & Destructor Documentation

InfoBarViewOp::InfoBarViewOp  ) 
 

Constructor for InfoBarViewOp operation. It is not undoable.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/93

Definition at line 571 of file infobar.cpp.

00572 {
00573 }


Member Function Documentation

void InfoBarViewOp::Do OpDescriptor  )  [virtual]
 

Toggles the info bar.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/93

Reimplemented from Operation.

Definition at line 552 of file infobar.cpp.

00553 {
00554     // Tell the main window to toggle the info bar.
00555     CMainFrame::pInfoBar->Toggle();
00556 
00557     // This operation is now finished
00558     End();
00559 }

OpState InfoBarViewOp::GetState String_256 ,
OpDescriptor
[static]
 

This item is always available, so long as a document is visible. It is ticked if the info bar is visible.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/93

Definition at line 588 of file infobar.cpp.

00589 {
00590     // Tick the item if the info bar is visible
00591     OpState OpSt(CMainFrame::pInfoBar->IsOpen());
00592 
00593     return OpSt;
00594 }

BOOL InfoBarViewOp::Init void   )  [static]
 

Declares op descriptor for toggling info bar..

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/93
Returns:
TRUE if worked, FALSE if failed (out of memory)

Errors: Returns FALSE on failure. Scope: Static

Reimplemented from SimpleCCObject.

Definition at line 529 of file infobar.cpp.

00530 {
00531     return (RegisterOpDescriptor(
00532                                  0,
00533                                  _R(IDT_VIEWINFOBAR),
00534                                  CC_RUNTIME_CLASS(InfoBarViewOp),
00535                                  OPTOKEN_VIEWINFOBAR,
00536                                  GetState,
00537                                  0,     /* help ID */
00538                                  _R(IDBBL_VIEWINFOBAROP),
00539                                  0      /* bitmap ID */));
00540 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:55:28 2007 for Camelot by  doxygen 1.4.4