#include <dialogop.h>
Inheritance diagram for DialogTabOp:
Public Member Functions | |
DialogTabOp (CDlgResID DummyDialogResID, CDlgMode Mode, CCRuntimeClass *Class=CC_RUNTIME_CLASS(DialogOp), INT32 OpeningPage=-1) | |
The Constructor of the DialogTabOp class simply sets the resource ID of the dialog and its modality. | |
virtual BOOL | RegisterYourPagesInOrderPlease () |
This virtual function will get called to give you a chance to add pages to your DialogTabOp. This function will usually make multiple calls to AddAPage to register the initial set of pages to be contained in the tab dialog. The pages should all be the same size and be registered in the left to right order in which you wish them to appear. | |
BOOL | AddAPage (CDlgResID DialogResID, CGadgetID Gadget=0) |
This function adds a dialog page to the tabbed dialog. | |
void | SetName (String_256 *Name) |
This function should be called BEFORE calling create. It sets the title bar name of the dialog. | |
BOOL | TalkToPage (CDlgResID PageID) |
Set's the Page that you wish to communicate with. Initially this page is set to NULL which means that all communication will be directed at the tabbed dialog itself. After this call all subsequent Get and Set functions will be directed at the specified page within the dialog. | |
String_256 * | GetName (void) |
Returns the name of the dialog. | |
virtual MsgResult | Message (Msg *Message) |
virtual void | BrushEditDlgOnOK () |
void | SetPropertyPageModified (BOOL Modified) |
Sets the modified property of the currently active property page of the current tabbed dialog (if it exists). | |
virtual BOOL | LoadFrameFromResources () |
virtual BOOL | HasImages () |
virtual TabType | GetTabType () |
virtual CGadgetID | GetDefaultBookGadget () |
~DialogTabOp () | |
The DialogTabOp destructor destroys the instance of the DialogTabOp and all associated resources. If the dialog was open then it is closed. | |
DialogTabOp () | |
Private Attributes | |
String_256 | MyName |
Definition at line 567 of file dialogop.h.
|
The Constructor of the DialogTabOp class simply sets the resource ID of the dialog and its modality.
Definition at line 3110 of file dialogop.cpp. 03113 :DialogOp(DummyDialogResID, Mode, 0, /*NULL, NULL,*/ 03114 Class, OpeningPage) 03115 { 03116 // The base class does most of the work as you can see 03117 };
|
|
The DialogTabOp destructor destroys the instance of the DialogTabOp and all associated resources. If the dialog was open then it is closed.
Definition at line 3272 of file dialogop.cpp. 03273 { 03274 // We must do this before we become a DialogOp (due changes to vtable as 03275 // destructors are called) 03276 if (WindowID != NULL) 03277 { 03278 DlgMgr->Delete(WindowID, this); 03279 WindowID = NULL; 03280 } 03281 03282 // Let's get the base class destructor to do all the work shall we 03283 03284 };
|
|
Definition at line 3355 of file dialogop.cpp.
|
|
This function adds a dialog page to the tabbed dialog.
This function can be called many times before the dialog is made visible. For a modal dialog this function should be called in response to a dialog DIM_CREATE message. To keep things simple all Dialog pages should be the same size please.
Definition at line 3150 of file dialogop.cpp. 03151 { 03152 // Ask the Dialog Manager to add the page 03153 return (DlgMgr->AddAPage(this, DialogResID, Gadget)); 03154 };
|
|
Definition at line 599 of file dialogop.h.
|
|
Definition at line 611 of file dialogop.h. 00611 {return (CGadgetID)0;}
|
|
Returns the name of the dialog.
Definition at line 3226 of file dialogop.cpp. 03227 { 03228 return &MyName; 03229 }
|
|
Reimplemented in AppPrefsDlg, and PrintPrefsDlg. Definition at line 610 of file dialogop.h. 00610 {return TABTYPE_TABS;}
|
|
Reimplemented in AppPrefsDlg, and PrintPrefsDlg. Definition at line 608 of file dialogop.h. 00608 {return FALSE;}
|
|
Definition at line 605 of file dialogop.h. 00605 {return FALSE;}
|
|
if (IS_OUR_DIALOG_MSG(Message)) { DialogMsg* Msg = (DialogMsg*)Message; Handle Msg here } Pass message on to base class for rest of handling. return <BaseClass>Message(Message); This Pure virtual function will ENSURE
Reimplemented from DialogOp. Reimplemented in AppPrefsDlg, GIFAnimationPropertyTabsDlg, AnimExOptns, BfxDlg, BlobbyTabDlg, BmapPrevDlg, CBrushEditDlg, LayerPropertyTabsDlg, and PrintPrefsDlg. Definition at line 3334 of file dialogop.cpp. 03335 { 03336 if (IS_OUR_DIALOG_MSG(Message)) 03337 { 03338 DialogMsg* pDlgMsg = (DialogMsg*) Message; 03339 if (pDlgMsg->PageID == 0) 03340 { 03341 // It's a message from the Property sheet itself 03342 if (pDlgMsg->GadgetID == _R(ID_HELP)) 03343 { 03344 // Map to our standard help ID. This is no longer equal to _R(ID_HELP) 03345 pDlgMsg->GadgetID = _R(ID_CC_HELP_BUTTON); 03346 } 03347 } 03348 } 03349 return DialogOp::Message(Message); // Let the base class do the rest 03350 }
|
|
This virtual function will get called to give you a chance to add pages to your DialogTabOp. This function will usually make multiple calls to AddAPage to register the initial set of pages to be contained in the tab dialog. The pages should all be the same size and be registered in the left to right order in which you wish them to appear.
Reimplemented in AppPrefsDlg, GIFAnimationPropertyTabsDlg, BfxDlg, BlobbyTabDlg, BmapPrevDlg, CBrushEditDlg, LayerPropertyTabsDlg, and PrintPrefsDlg. Definition at line 3182 of file dialogop.cpp.
|
|
This function should be called BEFORE calling create. It sets the title bar name of the dialog.
Definition at line 3204 of file dialogop.cpp. 03205 { 03206 MyName = *pName; 03207 return; // done 03208 }
|
|
Sets the modified property of the currently active property page of the current tabbed dialog (if it exists).
Definition at line 3247 of file dialogop.cpp. 03248 { 03249 if (DlgMgr != NULL) 03250 DlgMgr->SetPropertyPageModified(Modified); 03251 else 03252 ERROR3("Dialog Manager is NULL in DialogTabOp::SetPropertyPageModified"); 03253 }
|
|
Set's the Page that you wish to communicate with. Initially this page is set to NULL which means that all communication will be directed at the tabbed dialog itself. After this call all subsequent Get and Set functions will be directed at the specified page within the dialog.
TalkToPage(_R(IDD_PAGE1)); SetStringGadgetValue(_R(IDC_BUTTON1), &Wibble);
Definition at line 3316 of file dialogop.cpp. 03317 { 03318 ReadWritePage = PageID; 03319 03320 // Determine if the page we are trying to talk to exists 03321 return (GetReadWriteWindowID() != NULL); 03322 }
|
|
Definition at line 621 of file dialogop.h. |