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

📄 dateselectiondialog.hpp

📁 一个基于BREW上的电子时钟程序,通过太阳历计算当前时间,并有闹铃和日志功能.
💻 HPP
字号:
//
//      DateSelectionDialog.hpp
//
//      Copyright (C) 2006 Sophia Cradle Incorporated

#ifndef __DATESELECTIONDIALOG_HPP
#define __DATESELECTIONDIALOG_HPP

#include <SophiaFramework.hpp>
#include "SGRCalendarControl.hpp"

SFMTYPEDEFCLASS(DateSelectionDialog)
class DateSelectionDialog : public SFRTitleWindow {
	SFMSEALCOPY(DateSelectionDialog)
private:
	SGRCalendarControlPtr _calendar;

public:
	explicit DateSelectionDialog(SFXDateConstRef date, SFXDateDurationConstRef timeDifference = SFXDateDuration(9 * 3600), SGRCalendarControl::YearFormatEnum yearFormat = SGRCalendarControl::YEARFORMAT_AD, SGRCalendarControl::MonthFormatEnum monthFormat = SGRCalendarControl::MONTHFORMAT_ENGLISH, SGRCalendarControl::DayFormatEnum dayFormat = SGRCalendarControl::DAYFORMAT_ENGLISH, Bool beginMonday = false) static_throws;
	virtual ~DateSelectionDialog(Void);
	SFXDate GetCursor(Void) const;
	HANDLER_DECLARE_BOOLEVENT(DateSelectionDialog, OnKey)
	HANDLER_DECLARE_VOIDEVENT(DateSelectionDialog, OnSoftkey)
private:
	static SFXRectangle ComputeWindowRectangle(Void);
};

inline SFXDate DateSelectionDialog::GetCursor(Void) const
{
	SFXDate cursor(_calendar ? _calendar->GetCursor() : SFXDate::CurrentDate());
	SFXDate result(cursor.GetYear(), cursor.GetMonth(), cursor.GetDay(), 0, 0, 0);
	return result;
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -