CustomizeBarDlg Class Reference

#include <tooldlg.h>

Inheritance diagram for CustomizeBarDlg:

DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CustomizeBarDlg ()
 CustomizeBarDlg constructor. Creates a non-undoable operation.
void Do (OpDescriptor *)
 Creates then opens the dialog in response to a request from the user.
BOOL Create ()
 CustomizeBarDlg create method.
virtual MsgResult Message (Msg *Message)
 Handles all the Toolbar dialog's messages.

Static Public Member Functions

static BOOL Init ()
 CustomizeBarDlg Init method.
static OpState GetState (String_256 *, OpDescriptor *)
 CustomizeBarDlg GetState method.

Static Public Attributes

static const INT32 IDD = _R(IDD_CUSTOMIZEBAR)
static const CDlgMode Mode = MODELESS

Private Member Functions

BOOL InitDialog ()
 Sets initial dialog values.
void ShowOpsList ()
 Sets initial dialog values.

Detailed Description

Definition at line 228 of file tooldlg.h.


Constructor & Destructor Documentation

CustomizeBarDlg::CustomizeBarDlg  ) 
 

CustomizeBarDlg constructor. Creates a non-undoable operation.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 1298 of file tooldlg.cpp.

01299   : DialogOp(CustomizeBarDlg::IDD, CustomizeBarDlg::Mode) 
01300 {
01301     // Empty.
01302 }


Member Function Documentation

BOOL CustomizeBarDlg::Create void   )  [virtual]
 

CustomizeBarDlg create method.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if successful, else FALSE

Errors: -

See also:
-

Reimplemented from DialogOp.

Definition at line 1432 of file tooldlg.cpp.

01433 {                            
01434     if (DialogOp::Create())
01435     { 
01436         // Set the initial control values 
01437         InitDialog();
01438 
01439         return TRUE; 
01440     }
01441     else
01442     {
01443         return FALSE; 
01444     }
01445 }

void CustomizeBarDlg::Do OpDescriptor pOpDesc  )  [virtual]
 

Creates then opens the dialog in response to a request from the user.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 1465 of file tooldlg.cpp.

01466 {
01467     if (Create())
01468     {
01469 //      pToolbarDlg = pDlg;
01470         Open();
01471     }
01472     else              // Could not create 
01473     {
01474         InformError();
01475         End();         // End the operation 
01476     }
01477 }

OpState CustomizeBarDlg::GetState String_256 ,
OpDescriptor
[static]
 

CustomizeBarDlg GetState method.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 1376 of file tooldlg.cpp.

01377 {    
01378     OpState OpSt;
01379     return(OpSt);
01380 }

BOOL CustomizeBarDlg::Init void   )  [static]
 

CustomizeBarDlg Init method.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 1400 of file tooldlg.cpp.

01401 {  
01402     return (RegisterOpDescriptor(
01403                                 0,
01404                                 _R(IDS_CUSTOMIZE_BAR_DLG),
01405                                 CC_RUNTIME_CLASS(CustomizeBarDlg),
01406                                 OPTOKEN_CUSTOMIZEBARDLG,
01407                                 CustomizeBarDlg::GetState,
01408                                 0,  /* help ID */
01409                                 0,  /* bubble help ID _R(IDBBL_LAYERDLG), */
01410                                 0   /* bitmap ID */));
01411 }

BOOL CustomizeBarDlg::InitDialog  )  [private]
 

Sets initial dialog values.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 1497 of file tooldlg.cpp.

01498 {
01499     ShowOpsList();
01500     return TRUE;
01501 }

MsgResult CustomizeBarDlg::Message Msg Message  )  [virtual]
 

Handles all the Toolbar dialog's messages.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from DialogOp.

Definition at line 1322 of file tooldlg.cpp.

01323 {
01324     if (IS_OUR_DIALOG_MSG(Message))
01325     {
01326         DialogMsg* Msg = (DialogMsg*)Message; 
01327         BOOL EndDialog = FALSE; 
01328 
01329         switch (Msg->DlgMsg)
01330         {
01331             case DIM_COMMIT:
01332             {
01333                 EndDialog = TRUE;
01334             }
01335             break;
01336 
01337             case DIM_CANCEL:
01338                 // Cancel all changes the user wants to make to toolbars...
01339                 EndDialog = TRUE;
01340             break;
01341 
01342 //          default:
01343         }
01344 
01345         if (EndDialog)  // Dialog communication over 
01346         {
01347             Close(); // Close the dialog 
01348             End();  // Destroy dialog 
01349         }
01350 //      return (DLG_EAT_IF_HUNGRY(Msg)); 
01351     }
01352 //  return OK;
01353 
01354     // Pass all messages on to the base class for final handling . . .
01355     return DialogOp::Message(Message);
01356 }

void CustomizeBarDlg::ShowOpsList  )  [private]
 

Sets initial dialog values.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/04/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 1521 of file tooldlg.cpp.

01522 {
01523     OpListItem* pOpListItem = OpDescriptor::GetFirstDescriptor();
01524     OpDescriptor* pCurrentOpDesc;
01525 
01526     ENSURE(pOpListItem,"Wot, no OpDescriptors?");
01527 
01528     while (pOpListItem)
01529     {
01530         pCurrentOpDesc = pOpListItem->pOpDesc;
01531         ENSURE(pCurrentOpDesc,"OpListitem doesn't point to OpDescriptor in ShowOpsList");
01532 
01533         SetStringGadgetValue(_R(IDC_OPSLIST),&(pCurrentOpDesc->Token),TRUE,0);
01534 
01535         pOpListItem = OpDescriptor::GetNextDescriptor(pOpListItem);
01536     }
01537 
01538 }


Member Data Documentation

const INT32 CustomizeBarDlg::IDD = _R(IDD_CUSTOMIZEBAR) [static]
 

Definition at line 244 of file tooldlg.h.

const CDlgMode CustomizeBarDlg::Mode = MODELESS [static]
 

Definition at line 245 of file tooldlg.h.


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