Files
Work/aladin/hold/divedlg.hpp
2024-08-07 09:12:07 -04:00

68 lines
2.0 KiB
C++

#ifndef _ALADIN_DIVEDLG_HPP_
#define _ALADIN_DIVEDLG_HPP_
#ifndef _COMMON_DWINDOW_HPP_
#include <common/dwindow.hpp>
#endif
#ifndef _COMMON_SMARTPOINTER_HPP_
#include <common/pointer.hpp>
#endif
#ifndef _COMMON_GLOBALDATA_HPP_
#include <common/gdata.hpp>
#endif
#ifndef _COMMON_CONTROL_HPP_
#include <common/control.hpp>
#endif
#ifndef _ALADIN_ALADIN_HPP_
#include <aladin/aladin.hpp>
#endif
class OwnerDrawListAltColor;
class OwnerDrawGraph;
class Worksheet;
class Profile;
class LogBook;
class DiveDlg : public DWindow
{
public:
DiveDlg(void);
virtual ~DiveDlg();
bool perform(void);
private:
enum{StatusBarID=101};
DiveDlg(const DiveDlg &someDiveDlg);
DiveDlg &operator=(const DiveDlg &someDiveDlg);
CallbackData::ReturnType initHandler(CallbackData &someCallbackData);
CallbackData::ReturnType createHandler(CallbackData &someCallbackData);
CallbackData::ReturnType closeHandler(CallbackData &someCallbackData);
CallbackData::ReturnType destroyHandler(CallbackData &someCallbackData);
CallbackData::ReturnType commandHandler(CallbackData &someCallbackData);
void handleCancel(void);
void handleOk(void);
void setData(Aladin &diveInfo);
void handleImport(void);
void handleFileOpen();
void handleProfileChange(void);
void handleSaveAsWorksheet(void);
void handleSaveAsRaw(void);
void handleSaveAsText(void);
void handleSerialSettings(void);
void handleHelpAbout(void);
void handleHelpRegister(void);
void handleHelpHome(void);
void handleHelpHelp(void);
void addDiveLog(Worksheet &worksheet,const LogBook &logBook,int startRow,int startCol);
void addProfile(Worksheet &worksheet,const Profile &profile,int startRow,int startCol);
Callback<DiveDlg> mInitHandler;
Callback<DiveDlg> mCreateHandler;
Callback<DiveDlg> mCloseHandler;
Callback<DiveDlg> mDestroyHandler;
Callback<DiveDlg> mCommandHandler;
SmartPointer<OwnerDrawListAltColor> mLogList;
SmartPointer<OwnerDrawListAltColor> mProfileList;
SmartPointer<OwnerDrawGraph> mOwnerDrawGraph;
Aladin mDiveProfile;
};
#endif