~ubuntu-branches/ubuntu/wily/wxwidgets3.0/wily-proposed

« back to all changes in this revision

Viewing changes to samples/font/font.cpp

  • Committer: Package Import Robot
  • Author(s): Olly Betts
  • Date: 2014-06-18 12:42:22 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140618124222-y7t2vpsije1cesxy
Tags: 3.0.1-1
* New upstream release
  + Incorporates most of the patches we were carrying - only one left is:
    wx-config-conditionalise-webview-in-std.patch
* Drop versioning of dependencies from run-time libraries to wx-common -
  this will make the transition to the next wx version harder, and also
  makes backporting to wheezy more work.
* Mark -dbg packages as "Multi-Arch: same".
* Correct short descriptions of the webview packages to not just be
  copies of the corresponding media package's short description.
* Wrap 81 character line in package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    wxColour m_colour;
80
80
    wxFont   m_font;
81
81
 
82
 
    DECLARE_EVENT_TABLE()
 
82
    wxDECLARE_EVENT_TABLE();
83
83
};
84
84
 
85
85
// Define a new frame type: this is going to be our main frame
151
151
 
152
152
private:
153
153
    // any class wishing to process wxWidgets events must use this macro
154
 
    DECLARE_EVENT_TABLE()
 
154
    wxDECLARE_EVENT_TABLE();
155
155
};
156
156
 
157
157
// ----------------------------------------------------------------------------
216
216
// the event tables connect the wxWidgets events with the functions (event
217
217
// handlers) which process them. It can be also done at run-time, but for the
218
218
// simple menu events like this the static method is much simpler.
219
 
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
 
219
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
220
220
    EVT_MENU(Font_Quit,  MyFrame::OnQuit)
221
221
    EVT_MENU(Font_TestTextValue, MyFrame::OnTestTextValue)
222
222
    EVT_MENU(Font_ViewMsg, MyFrame::OnViewMsg)
257
257
    EVT_MENU(Font_EnumFamilies, MyFrame::OnEnumerateFamilies)
258
258
    EVT_MENU(Font_EnumFixedFamilies, MyFrame::OnEnumerateFixedFamilies)
259
259
    EVT_MENU(Font_EnumEncodings, MyFrame::OnEnumerateEncodings)
260
 
END_EVENT_TABLE()
 
260
wxEND_EVENT_TABLE()
261
261
 
262
262
// Create a new application object: this macro will allow wxWidgets to create
263
263
// the application object during program execution (it's better than using a
1001
1001
// MyCanvas
1002
1002
// ----------------------------------------------------------------------------
1003
1003
 
1004
 
BEGIN_EVENT_TABLE(MyCanvas, wxWindow)
 
1004
wxBEGIN_EVENT_TABLE(MyCanvas, wxWindow)
1005
1005
    EVT_PAINT(MyCanvas::OnPaint)
1006
 
END_EVENT_TABLE()
 
1006
wxEND_EVENT_TABLE()
1007
1007
 
1008
1008
MyCanvas::MyCanvas( wxWindow *parent )
1009
1009
        : wxWindow( parent, wxID_ANY ),