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

« back to all changes in this revision

Viewing changes to samples/combo/combo.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:
94
94
 
95
95
private:
96
96
    // any class wishing to process wxWidgets events must use this macro
97
 
    DECLARE_EVENT_TABLE()
 
97
    wxDECLARE_EVENT_TABLE();
98
98
};
99
99
 
100
100
// ----------------------------------------------------------------------------
122
122
// the event tables connect the wxWidgets events with the functions (event
123
123
// handlers) which process them. It can be also done at run-time, but for the
124
124
// simple menu events like this the static method is much simpler.
125
 
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
 
125
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
126
126
    EVT_TEXT(wxID_ANY,MyFrame::OnComboBoxUpdate)
127
127
    EVT_TEXT_ENTER(wxID_ANY,MyFrame::OnComboBoxUpdate)
128
128
    EVT_COMBOBOX(wxID_ANY,MyFrame::OnComboBoxUpdate)
132
132
    EVT_MENU(ComboCtrl_About,    MyFrame::OnAbout)
133
133
 
134
134
    EVT_IDLE(MyFrame::OnIdle)
135
 
END_EVENT_TABLE()
 
135
wxEND_EVENT_TABLE()
136
136
 
137
137
// Create a new application object: this macro will allow wxWidgets to create
138
138
// the application object during program execution (it's better than using a
351
351
    int             m_itemHere; // hot item in popup
352
352
 
353
353
private:
354
 
    DECLARE_EVENT_TABLE()
 
354
    wxDECLARE_EVENT_TABLE();
355
355
};
356
356
 
357
 
BEGIN_EVENT_TABLE(ListViewComboPopup, wxListView)
 
357
wxBEGIN_EVENT_TABLE(ListViewComboPopup, wxListView)
358
358
    EVT_MOTION(ListViewComboPopup::OnMouseMove)
359
359
    // NOTE: Left down event is used instead of left up right now
360
360
    //       since MSW wxListCtrl doesn't seem to emit left ups
361
361
    //       consistently.
362
362
    EVT_LEFT_DOWN(ListViewComboPopup::OnMouseClick)
363
 
END_EVENT_TABLE()
 
363
wxEND_EVENT_TABLE()
364
364
 
365
365
 
366
366
// ----------------------------------------------------------------------------
489
489
    wxTreeItemId        m_itemHere; // hot item in popup
490
490
 
491
491
private:
492
 
    DECLARE_EVENT_TABLE()
 
492
    wxDECLARE_EVENT_TABLE();
493
493
};
494
494
 
495
 
BEGIN_EVENT_TABLE(TreeCtrlComboPopup, wxTreeCtrl)
 
495
wxBEGIN_EVENT_TABLE(TreeCtrlComboPopup, wxTreeCtrl)
496
496
    EVT_MOTION(TreeCtrlComboPopup::OnMouseMove)
497
497
    // NOTE: Left down event is used instead of left up right now
498
498
    //       since MSW wxTreeCtrl doesn't seem to emit left ups
499
499
    //       consistently.
500
500
    EVT_LEFT_DOWN(TreeCtrlComboPopup::OnMouseClick)
501
 
END_EVENT_TABLE()
 
501
wxEND_EVENT_TABLE()
502
502
 
503
503
// ----------------------------------------------------------------------------
504
504
// wxComboCtrl with custom popup animation, using wxWindow::ShowWithEffect().