~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to samples/htlbox/htlbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-06-30 22:02:17 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080630220217-vag3tkfp91t0453d
Tags: 2.8.8.0-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.8.0.tar.bz2, remove upstream debian dir (LP: #244355).
* Add debian/watch file, LP: #242164.
* Edit get-orig-source target to provide a .orig.tar.gz with the same md5 for
  each .orig.tar.gz generated.
* debian/rules: remove get-orig-source from .PHONY target.
* debian/control.in: add python-wxtools in python-wxgtk=V=U Suggests field.
* Do not apply fix_from_upstream_svn_r52465 patch, not needed.
* Regenerate octave_oct, tcl_tk_tcl patches for the new version.
* Fix spelling-error-in-description lintian warning.
* Fix depends-on-obsolete-package lintian error.
* Fix executable-not-elf-or-script lintian warnings.
* Fix script-not-executable lintian warnings.
* Fix missing-dependency-on-libc lintian error.
* Fix dbg-package-missing-depends lintian warnings.
* Fix package-contains-empty-directory lintian warnings.
* Fix manpage-has-errors-from-man lintian warning.
* Fix image-file-in-usr-lib lintian warnings:
  - add editra_pixmaps patch
  - add xrced_bitmaps patch
* Fix unused-override lintian info.
* Fix malformed-override lintian errors.
* Fix extra-license-file lintian warnings.
* Install upstream wx.pth instead of generated file links (LP: #211553).
* Add editra.png, pyshell.png (encoded using uuencode) icons, LP: #236876:
  - debian/rules: use uudecode to decode .png icons.
* Add a new pyshell.xpm icon.
* Fix doc-base-file-references-missing-file lintian error.
* Fix doc-base-unknown-section lintian warning.
* Fix ruby-script-but-no-ruby-dep lintian errors.
* Fix wish-script-but-no-wish-dep lintian errors.
* Fix missing-dep-for-interpreter errors.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:      Vadim Zeitlin
5
5
// Modified by:
6
6
// Created:     31.05.03
7
 
// RCS-ID:      $Id: htlbox.cpp 42658 2006-10-29 20:26:03Z VS $
 
7
// RCS-ID:      $Id: htlbox.cpp 51132 2008-01-09 14:43:15Z VZ $
8
8
// Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9
9
// Licence:     wxWindows licence
10
10
/////////////////////////////////////////////////////////////////////////////
121
121
    void OnSetSelBgCol(wxCommandEvent& event);
122
122
    void OnSetSelFgCol(wxCommandEvent& event);
123
123
 
 
124
    void OnClear(wxCommandEvent& event);
124
125
 
125
126
    void OnUpdateUISelectAll(wxUpdateUIEvent& event);
126
127
 
176
177
    HtmlLbox_SetSelBgCol,
177
178
    HtmlLbox_SetSelFgCol,
178
179
 
 
180
    HtmlLbox_Clear,
 
181
 
179
182
    // it is important for the id corresponding to the "About" command to have
180
183
    // this standard value as otherwise it won't be handled properly under Mac
181
184
    // (where it is special and put into the "Apple" menu)
203
206
    EVT_MENU(HtmlLbox_SetSelBgCol, MyFrame::OnSetSelBgCol)
204
207
    EVT_MENU(HtmlLbox_SetSelFgCol, MyFrame::OnSetSelFgCol)
205
208
 
 
209
    EVT_MENU(HtmlLbox_Clear, MyFrame::OnClear)
 
210
 
206
211
    EVT_UPDATE_UI(HtmlLbox_SelectAll, MyFrame::OnUpdateUISelectAll)
207
212
 
208
213
 
267
272
    menuHLbox->AppendCheckItem(HtmlLbox_SetSelFgCol,
268
273
                               _T("Keep &foreground in selection\tCtrl-F"));
269
274
 
 
275
    menuHLbox->AppendSeparator();
 
276
    menuHLbox->Append(HtmlLbox_Clear, _T("&Clear\tCtrl-L"));
 
277
 
270
278
    // the "About" item should be in the help menu
271
279
    wxMenu *helpMenu = new wxMenu;
272
280
    helpMenu->Append(HtmlLbox_About, _T("&About...\tF1"), _T("Show about dialog"));
463
471
    }
464
472
}
465
473
 
 
474
void MyFrame::OnClear(wxCommandEvent& WXUNUSED(event))
 
475
{
 
476
    m_hlbox->Clear();
 
477
}
 
478
 
466
479
void MyFrame::OnHtmlLinkClicked(wxHtmlLinkEvent &event)
467
480
{
468
481
    wxLogMessage(wxT("The url '%s' has been clicked!"), event.GetLinkInfo().GetHref().c_str());