wxWidgets/samples/typetest/typetest.h
Robert Roebling dcf924a345 Added zillions of #if wxUSE_XXX
Removed cmndlgs usage of wxSizer and constraints
  Changed occurences of wxConv_xxx to wxConvXxxx and
    changed some wxConvLibc to wxConvCurrent
  Added Unicode tests to typetests (not finished)
  Compile fix for wxString in Unicode mode - we have
   to use the "experimental" printf then, I guess.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 23:04:05 +00:00

73 lines
1.6 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: typetest.h
// Purpose: Types wxWindows sample
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma interface "typetest.h"
#endif
#ifndef _WX_TYPETEST_H_
#define _WX_TYPETEST_H_
// Define a new application type
class MyApp: public wxApp
{
public:
bool OnInit(void);
void DoDateDemo(wxCommandEvent& event);
void DoTimeDemo(wxCommandEvent& event);
void DoVariantDemo(wxCommandEvent& event);
void DoByteOrderDemo(wxCommandEvent& event);
#if wxUSE_UNICODE
void DoUnicodeDemo(wxCommandEvent& event);
#endif
wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
private:
wxTextCtrl* m_textCtrl;
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
#define TYPES_QUIT wxID_EXIT
#define TYPES_TEXT 101
#define TYPES_ABOUT 102
#define TYPES_DATE 103
#define TYPES_TIME 104
#define TYPES_VARIANT 105
#define TYPES_BYTEORDER 106
#define TYPES_UNICODE 107
#endif
// _WX_TYPETEST_H_