#include <infobar.h>
Inheritance diagram for InfoBarViewOp:
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. |
Definition at line 150 of file infobar.h.
|
Constructor for InfoBarViewOp operation. It is not undoable.
Definition at line 571 of file infobar.cpp.
|
|
Toggles the info bar.
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 }
|
|
This item is always available, so long as a document is visible. It is ticked if the info bar is visible.
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 }
|
|
Declares op descriptor for toggling info bar..
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 }
|