⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clockwindow.hpp

📁 一个基于BREW上的电子时钟程序,通过太阳历计算当前时间,并有闹铃和日志功能.
💻 HPP
字号:
//
//      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -