OOFILE  1.9
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CYNCDlg Class Reference

PowerPlant dialog class for equivalent to Windows MessageBox. More...

Inheritance diagram for CYNCDlg:
Inheritance graph
[legend]
Collaboration diagram for CYNCDlg:
Collaboration graph
[legend]

Public Member Functions

 CYNCDlg ()
 
 CYNCDlg (LStream *inStream)
 
 CYNCDlg ()
 
 CYNCDlg (LStream *inStream)
 
virtual void FindCommandStatus (CommandT inCommand, Boolean &outEnabled, Boolean &outUsesMark, UInt16 &outMark, Str255 outName)
 
virtual void FindCommandStatus (CommandT inCommand, Boolean &outEnabled, Boolean &outUsesMark, UInt16 &outMark, Str255 outName)
 
virtual Boolean FocusDraw (LPane *inSubPane=nil)
 
virtual Boolean FocusDraw (LPane *inSubPane=nil)
 Standard AppMaker-generated FocusDraw to set background color. More...
 
virtual void HideButton (int)
 
virtual void HideButton (int)
 
virtual Boolean ObeyCommand (CommandT inCommand, void *ioParam=nil)
 
virtual Boolean ObeyCommand (CommandT inCommand, void *ioParam=nil)
 
virtual void SetButtonCaption (int, const char *)
 
virtual void SetButtonCaption (int, const char *)
 
virtual void SetCancelBtn (int)
 
virtual void SetCancelBtn (int)
 
virtual void SetDefaultBtn (int)
 
virtual void SetDefaultBtn (int)
 
virtual void SetIcon (ResIDT inIconRes)
 
virtual void SetIcon (ResIDT inIconRes)
 
virtual void SetMessageText (const char *)
 
virtual void SetMessageText (const char *)
 
virtual void SetTitle (const char *)
 
virtual void SetTitle (const char *)
 
virtual ~CYNCDlg ()
 
virtual ~CYNCDlg ()
 

Static Public Member Functions

static CYNCDlgCreateYNCDlg (LCommander *inSuperCommander)
 
static CYNCDlgCreateYNCDlg (LCommander *inSuperCommander)
 
static CYNCDlgCreateYNCDlgStream (LStream *inStream)
 
static CYNCDlgCreateYNCDlgStream (LStream *inStream)
 
static void RegisterClass ()
 
static void RegisterClass ()
 

Protected Member Functions

virtual void FinishCreateSelf ()
 
virtual void FinishCreateSelf ()
 

Protected Attributes

LStdButton * mButton1
 
LPushButton * mButton1
 
LStdButton * mButton2
 
LPushButton * mButton2
 
LStdButton * mButton3
 
LPushButton * mButton3
 
LPicture * mIcon
 
LCaption * mText
 
LStaticText * mText
 

Static Protected Attributes

static Boolean sIsRegistered = false
 

Detailed Description

PowerPlant dialog class for equivalent to Windows MessageBox.

Displays dialog with up to 3 buttons and icon.

Definition at line 88 of file oofppyn.cpp.

Constructor & Destructor Documentation

CYNCDlg::CYNCDlg ( )

Definition at line 197 of file oofppyn.cpp.

CYNCDlg::CYNCDlg ( LStream *  inStream)

Definition at line 204 of file oofppyn.cpp.

CYNCDlg::~CYNCDlg ( )
virtual

Definition at line 212 of file oofppyn.cpp.

CYNCDlg::CYNCDlg ( )
CYNCDlg::CYNCDlg ( LStream *  inStream)
virtual CYNCDlg::~CYNCDlg ( )
virtual

Member Function Documentation

static CYNCDlg* CYNCDlg::CreateYNCDlg ( LCommander inSuperCommander)
static
CYNCDlg * CYNCDlg::CreateYNCDlg ( LCommander inSuperCommander)
static

Definition at line 174 of file oofppyn.cpp.

References PPob_YNCDlgID.

static CYNCDlg* CYNCDlg::CreateYNCDlgStream ( LStream *  inStream)
static
CYNCDlg * CYNCDlg::CreateYNCDlgStream ( LStream *  inStream)
static

Definition at line 188 of file oofppyn.cpp.

Referenced by RegisterClass().

virtual void CYNCDlg::FindCommandStatus ( CommandT  inCommand,
Boolean &  outEnabled,
Boolean &  outUsesMark,
UInt16 &  outMark,
Str255  outName 
)
virtual
void CYNCDlg::FindCommandStatus ( CommandT  inCommand,
Boolean &  outEnabled,
Boolean &  outUsesMark,
UInt16 &  outMark,
Str255  outName 
)
virtual

Definition at line 288 of file oofppyn.cpp.

virtual void CYNCDlg::FinishCreateSelf ( )
protectedvirtual
void CYNCDlg::FinishCreateSelf ( )
protectedvirtual

Definition at line 222 of file oofppyn.cpp.

References mButton1, mButton2, mButton3, mIcon, mText, and RidL_YNCDlgID.

virtual Boolean CYNCDlg::FocusDraw ( LPane inSubPane = nil)
virtual
Boolean CYNCDlg::FocusDraw ( LPane inSubPane = nil)
virtual

Standard AppMaker-generated FocusDraw to set background color.

Presumably overcomes long-time PowerPlant bug or weakness?

Definition at line 314 of file oofppyn.cpp.

virtual void CYNCDlg::HideButton ( int  )
virtual
void CYNCDlg::HideButton ( int  n)
virtual

Definition at line 342 of file oofppyn.cpp.

References mButton1, mButton2, and mButton3.

virtual Boolean CYNCDlg::ObeyCommand ( CommandT  inCommand,
void *  ioParam = nil 
)
virtual
Boolean CYNCDlg::ObeyCommand ( CommandT  inCommand,
void *  ioParam = nil 
)
virtual

Definition at line 264 of file oofppyn.cpp.

static void CYNCDlg::RegisterClass ( )
static
void CYNCDlg::RegisterClass ( )
static

Definition at line 156 of file oofppyn.cpp.

References CreateYNCDlgStream(), and RegisterClasses.

Referenced by oofYNC::msgBox().

virtual void CYNCDlg::SetButtonCaption ( int  ,
const char *   
)
virtual
void CYNCDlg::SetButtonCaption ( int  n,
const char *  inCap 
)
virtual

Definition at line 359 of file oofppyn.cpp.

References mButton1, mButton2, and mButton3.

virtual void CYNCDlg::SetCancelBtn ( int  )
virtual
void CYNCDlg::SetCancelBtn ( int  n)
virtual

Definition at line 399 of file oofppyn.cpp.

References mButton1, mButton2, and mButton3.

virtual void CYNCDlg::SetDefaultBtn ( int  )
virtual
void CYNCDlg::SetDefaultBtn ( int  n)
virtual

Definition at line 382 of file oofppyn.cpp.

References mButton1, mButton2, and mButton3.

virtual void CYNCDlg::SetIcon ( ResIDT  inIconRes)
virtual
void CYNCDlg::SetIcon ( ResIDT  inIconRes)
virtual

Definition at line 416 of file oofppyn.cpp.

References mIcon, and mText.

virtual void CYNCDlg::SetMessageText ( const char *  )
virtual
void CYNCDlg::SetMessageText ( const char *  inText)
virtual

Definition at line 336 of file oofppyn.cpp.

References mText.

virtual void CYNCDlg::SetTitle ( const char *  )
virtual
void CYNCDlg::SetTitle ( const char *  inTitle)
virtual

Definition at line 375 of file oofppyn.cpp.

Member Data Documentation

LStdButton* CYNCDlg::mButton1
protected

Definition at line 109 of file oofppynOLD.cpp.

LPushButton* CYNCDlg::mButton1
protected
LStdButton* CYNCDlg::mButton2
protected

Definition at line 110 of file oofppynOLD.cpp.

LPushButton* CYNCDlg::mButton2
protected
LStdButton* CYNCDlg::mButton3
protected

Definition at line 111 of file oofppynOLD.cpp.

LPushButton* CYNCDlg::mButton3
protected
LPicture * CYNCDlg::mIcon
protected

Definition at line 138 of file oofppyn.cpp.

Referenced by FinishCreateSelf(), and SetIcon().

LCaption* CYNCDlg::mText
protected

Definition at line 113 of file oofppynOLD.cpp.

LStaticText* CYNCDlg::mText
protected

Definition at line 137 of file oofppyn.cpp.

Referenced by FinishCreateSelf(), SetIcon(), and SetMessageText().

Boolean CYNCDlg::sIsRegistered = false
staticprotected

Definition at line 131 of file oofppyn.cpp.


The documentation for this class was generated from the following files: