stationform.h

来自「很优秀的公交查询软件」· C头文件 代码 · 共 51 行

H
51
字号
// StationForm.h
//
// This file declares a class for the main form of
// your application.

#ifndef STATIONFORM_H_
#define STATIONFORM_H_

#include "RouteResultGrid.h"
#include "BusDB.h"
#include "ArrayPopupTrigger.h"
#include "SwitchPopupTrigger.h"

class CStationForm : public CForm
{
public:
	// Form event handlers
	Boolean OnOpen(EventType* pEvent, Boolean& bHandled);

	// Command handlers
	Boolean OnClearText(EventPtr pEvent, Boolean& bHandled);
	Boolean OnAbout(EventType* pEvent, Boolean& bHandled);
	Boolean OnPreferences(EventType* pEvent, Boolean& bHandled);
	Boolean OnOpenDatabase(EventType* pEvent, Boolean& bHandled);
	
	void SetGridRouteResultSelected(UInt8 iSel);
	Boolean OnSelectItem(CCustomPopupTrigger::EventPtr pEvent, Boolean& bHandled);
	Boolean OnSearch(EventPtr pEvent, Boolean& bHandled);
	Boolean OnClear(EventPtr pEvent, Boolean& bHandled);
	Boolean OnGo(EventPtr pEvent, Boolean& bHandled);
	// Event map
	BEGIN_EVENT_MAP(CForm)
		EVENT_MAP_ENTRY(frmOpenEvent, OnOpen)
		EVENT_MAP_MENU_ENTRY(OptionsAboutBusAll, OnAbout)
		EVENT_MAP_MENU_ENTRY(OptionsPreferences, OnPreferences)
		EVENT_MAP_MENU_ENTRY(OpenDatabaseMenuItem, OnOpenDatabase)
       	EVENT_MAP_ENTRY(CCustomPopupTrigger::popSelectEvent, OnSelectItem)
		EVENT_MAP_COMMAND_ENTRY(StationSearchButton, OnSearch)
		EVENT_MAP_COMMAND_ENTRY(StationClearButton, OnClear)
		EVENT_MAP_COMMAND_ENTRY(StationGoButton, OnGo);
	END_EVENT_MAP()


protected:
	CRouteResultGrid	m_gridRouteResult;
	CArrayPopupTrigger	m_popupRouteResult;
	CSwitchPopupTrigger m_popupSwitch;
};

#endif // STATIONFORM_H_

⌨️ 快捷键说明

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