3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
88 lines
2.0 KiB
C++
88 lines
2.0 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: typetest.h
|
|
// Purpose: Types wxWidgets sample
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 04/01/98
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_TYPETEST_H_
|
|
#define _WX_TYPETEST_H_
|
|
|
|
// Define a new application type
|
|
class MyApp: public wxApp
|
|
{
|
|
public:
|
|
MyApp() { m_textCtrl = NULL; m_mimeDatabase = NULL; }
|
|
|
|
bool OnInit();
|
|
int OnExit() { delete m_mimeDatabase; return wxApp::OnExit(); }
|
|
|
|
void DoVariantDemo(wxCommandEvent& event);
|
|
void DoByteOrderDemo(wxCommandEvent& event);
|
|
void DoStreamDemo(wxCommandEvent& event);
|
|
void DoStreamDemo2(wxCommandEvent& event);
|
|
void DoStreamDemo3(wxCommandEvent& event);
|
|
void DoStreamDemo4(wxCommandEvent& event);
|
|
void DoStreamDemo5(wxCommandEvent& event);
|
|
void DoStreamDemo6(wxCommandEvent& event);
|
|
void DoStreamDemo7(wxCommandEvent& event);
|
|
#if wxUSE_UNICODE
|
|
void DoUnicodeDemo(wxCommandEvent& event);
|
|
#endif // wxUSE_UNICODE
|
|
void DoMIMEDemo(wxCommandEvent& event);
|
|
|
|
wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
|
|
|
|
private:
|
|
wxTextCtrl* m_textCtrl;
|
|
wxMimeTypesManager *m_mimeDatabase;
|
|
|
|
DECLARE_DYNAMIC_CLASS(MyApp)
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
DECLARE_APP(MyApp)
|
|
|
|
// Define a new frame type
|
|
class MyFrame: public wxFrame
|
|
{
|
|
public:
|
|
MyFrame(wxFrame *parent, const wxString& title,
|
|
const wxPoint& pos, const wxSize& size);
|
|
|
|
public:
|
|
void OnQuit(wxCommandEvent& event);
|
|
void OnAbout(wxCommandEvent& event);
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
// ID for the menu commands
|
|
enum
|
|
{
|
|
TYPES_QUIT = wxID_EXIT,
|
|
TYPES_TEXT = 101,
|
|
TYPES_ABOUT = wxID_ABOUT,
|
|
|
|
TYPES_DATE = 102,
|
|
TYPES_TIME,
|
|
TYPES_VARIANT,
|
|
TYPES_BYTEORDER,
|
|
TYPES_UNICODE,
|
|
TYPES_STREAM,
|
|
TYPES_STREAM2,
|
|
TYPES_STREAM3,
|
|
TYPES_STREAM4,
|
|
TYPES_STREAM5,
|
|
TYPES_STREAM6,
|
|
TYPES_STREAM7,
|
|
TYPES_MIME
|
|
};
|
|
|
|
#endif
|
|
// _WX_TYPETEST_H_
|
|
|