home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-19 | 2.2 KB | 81 lines | [TEXT/CWIE] |
- // CAdd.h -- dialog class
- // Created 3/19/96 1:49 PM by AppMaker
-
- #pragma once
-
- #include <LDialogBox.h>
-
- class LStream;
-
- class LStdButton;
- class LEditField;
- class LRadioGroup;
- class LView;
- class LStdCheckBox;
- class LStdPopupMenu;
-
- #define cmd_Add 'Add '
-
- //----------
- class CAdd : public LDialogBox {
- public: // these comprise the programming interface for using the dialog
- static CAdd* CreateAdd (LCommander *inSuperCommander);
-
- virtual void GetDateFieldString (Str255 str);
- virtual void SetDateFieldString (Str255 str);
- virtual void GetTimeFieldString (Str255 str);
- virtual void SetTimeFieldString (Str255 str);
- virtual long GetAmPmGroupChoice();
- virtual void SetAmPmGroupChoice (long choice);
- virtual void GetMessageFieldString (Str255 str);
- virtual void SetMessageFieldString (Str255 str);
- virtual Boolean GetDisplayIconChoice();
- virtual void SetDisplayIconChoice (Boolean inChoice);
- virtual Boolean GetDisplayAlertChoice();
- virtual void SetDisplayAlertChoice (Boolean inChoice);
- virtual Boolean GetPlaySoundChoice();
- virtual void SetPlaySoundChoice (Boolean inChoice);
- virtual short GetSoundPopupChoice();
- virtual void SetSoundPopupChoice (short choice);
-
- public: // these comprise the implementation
- static CAdd* CreateAddStream (LStream *inStream);
-
- CAdd();
- CAdd (LStream *inStream);
- virtual ~CAdd();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
- virtual Boolean FocusDraw();
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
-
- protected:
-
- protected:
- static Boolean sIsRegistered;
-
- LStdButton* mOKButton;
- LStdButton* mCancelButton;
- LEditField *mDateField;
- LEditField *mTimeField;
- LView *mAmPmView;
- LRadioGroup *mAmPmGroup;
- LEditField *mMessageField;
- LStdCheckBox* mDisplayIconCheck;
- LStdCheckBox* mDisplayAlertCheck;
- LStdCheckBox* mPlaySoundCheck;
- LStdPopupMenu *mSoundPopup;
- };
-