clockwindow.hpp
来自「一个基于BREW上的电子时钟程序,通过太阳历计算当前时间,并有闹铃和日志功能.」· HPP 代码 · 共 56 行
HPP
56 行
//
// ClockWindow.hpp
//
// Copyright (C) 2006 Sophia Cradle Incorporated
#ifndef __CLOCKWINDOW_HPP
#define __CLOCKWINDOW_HPP
#include <SophiaFramework.hpp>
#include "ClockPane.hpp"
#include "AstronomyPane.hpp"
#include "CalendarPane.hpp"
#include "CitySelectionDialog.hpp"
SFMTYPEDEFCLASS(ClockWindow)
class ClockWindow : public SFRPlainWindow {
SFMSEALCOPY(ClockWindow)
private:
Bool _calendarShowing;
ClockPanePtr _clock;
AstronomyPanePtr _astronomy;
CalendarPanePtr _calendar;
CitySelectionDialogPtr _cityDialog;
Bool _simulation;
SFXDate _simulationDate;
SFXWideString _cityName;
SFXDateDuration _timeDifference;
Float64 _longitude;
Float64 _latitude;
Float64 _height;
SFXRectangle _clockRect;
SFXRectangle _astronomyRect;
SFXRectangle _calendarRect;
enum Softkey2MenuEnum {
SOFTKEY2_OPERATION_CITY = 0,
SOFTKEY2_OPERATION_ALARM,
SOFTKEY2_OPERATION_VERSION,
SOFTKEY2_OPERATION_LIMIT
};
public:
ClockWindow(SFRApplicationPtr parent, SFXRectangleConstRef rect, SFXWideStringConstRef cityName, SFXDateDurationConstRef timeDifference, Float64 longitude, Float64 latitude, Float64 height) static_throws;
virtual ~ClockWindow(Void);
Void SetCity(SFXWideStringConstRef cityName, SFXDateDurationConstRef timeDifference, Float64 longitude, Float64 latitude, Float64 height);
HANDLER_DECLARE_VOIDRESUME(ClockWindow, OnAppResume)
HANDLER_DECLARE_VOIDEVENT(ClockWindow, OnSoftkey)
HANDLER_DECLARE_BOOLEVENT(ClockWindow, OnKey)
HANDLER_DECLARE_VOIDMENU(ClockWindow, OnSoftkey2Menu)
HANDLER_DECLARE_BOOLEVENT(ClockWindow, OnCityDialogKey)
private:
Void ShowAstronomy(Void) static_throws;
Void ShowCalendar(Void) static_throws;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?