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

📄 lcd_widget.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////
// Name:        LCD_Widget.h
// Purpose:     
// Author:      Huacheng Ke <sese_zju@yahoo.com.cn>
// Modified by: 
// Created:     03/08/05 15:48:55
// RCS-ID:      
// Copyright:   GNU Public Licence
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _LCD_WIDGET_H_
#define _LCD_WIDGET_H_

#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "LCD_Widget.cpp"
#endif

/*!
 * Includes
 */

////@begin includes
#include "wx/frame.h"
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */
#include <Core/Observer.h>

//class Core::Observer;

namespace LCD {

////@begin control identifiers
#define ID_FRAME 10000
#define SYMBOL_LCD_WIDGET_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_LCD_WIDGET_TITLE _("LCD Screen")
#define SYMBOL_LCD_WIDGET_IDNAME ID_FRAME
#define SYMBOL_LCD_WIDGET_SIZE wxSize(400, 300)
#define SYMBOL_LCD_WIDGET_POSITION wxDefaultPosition
#define ID_TEXTCTRL 10002
////@end control identifiers

/*!
 * Compatibility
 */

#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
#ifndef wxFIXED_MINSIZE
#define wxFIXED_MINSIZE 0
#endif

/*!
 * LCD_Widget class declaration
 */

class LCD_Widget: public wxFrame
{    
    DECLARE_CLASS( LCD_Widget )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
	LCD_Widget();
    LCD_Widget( wxWindow* parent, wxWindowID id = SYMBOL_LCD_WIDGET_IDNAME, const wxString& caption = SYMBOL_LCD_WIDGET_TITLE, const wxPoint& pos = SYMBOL_LCD_WIDGET_POSITION, const wxSize& size = SYMBOL_LCD_WIDGET_SIZE, long style = SYMBOL_LCD_WIDGET_STYLE);

    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_LCD_WIDGET_IDNAME, const wxString& caption = SYMBOL_LCD_WIDGET_TITLE, const wxPoint& pos = SYMBOL_LCD_WIDGET_POSITION, const wxSize& size = SYMBOL_LCD_WIDGET_SIZE, long style = SYMBOL_LCD_WIDGET_STYLE);

    /// Creates the controls and sizers
    void CreateControls();

////@begin LCD_Widget event handler declarations

////@end LCD_Widget event handler declarations
	void OnTimer(wxTimerEvent& event);

////@begin LCD_Widget member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end LCD_Widget member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

	void start_timer(int time);

////@begin LCD_Widget member variables
////@end LCD_Widget member variables
private:
	//Core::Observer *obv_;
	wxTimer timer_;
};

enum {
	TIMER_ID1 = 30001,
};

}

#endif
    // _LCD_WIDGET_H_

⌨️ 快捷键说明

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