DaveDlg Class Reference

#include <davedlg.h>

Inheritance diagram for DaveDlg:

DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 DaveDlg ()
 Default constructor.
 ~DaveDlg ()
BOOL DoCreate ()
 Starts up the Import from Internet dialog box.
void UpdateControls ()
void DoWithParam (OpDescriptor *, OpParam *Param)
 Creates then opens the dialog in response to a request from the user and allows values to be passed in and returned to the caller via the DaveDlgParam class.
void Do (OpDescriptor *)
 Creates then opens the dialog in response to a request from the user.
virtual MsgResult Message (Msg *Message)
 Handles all messages.

Static Public Member Functions

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

Static Public Attributes

static CDlgResID IDD = _R(IDD_DAVES_DLG)
static const CDlgMode Mode = MODELESS

Protected Member Functions

void OnCreate ()
 Handles a message that the dialog has just been created.
void OnCommit ()
 Handles a message that the "Import" button has been clicked.
void OnURLChanged ()
 Handles a message that the user has typed in the "URL" field.
void DoChangeInValue ()
 Changes the attribute value/s.
BOOL DoBevel ()
BOOL RemoveBevel ()

Static Protected Attributes

static WebAddress ms_url = WebAddress()
static BOOL DialogWasCancelled = FALSE
static BOOL DontHandleNextMessage = FALSE

Private Attributes

INT32 m_Angle
INT32 m_Type
INT32 m_Indent
INT32 m_Contrast
BOOL m_bFirst

Detailed Description

Definition at line 123 of file davedlg.h.


Constructor & Destructor Documentation

DaveDlg::DaveDlg  ) 
 

Default constructor.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 198 of file davedlg.cpp.

00198                 : DialogOp(DaveDlg::IDD, DaveDlg::Mode) 
00199 {
00200     m_Indent = 0;
00201     m_Contrast = 0;
00202     m_Angle = 0;
00203     m_Type = 0;
00204 }

DaveDlg::~DaveDlg  ) 
 

Definition at line 206 of file davedlg.cpp.

00207 {
00208 }


Member Function Documentation

void DaveDlg::Do OpDescriptor  )  [virtual]
 

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

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 408 of file davedlg.cpp.

00409 {
00410     
00411 }

BOOL DaveDlg::DoBevel  )  [protected]
 

Definition at line 455 of file davedlg.cpp.

00456 {
00457     return TRUE;
00458 }

void DaveDlg::DoChangeInValue  )  [protected]
 

Changes the attribute value/s.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/12/98
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 451 of file davedlg.cpp.

00452 {
00453 }

BOOL DaveDlg::DoCreate  ) 
 

Starts up the Import from Internet dialog box.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/6/97
Parameters:
- [INPUTS]
purlToReturn Pointer to a Web Address object [OUTPUTS]
Returns:
TRUE - Import was pressed FALSE - Cancel was pressed

Errors: -

See also:
-

Definition at line 176 of file davedlg.cpp.

00177 {
00178     return TRUE;
00179 }

void DaveDlg::DoWithParam OpDescriptor ,
OpParam Param
[virtual]
 

Creates then opens the dialog in response to a request from the user and allows values to be passed in and returned to the caller via the DaveDlgParam class.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 430 of file davedlg.cpp.

00431 {
00432     
00433 }

OpState DaveDlg::GetState String_256 ,
OpDescriptor
[static]
 

DaveDlg GetState method.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 349 of file davedlg.cpp.

00350 {    
00351     OpState OpSt;
00352     return(OpSt);
00353 }

BOOL DaveDlg::Init void   )  [static]
 

DaveDlg Init method.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 373 of file davedlg.cpp.

00374 {
00375     BOOL InitOK;
00376 
00377     InitOK = RegisterOpDescriptor(
00378                                 0,                  /* Tool ID */
00379                                 _R(IDS_DAVEDLG),
00380                                 CC_RUNTIME_CLASS(DaveDlg),
00381                                 OPTOKEN_DAVEDLG,
00382                                 GetState,
00383                                 _R(IDH_Command_Import_from_Web),    /* help ID */
00384                                 0,                  /* bubble help */
00385                                 0,                  /* resource ID */
00386                                 0                   /* control ID */
00387                                 );
00388 
00389     return (InitOK);
00390 }

MsgResult DaveDlg::Message Msg Message  )  [virtual]
 

Handles all messages.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-
This function simply maps the message to one of our message handling functions below.

Returns:
Errors: -
See also:
-

Reimplemented from DialogOp.

Definition at line 230 of file davedlg.cpp.

00231 {   
00232     return DialogOp::Message(Message); 
00233 }

void DaveDlg::OnCommit  )  [protected]
 

Handles a message that the "Import" button has been clicked.

void DaveDlg::OnCommit()

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
DaveDlg::Message()

Definition at line 287 of file davedlg.cpp.

00288 {   
00289     //Get the string from the edit field
00290     /*
00291     String_256 strUser=GetStringGadgetValue(_R(IDC_URLIMPORT_URL));
00292 
00293     //Now we want to correct this string. To do this we
00294     //need to set up some correction flags
00295     WebCorrectFlags wcfToUse;
00296     wcfToUse.SetForURLImport();
00297 
00298     //Now make a Web Address object out of the string
00299     //This will correct the string appropriately
00300     WebAddress urlToFetch(strUser, wcfToUse);
00301 
00302     //And set our member variable
00303     ms_url=urlToFetch;
00304     */
00305 
00306 
00307 }

void DaveDlg::OnCreate  )  [protected]
 

Handles a message that the dialog has just been created.

void DaveDlg::OnCreate()

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
DaveDlg::Message()

Definition at line 264 of file davedlg.cpp.

00265 {   
00266     //Put the keyboard focus in the edit field
00267     // SetKeyboardFocus(_R(IDC_DAVE_LW_EDIT));
00268 }

void DaveDlg::OnURLChanged  )  [protected]
 

Handles a message that the user has typed in the "URL" field.

void DaveDlg::OnURLChanged()

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/97
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
DaveDlg::Message()

Definition at line 326 of file davedlg.cpp.

00327 {   
00328     //Does nothing at present
00329     //We may need to handle this if we want the Import... button to be greyed
00330     //until the user types in the field
00331 }

BOOL DaveDlg::RemoveBevel  )  [protected]
 

Definition at line 460 of file davedlg.cpp.

00461 {
00462     return TRUE;
00463 }

void DaveDlg::UpdateControls  ) 
 

Definition at line 465 of file davedlg.cpp.

00466 {
00467 }


Member Data Documentation

BOOL DaveDlg::DialogWasCancelled = FALSE [static, protected]
 

Definition at line 162 of file davedlg.h.

BOOL DaveDlg::DontHandleNextMessage = FALSE [static, protected]
 

Definition at line 163 of file davedlg.h.

CDlgResID DaveDlg::IDD = _R(IDD_DAVES_DLG) [static]
 

Definition at line 174 of file davedlg.h.

INT32 DaveDlg::m_Angle [private]
 

Definition at line 177 of file davedlg.h.

BOOL DaveDlg::m_bFirst [private]
 

Definition at line 181 of file davedlg.h.

INT32 DaveDlg::m_Contrast [private]
 

Definition at line 180 of file davedlg.h.

INT32 DaveDlg::m_Indent [private]
 

Definition at line 179 of file davedlg.h.

INT32 DaveDlg::m_Type [private]
 

Definition at line 178 of file davedlg.h.

const CDlgMode DaveDlg::Mode = MODELESS [static]
 

Definition at line 175 of file davedlg.h.

WebAddress DaveDlg::ms_url = WebAddress() [static, protected]
 

Definition at line 160 of file davedlg.h.


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