Vadim Zeitlin
5d4c2acaca
Update printing sample to compile again after r68026.
...
The sample was using Initialize() overload that doesn't exist any longer, use
InitializeWithModality() instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-23 08:02:12 +00:00
Vadim Zeitlin
6aacfc7320
Allow showing the print preview frame non modally.
...
Still show the print preview app modally by default, i.e. disabling all the
other windows, but also allow disabling only the preview parent or nothing at
all.
Closes #13108 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-26 22:57:27 +00:00
Dimitri Schoolwerth
4c51a665c6
Fixed various typos.
...
Applied patch by snowleopard2 fixing a bunch of typos such as misspellings and double words in the documentation. Combined the patch with some local queued typos waiting to be committed as well as adding new typo fixes inspired by the patch.
Function names with American spelling were not changed nor was third-party code touched. The only code changes involve some changes in strings that are translated ("Can not" -> "Cannot").
Closes #13063 (again).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-22 14:17:38 +00:00
Vadim Zeitlin
18f42b94df
Remove calls to wxApp::SetTopWindow() from the samples and documentation.
...
It is definitely not necessary to call SetTopWindow() when there is only a
single top level window and it is arguable whether it's useful to do it even
when there are many of them so don't encourage its use in the documentation
and also remove all its occurrences from the samples.
Closes #12816 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-02 22:05:14 +00:00
Vadim Zeitlin
3cb332c155
Remove unnecessary mondrian.{ico,xpm} files from samples directory.
...
Standardize on using sample.rc and sample icon in all the samples, it was
confusing that some of them used it and other didn't, without any apparent
logic.
Remove the now unnecessary icon files, including the dialogs sample icon which
seemed to be corrupted (this closes #11146 ).
Also replace multiple OS/2 resource files with a single one in the sample
directory. The OS/2 projects/makefiles would need to be updated to use them.
Remove dialogs sample icon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:42:33 +00:00
Jaakko Salli
17c02cc8e6
Make text drawn by wxGraphicsContext slightly less intrusive
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-13 08:36:37 +00:00
Jaakko Salli
8371a35340
Added wxGraphicsContext::Create(const wxEnhMetaFileDC& dc) so that wxPrintPreview can work with wxMSW's wxGraphicsContext ( closes #12028 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-13 08:22:36 +00:00
Jaakko Salli
a29df06231
Make text printed by wxGraphicsContext shorter
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-10 14:16:07 +00:00
Jaakko Salli
a5e40d85a4
Use wxGraphicsContext to draw some text and a rectangle around it (so that GetTextExtent() can be verified to work correctly)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-10 14:14:35 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
43b2d5e7c3
Put braces around all calls to wxLogFunctions() inside an if statement.
...
This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 16:47:54 +00:00
Kevin Ollivier
5f05e51454
Mac -> OSX header change.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-13 17:22:31 +00:00
Francesco Montorsi
48ed4a8971
revise all code; do not use many global objects; use wxLog to give errors/messages; put drawing code in a wxApp member; get rid of old code; fix indentation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 11:54:16 +00:00
Francesco Montorsi
4b905cbcb6
build fix (the sample uses an undocumented function of wxFont)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 19:32:23 +00:00
Robert Roebling
0b822969a6
Added new wxGraphicsContext:Create( wxPrinterDC ) instead of wxDC:CreateGraphicsContext
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-28 20:39:57 +00:00
Robert Roebling
0286bbe9b3
wxCairoGraphics need a font event without drawing text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-25 18:53:02 +00:00
Robert Roebling
7e38ae608c
Some testing code for wxGraphicsContext printing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-25 18:50:27 +00:00
Robert Roebling
da249bc359
First update patch for GTK+ print
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-13 12:23:39 +00:00
Václav Slavík
6f207e6699
compilation fixes for --disable-compat28
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 13:01:19 +00:00
Vadim Zeitlin
45e6e6f8ab
call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Vadim Zeitlin
d5eaa19fdf
don't set A4 paper size, use the system default instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-17 01:54:48 +00:00
Julian Smart
f415cab9ef
Robert Lang's patch [ 1583183 ] Fixes printing/print preview inconsistencies
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 13:07: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
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
Robert Roebling
3d7cfc2fe6
Added some more test to the printing sample
...
EllipticArc, Arc, Spline, Polygon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-24 15:37:35 +00:00
Julian Smart
70949ed554
25.4 mm to the inch, not 25.1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-24 11:44:51 +00:00
Robert Roebling
4843cdfe0f
Made gnome printing stuff return wxPRINT_CANCELLED if
...
it has been canceled.
Moved the FORCE_LINK code from app.cpp to the sample
as I cannot find the right place for it. We'd need
an empty extrya file for ADV lib only for that.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 22:16:41 +00:00
Robin Dunn
1db4e8dd8d
Use wxTRANSPARENT_BRUSH so the rectangles around the text is not
...
filled in.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 01:04:54 +00:00
Włodzimierz Skiba
abc2a4ccec
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-06 17:35:00 +00:00
Robert Roebling
cac7ac30cb
Added support for DrawEllipse and pen styles to
...
GNOME printing. Added test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-27 12:50:01 +00:00
Robert Roebling
7b25d8e7bd
Adapted printing samples makefiles.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-01 23:07:49 +00:00
Robert Roebling
b45dfd0a8b
Moved the wxPageSetupDialogData <-> native conversion
...
code for MSW to the appropriate file in src/msw/printdlg.cpp
Removed the now obsolete printer setup dialog code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 23:43:41 +00:00
Włodzimierz Skiba
925e9792d3
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:54:57 +00:00
Włodzimierz Skiba
8520f1374c
Fixes for wxUSE_STATUSBAR.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-19 15:36:01 +00:00
Włodzimierz Skiba
8afa4fde3a
Warning removal.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 20:02:19 +00:00
Julian Smart
be5a51fb59
More name changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Dimitri Schoolwerth
9134af5b50
made font a non-pointer; code cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-11 19:44:06 +00:00
Robert Roebling
77efa6a8fc
Minor changes to printing sample.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 12:41:01 +00:00
Mattia Barbon
600683ca05
Fixed all remaining samples/Unicode compilation errors.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-15 17:25:36 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Julian Smart
316df2f209
Removed an old email address
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-19 10:03:20 +00:00
Robert Roebling
eba330067e
Removed all deprecated printing code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 16:29:05 +00:00
Robert Roebling
92980e9076
Changed wxStat, wxAccess and wxOpen to no longer
...
being just a define so that the signature is
using wxChar under Unicode under Unix just as
it does under Unicode under Mac. This required
some modification in various places, but should
make debugging a little easier, among others.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 21:44:50 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Robert Roebling
3d2d8da1d8
Implemented MSW's paint region clipping, but
...
it exposed some bug in GTK's guffaw stuff.
Implmented GC pooling.
Implemented Corrcet mixing of pain region clipping,
user clipping and masked bitmap clipping.
Minor other corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 14:16:32 +00:00
Julian Smart
6adaedf0fc
Made various Motif fixes, wxListBox/wxChoice derive from wxControlWithItems,
...
added release.txt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-08 14:53:39 +00:00
Václav Slavík
d57bf68500
added GetTextExtent test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-04 09:18:00 +00:00
Julian Smart
7bcb11d307
Many changes to the printing classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 23:06:01 +00:00
Julian Smart
ad813b00d5
Some stubs corrections; Motif corrections incl. busy cursor fix; doc corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 08:02:28 +00:00
Julian Smart
e306597309
Removed lots of OnClose functions; doc'ed OnCloseWindow better;
...
MM_... -> wxMM_...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 23:55:04 +00:00