Paul Cornett
1d66b09982
fix MDI child sizing, which was working more or less by accident before I broke it in rev 46223
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-12 07:01:54 +00:00
Vadim Zeitlin
28fcfbfe09
added missing wxUSE_XXX checks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 23:59:42 +00:00
Paul Cornett
1529bc41dc
restructure fullscreen code dealing with hiding bars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 18:47:53 +00:00
Paul Cornett
c821db16e6
Remove unneeded wxTLW child inserter function.
...
Simplify wxFrame child inserter.
Use the same signature for all the child inserters.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 05:08:18 +00:00
Paul Cornett
e36a8aff9a
simplify client size calculation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-20 02:35:15 +00:00
Paul Cornett
949ff63e2f
simplify DoSetClientSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-19 17:34:42 +00:00
Paul Cornett
82008f15b7
replace 5 copies of size constraining code with one function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 05:22:09 +00:00
Paul Cornett
10bd1f7d3b
remove redundant GTK_WIDGET casts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 17:02:29 +00:00
Paul Cornett
a1abca322f
Reorganize idle system code.
...
Installing idle handler from GTK callbacks is no longer necessary.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 16:58:07 +00:00
Vadim Zeitlin
f4322df68b
no changes, just removed TABs/trailing spaces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 22:56:34 +00:00
Paul Cornett
8c70a78958
make sure style is set on menubar before querying its size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-14 07:19:21 +00:00
Paul Cornett
02112408ba
fix wrong parenthesizing of boolean expressions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-07 07:15:07 +00:00
Robert Roebling
9379c0d752
Make wxWindow::SetSizeHints() do nothing.
...
Make wxTLW::SetSizeHints() set the various m_minWidth etc. fields.
Override SetSizeHints() in wxGTK to call the relevant gtk funcion
only there and not in every resize.
Make GetMinWidth() etc. non-virtual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 19:17:00 +00:00
Vadim Zeitlin
7a9763046b
added wxTB_RIGHT style for right-aligned toolbars (slightly modified patch 1567469)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 19:12:52 +00:00
Robert Roebling
0fb2e8796d
Support wxFULLSCREEN_NOSTATUSBAR
...
Correct Get/SetClientSize() accordingly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-18 19:17:10 +00:00
Robert Roebling
3a8b3bd159
Support wxFULLSCREEN_NOMENUBAR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-18 19:02:29 +00:00
Paul Cornett
6ba2e1940f
don't set negative window size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-03 14:29:25 +00:00
Robert Roebling
5b2acc3a4f
[ 1550698 ] Bottom aligned toolbar
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-17 11:51:08 +00:00
Paul Cornett
c1fa6f5245
avoid null pointer dereference in DoGetClientSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 20:50:58 +00:00
Paul Cornett
6934602337
don't set negative window size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 02:42:48 +00:00
Paul Cornett
9cf7a6c06b
don't use negative windows sizes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 17:06:29 +00:00
Paul Cornett
6a8a390322
remove a few unnecessary queue_resize/queue_draw calls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 16:40:20 +00:00
Paul Cornett
b5e31cc8e2
GtkOnSize parameters aren't useful
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 16:06:47 +00:00
Robert Roebling
89579a60d7
Don't emit bogus size events if a child window
...
is inserted into a frame or dialog.
I don't know why I wrote that non-sense back
then, but wxMSW doesn't do it either.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-21 23:13:42 +00:00
Włodzimierz Skiba
3304646d06
Include wx/statusbr.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-09 09:51:39 +00:00
Włodzimierz Skiba
4e3e485bc8
Include wx/toolbar.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 17:46:13 +00:00
Włodzimierz Skiba
93fbbe0765
Include wx/control.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 10:15:44 +00:00
Włodzimierz Skiba
fdf565feca
Include wx/dialog.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-22 20:54:04 +00:00
Włodzimierz Skiba
3b3dc8019a
Include wx/menu.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 07:13:20 +00:00
Włodzimierz Skiba
ed4b0fdca6
Include wx/dcclient.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 21:51:49 +00:00
Włodzimierz Skiba
670f993563
Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Włodzimierz Skiba
93763ad5ba
wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 08:11:26 +00:00
Vadim Zeitlin
848332140b
moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private.h (patch 1435529)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 13:36:53 +00:00
Mart Raudsepp
0857d1d659
GTK2: Add a GTK_WIDGET_DRAWABLE check to the gtk_widget_draw replacement to make it call identical worker functions
...
as before, and not spew warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 02:10:53 +00:00
Mart Raudsepp
34c1f23146
GTK2: gtk_widget_draw -> gtk_widget_queue_draw + gdk_window_process_updates. Do we really want to force an immediate
...
redraw here?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:14:34 +00:00
Mart Raudsepp
9fa72bd2a6
Use g_signal* instead of deprecated gtk_signal*. Use proper casts for the arguments.
...
Worth norting from the GTK+ docs: "For future usage, direct use of the GSignal API is recommended, this avoids
significant performance hits where GtkArg structures have to be converted into GValues."
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 23:28:58 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
0a164d4c4e
[1231183] 'cleanup: mismatched indentation' and other cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 18:01:46 +00:00
Włodzimierz Skiba
91af089567
Second part of '[ 1216148 ] cleanup: unused variables and declarations'.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 14:49:36 +00:00
Vadim Zeitlin
865bb3251e
GTK+ callbacks must have C linkage (patch 1157384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:42:26 +00:00
Robert Roebling
e1bf3ad3e8
Applied patch to reorder includes. Not the most
...
important patch in the world, but still.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-03 21:13:28 +00:00
Chris Elliott
e5894d192c
fix for gtk/mdi when changing menubars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 11:34:38 +00:00
Vadim Zeitlin
fbbc1982a3
fixed typo in wxFrame::SetStatusBar() (bug 970516)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-10 16:50:31 +00:00
Julian Smart
e4edaf5cec
Give controls on frame statusbar a chance to paint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-06 07:06:53 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +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
02a8e64ca3
really show the menubar (calling Show(TRUE) doesn't do it any more)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:41:27 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46: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