Commit Graph

690 Commits

Author SHA1 Message Date
Robin Dunn
abdb7725e1 In wxGTK2 the wxMessageDialog is not a real wxDialog so its m_widget
will always be NULL there will be a wxCHECK asserts triggered whenever
calling base class methods that are valid calls (or just ignored) on
other wx ports.  Added a set of macros to be used to test m_widget
that will bypass the wxFAIL if the window is a wxMessageDialog.  This
will silence those asserts if the window is a wxMessageDialog and will
let the method doing the check just be ignored in that case.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-01 21:29:35 +00:00
Robin Dunn
95561ddfc3 Change SetStringSelection to return bool like in other classes and ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-27 19:59:35 +00:00
Robin Dunn
49826dabe6 Fix wxGTK's menu and menubar so Insert does something other than
always append.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-22 22:05:52 +00:00
Robert Roebling
3851e47918 Applied patch for hiding statusbar.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-18 10:27:11 +00:00
Vadim Zeitlin
c4ca49cde3 implemented GetBestSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:55:21 +00:00
Robert Roebling
174b10af34 Applied SetForegorund colour patch for GTK2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-29 18:07:31 +00:00
Robert Roebling
c077ee9433 Applied notebook font patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-20 12:57:46 +00:00
Vadim Zeitlin
03b3965c3a why should wxMessageDialog dialog have another m_parent, in addition to wxWindow::m_parent? removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-20 12:51:35 +00:00
Robin Dunn
178a12204b implement wxBitmapButton::DoGetBestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-16 21:58:27 +00:00
Robert Roebling
6d9713540d New menu code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-15 20:19:20 +00:00
Robin Dunn
3a12cb0a94 Give wxGauge a best size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-10 01:15:30 +00:00
Julian Smart
73bb677607 Improved wxTreeCtrl tooltip processing performance (causing
major delays in processing button clicks)
Added wxFULL_REPAINT_ON_RESIZE as default for wxStatusBar
on wxGTK since otherwise there are display problems.
Similarly for wxGrid.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 17:28:36 +00:00
Robert Roebling
4f85606724 Added wxToggleBitmapButton (it compiles).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 16:46:36 +00:00
Mattia Barbon
584ad2a32f Added some missing STL-like wxArray/wxArrayString constructors.
Added helper class wxCArrayString, better replacement for
wxArrayString::GetStringArray.
  Added overloaded constructors and Create() methods taking
a wxArrayString for wxCheckListBox, wxChoice, wxComboBox,
wxListBox, wxRadioBox, wxSingleChoiceDialog, wxMultipleChoiceDialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 18:21:45 +00:00
Robin Dunn
9add93670b wxMenu::Append (and similar) now return a pointer to the wxMenuItem
that was added.  Checked on MSW, GTK, and Mac, other port authors
please double check changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 18:46:05 +00:00
Vadim Zeitlin
f8f9ec5563 implemented SetSelection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 15:20:34 +00:00
Vadim Zeitlin
279b5e2ece implemented HitTest() (modified patch 875957)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 14:47:19 +00:00
Julian Smart
aad6765cbd Applied patch [ 828303 ] Slight wxColour cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 10:10:40 +00:00
Robin Dunn
e8e24dfa93 Use InheritAttributes for wxGTK widgets so they will check
ShouldInheritColours.  Set wxButton to not inherit colours.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-03 03:24:47 +00:00
Vadim Zeitlin
45bbbc5430 use #if WXWIN_COMPAT and not #ifdef (patch 826160)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-18 23:22:11 +00:00
Vadim Zeitlin
4e6b83091a added CreateByName(), use it in wxColourDatabase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-17 17:39:28 +00:00
Robert Roebling
783da8450c Added wxBitmap::Rescale() from 2_4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-09 20:01:49 +00:00
Robin Dunn
bfe3577625 Added a const to be consistent with the generic class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-02 16:51:36 +00:00
Vadim Zeitlin
cc70081166 removed Initialized()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 15:20:28 +00:00
Vadim Zeitlin
dd435a79ed removed wxApp::Initialized() (replaced with a dummy version in wxApp itself); wxApp in wxGTK now uses wxEvtLoop too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 13:47:46 +00:00
Robin Dunn
e04fe03d0f Since wxGTK's wxGauge doesn't derive from wxGaugeBase it needs to have
an IsVertical method added too


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 20:08:25 +00:00
Vadim Zeitlin
3bf5a59b5e pointer returned by GetNativeFontInfo() is now const and must not be deleted (replaces patch 810192)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 01:23:37 +00:00
Vadim Zeitlin
3a9fa0d6b5 added wxTextCtrl::MarkDirty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 00:09:18 +00:00
Vadim Zeitlin
6f6f938f3a derive wxComboBox from wxItemContainer (via wxComboBoxBase) in wxGTK (patch 802882)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 16:31:06 +00:00
Vadim Zeitlin
1bf77ee556 use wxEventLoop in wxApp under wxMSW; factored out common code from wxX11/wxMotif/wxMGL to wxAppBase; changed wxApp::Dispatch() return type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 19:48:16 +00:00
Vadim Zeitlin
708c45a6ce return the index of the inserted/appended item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-30 23:03:07 +00:00
Mattia Barbon
789d0a3dd9 wxGTK compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 12:44:52 +00:00
Vadim Zeitlin
15aad3b938 created wxBookCtrl which will be tje base class for wxNotebook and wxListbook; moved almost all of wxNotebookBase code into it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-20 22:57:07 +00:00
Vadim Zeitlin
596f1d1160 renamed wxWindow::Clear() to ClearBackground() for wxGTK as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 16:47:43 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Václav Slavík
85f582bda7 wxJoystick and wxWave are now available in all Unix ports, the code was not GTK specific
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 13:50:49 +00:00
Vadim Zeitlin
5b36366c59 gave default parameters for wxBrush() ctor from wxColour (this is what is used in 99 of cases...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 20:41:48 +00:00
Vadim Zeitlin
4f53523161 gave default parameters for wxPen() ctor from wxColour (this is what is used in 99 of cases...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 19:39:34 +00:00
Vadim Zeitlin
6f12c2c955 load any files, not only XPMs, in wxIcon(wxIconLocation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 12:21:22 +00:00
Mattia Barbon
b5f6b52ab3 Compilation fix for !WXWIN_COMPATIBILITY_2_4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 19:32:44 +00:00
Vadim Zeitlin
f74172ab42 extracted common code into a single wxfileDialogBase class (patch 758901)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 17:22:05 +00:00
Julian Smart
955a919785 Rationalised OnIdle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 08:41:08 +00:00
Vadim Zeitlin
f9dae7798b added wxTB_HORZ_TEXT (patch 713813); documented it; moved toolbar styles to toolbar.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 10:53:00 +00:00
Vadim Zeitlin
30ed6e5c89 GetClientData(int n) should be const (part of patch 649438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 21:55:04 +00:00
Vadim Zeitlin
997176a346 added missing #include <wx/defs.h> (parts of patch 649438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 21:48:53 +00:00
Julian Smart
e39af974ef - Moved wxApp::SendIdleEvents and wxApp::ProcessIdle into common code.
- wxWindow::OnInternalIdle is now used in all ports, and ensures that
  user OnIdle events do not interfere with crucial internal processing.
- wxWindow::UpdateWindowUI is now a documented function that
  sends wxUpdateUIEvents, and can be overridden. It has a helper function
  DoUpdateWindowUI for taking appropriate wxUpdateUIEvent action.
- Added functions to wxUpdateUIEvent: Set/GetMode, Set/GetUpdateInterval,
  CanUpdate, to assist with optimising update event frequency.
- Added functions to wxIdleEvent: Set/GetMode, CanSend, to
  determine whether a window should receive idle events.
- Added wxWS_EX_PROCESS_IDLE, wxWS_EX_PROCESS_UI_UPDATES window
  styles for use with conservative idle and update event modes.
- wxMSW and wxGTK now send menu update events only when a menu is
  about to be used.
- Added WM_INITMENU processing instead of WM_ENTERMENULOOP, or
  accelerators don't always get called since menu items may still
  be disabled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 10:15:21 +00:00
Robert Roebling
3a97d2db67 Upported mouse click detection change for wxChoice.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 11:18:42 +00:00
Vadim Zeitlin
70dc287a39 removed wxFunction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 12:19:10 +00:00
Vadim Zeitlin
abca8ebff1 small wxGTK compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 20:33:30 +00:00
Vadim Zeitlin
55e90a2ea9 added empty Init/CleanUpStandardHandlers() for compatibility with the other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 20:11:23 +00:00