Vadim Zeitlin
8a16d7370e
The Great wxRegion Refactoring:
...
1. added wxRegionBase class and derive all wxRegions from it
2. also added wxRegionWithCombine for the ports providing Combine() method
(MSW, OS2 and Mac) to reduce code duplication further
3. made sure region comparison works the same way in all ports (except those
not implementing it) and added IsEqual() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 11:47:23 +00:00
Vadim Zeitlin
aea95b1c3a
removed overloaded virtual InitWith() methods, keep just a single InitRGBA()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 02:00:24 +00:00
Vadim Zeitlin
d3c7fc996a
mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Vadim Zeitlin
7106497983
added alpha support to wxCocoa, also fixed compilation after alpha changes hopefully
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-28 09:53:33 +00:00
Vadim Zeitlin
2158f4d798
moved all wxDialog event handlers to wxDialogBase to avoid code duplication
...
(sixplication?) among ports; as a side effect added public wxDialog methods to
wxDialogBase as well and moved EndDialog() (previously implemented by wxMSW,
wxMotif, wxMac and wxCocoa but not the other ports) to wxDialogBase too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 22:56:11 +00:00
Stefan Csomor
747592e7cb
making cocoa build again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 13:10:46 +00:00
Vadim Zeitlin
85ab460e7d
miscellaneous wxFont enhancements (patch 1496606):
...
- made SetFaceName() bool and return false if the face name is not available
- corrected To/FromUserString() to complement each other
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 00:03:36 +00:00
Vadim Zeitlin
ff3e84ffdc
File/dir dialog styles and other changes (patch 1488371):
...
- check invalid combinations of styles in wxFileDialogBase::Create()
- use wxFD_XXX naming convention for wxFileDialog styles
- replaces wxDD_NEW_DIR_BUTTON with wxDD_DIR_MUST_EXIST
- removes #ifdef __WXGTK24__ / #endif blocks from wxGTK code
- removes wxFileDialogBase::Get/SetStyle and wxFileDialogBase::m_fileName
- renames wxDirDialogGTK to wxDirDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 23:32:12 +00:00
Vadim Zeitlin
141d782d56
misc fixes for wxDirDialog; new wxDD_CHANGE_DIR flag (patch 1478051)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 20:10:11 +00:00
Robert Roebling
b50747ea53
Trying to commit wxDirDialog patch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-30 09:44:29 +00:00
Włodzimierz Skiba
40989e46b8
[ 1473731 ] 'wxColourBase and wxString <-> wxColour implementation' with minor modifications and rebaked build files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-24 14:52:23 +00:00
Paul Cornett
900ca9b89a
remove unneeded gdiobj.h files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-20 16:47:15 +00:00
Włodzimierz Skiba
1c067fe3c1
Removed every usage of obsolete wxTLW flags. 2.6 compatibility markup for them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 18:07:22 +00:00
Włodzimierz Skiba
7a952d4cbd
More null virtuals in wxRadioBoxBase (see: 'Developers_Notebook-Incomplete-API' in wxWiki)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-24 22:50:51 +00:00
Vadim Zeitlin
aa61d35253
replaced all int/size_t indices in wxControlWithItems API with unsigned int (committing on behalf of ABX)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-23 22:05:23 +00:00
Vadim Zeitlin
ef1717a963
wxDisplay cleanup/rewrite:
...
- wxDisplay is now a concrete class and uses a pImpl-based design
- got rid of four duplicate but subtly different versions of trivial
single display-only wxDisplay implementation (but 2 versions of Mac
Classic and Mac CoreGraphics implementations each still remain...)
- assorted code simplifications and memory leaks fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-16 04:23:07 +00:00
Włodzimierz Skiba
8228b8932a
Line-up interfaces to use size_t for GetCount()s (and count related api).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 19:44:45 +00:00
Vadim Zeitlin
937f314d3f
native implementation of wxDirDialog for wxCocoa (patch 1403780)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 15:30:52 +00:00
Vadim Zeitlin
31e57091f2
non virtual dtors warning fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 15:10:23 +00:00
Vadim Zeitlin
f8855e4725
great copy ctor/assignment operators cleanup by Paul Cornett (patch 1307665)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 00:51:23 +00:00
Mart Raudsepp
63ec432bd7
Move constant strings to .rodata/.data.rel.ro ELF segment from .data by making them really const.
...
If any more exotic toolchain decides to not export these strings into the core library anymore, let me know. Try to
compile the notebook sample, for example.
TODO: Move strings not meant for wxCore out of wxCore to the appropriate library.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 14:59:55 +00:00
Vadim Zeitlin
21e0a4d5f1
1. moved m_majorDim duplicated in many ports to wxRadioBoxBase
...
2. also implement Getcolumn/RowCount() in it now and document them
3. removed various remains of old (pre-wxRadioBoxBase) cruft
sorry in advance for any compilation breakage on the platforms I can't test on
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-30 16:28:15 +00:00
Włodzimierz Skiba
2a2d7a737d
Missing commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-10 12:49:02 +00:00
Włodzimierz Skiba
b0b4386b6e
Missing commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-10 12:42:02 +00:00
Włodzimierz Skiba
8d8d36335c
Get/SetTitle only for wxTopLevelWindow (wxCocoa part).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-08 16:02:07 +00:00
David Elliott
ae999b11ec
Remove sm_cocoaDelegate singleton. We need per-instance data anyway so we
...
may as well make it the target instead of the userInfo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-18 16:02:51 +00:00
Włodzimierz Skiba
edc536d358
wxColour source cleaning. Corrections to 'const unsigned char' within wxColour docs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-05 16:22:44 +00:00
Włodzimierz Skiba
1a1498c08b
Fix for mistake with const for non pointer/reference with corrections in documentation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-04 18:14:41 +00:00
Włodzimierz Skiba
46562151eb
wxBrush::SetColour and wxPen::SetColour unified. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-04 16:13:42 +00:00
Włodzimierz Skiba
853dcc57c6
wxItemContainerImmutable::FindString unified.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-27 16:54:43 +00:00
David Elliott
3b60ea2f22
Make wxToolBar accept first mouse clicks. That is, clicking on a toolbar
...
tool when the window is inactive will both activate the window and cause
the tool to be clicked.
TODO: User should be provided a way to override this behavior. The Apple HIG
are basically that "dangerous" tools (like delete) should not function
on an inactive window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 16:20:57 +00:00
David Elliott
acb96ac277
Add EndDialog helper which calls EndModal with the given return code if the
...
dialog is modal, and Show(false) if the dialog is not modal. This allows
the default handlers for OK and Cancel to function without assertions.
This code is copied more or less directly from src/msw/dialog.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 15:42:42 +00:00
Michael Wetherell
20ceebaa87
Fixes for include guards, patch 1256967 Paul Cornett
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 20:49:40 +00:00
Vadim Zeitlin
fbfb8bcc3f
added missing consts and pass objects by const reference instead of by value (patch 1205869)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
David Elliott
c05e07cb8c
Added Cocoa_acceptsFirstMouse.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 15:27:42 +00:00
David Elliott
3d012d1bf1
Added Cocoa_canBecomeKeyWindow.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 15:24:29 +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
David Elliott
070b7b8510
Set m_cocoaDataSource = NULL in default constructor so subclasses that
...
don't call our Create function (e.g. wxCheckListBox) don't crash on destruction.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-18 03:39:46 +00:00
Ryan Norton
d803176a8e
implement label setting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 00:49:43 +00:00
Ryan Norton
4930046b96
compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-19 03:41:43 +00:00
Vadim Zeitlin
1d39019c67
compilation fix: use wxSB_HORIZONTAL/VERTICAL instead of wxSL_XXX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-16 14:10:24 +00:00
David Elliott
4508c2b01b
GCC 4.0 (Apple 4059) is a little bit pickier than 3.3.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-23 05:51:15 +00:00
Vadim Zeitlin
0d97c09023
added orient parameter to wxMDIParentFrame::Tile()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 12:27:49 +00:00
Vadim Zeitlin
a6f96659c3
compilation fix after last commit (missing semicolon added)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-20 11:01:08 +00:00
Vadim Zeitlin
294ea16de3
implemented wxMenuBar ctor taking array of menus/titles for all ports; added optional flags argument to it (patch 1162726)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:45:24 +00:00
Vadim Zeitlin
1de1196ab3
gave default value of wxID_ANY to id parameter of wxStaticLine ctor as nobody uses anything else for it anyhow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-11 02:13:30 +00:00
Vadim Zeitlin
5dd070c25b
extracted platform-specific code to determine static box borders to wxStaticBox::GetBordersForSizer()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 23:37:15 +00:00
Włodzimierz Skiba
789f679516
Linup API of wxRadioBox::Show on all ports. Move wxRadioBox::IsValid from wxUniversal to base class (+ GTK which do not use base class) and use it where applicable. Minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-23 16:39:25 +00:00
Włodzimierz Skiba
1a87edf286
Consistent wxWindow::Enable with wxRadioBox::Enable for control and its items. wxRadioBox of PalmOS. Little source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 21:02:41 +00:00
Ryan Norton
8f248607e5
ComboBox for cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-17 04:45:13 +00:00