/* ========================================================================== * ÆÄ ÀÏ : ChannelWindow.h * ¸ñ Àû : ij¸¯ÅÍ ¼±ÅÃÈ­¸éÀÇ Ã¤³ÎÀ©µµ¿ì * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2007-04-10 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" const unsigned int MAXPAGE_NUM = 5; class cListBox; class cButton; class cChannelWindow : public cUIWindow { public: cChannelWindow(); virtual ~cChannelWindow(); void Open(); /// ä³Îµ¥ÀÌÅÍ Å¬¸®¾î void Clear(); /// ¼­¹ö ¸®½ºÆ® »ðÀÔ void AddChannel( long param, int status, LPCTSTR channelname, LPCTSTR condition, unsigned long color, bool select = false ); /// ä³Î Á¤º¸ long GetSelectedChannelParam(); /// ä³Î»óÅ int GetSelectedChannelStatus(); void UpdateButton(); protected: bool OnCreate( cUINodeProperty* pproperty ); void OnListBoxSelected( cUINode* pcaller, unsigned int id ); void OnCommand( cUINode* pcaller, unsigned int id ); void UpdateSkin(); void OnShow(); // void CheckConnect(); private: /// ä³Î Á¤º¸¿Í ä³Î À̸§ ¸ÅĪ Á¤º¸ struct sChannelData { long mParam; unsigned int mStatus; sChannelData() : mParam( 0 ), mStatus( 0 ){} }; typedef tArray cChannelData; cChannelData mChannelData; /// ä³Î ¸®½ºÆ® ¹Ú½º cListBox* mpChannelList; cButton* mpConnectBtn; /// ÆäÀÌÁö ¹öư cUINode* mpRadioNode[ MAXPAGE_NUM ]; /// ¹öưµéÀÇ Á¤·ÄÀ» À§ÇÑ ¿µ¿ª cUIRect mCheckRect; };