Vadim Zeitlin
|
4c7d530a26
|
don't use wxScopedPtr<> in wxDocTemplate::CreateDocument() as the document is implicitly deleted by InitDocument() if its initialization fails; try to explain the (complex and inconsistent) rules for deleting the document in the manual
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-09 19:40:49 +00:00 |
|
Vadim Zeitlin
|
3a393f8a52
|
PCH-less build fix after r59452
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-09 19:29:07 +00:00 |
|
Vadim Zeitlin
|
7339d7bda1
|
don't leak memory if exceptions are thrown during a new wxDocument creation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-09 18:45:35 +00:00 |
|
Vadim Zeitlin
|
0b108d1006
|
don't call neither OnSaveModified() nor Modify(false) from On{New,Open}Document(): these methods are only ever called for the new wxDocument object which should never be saved, even if they're marked as modified by the user-defined document creation code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-09 18:13:04 +00:00 |
|
Vadim Zeitlin
|
a9e2e6e52b
|
refactor wxDocChildFrame and wxDocMDIChildFrame to use wxDocChildFrameAny intead of duplicating its code (with subtle differences, as usual); also added wxDocChildFrameAnyBase and store a pointer to it in wxView to reset the frame view if the view is being deleted because its creation fails to avoid crashes in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-02-27 12:24:03 +00:00 |
|
Vadim Zeitlin
|
8cc208e39f
|
deprecate the old TryValidator/Parent() and replace them with the new and documented TryBefore/After()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-02-26 16:16:31 +00:00 |
|
Vadim Zeitlin
|
664e13143e
|
renamed wx/ptr_shrd.h to wx/sharedptr.h; split wx/ptr_scpd.h in wx/scopedptr.h and wx/scopedarray.h; extracted common parts into new wx/checkeddelete.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-02-03 12:01:46 +00:00 |
|
Vadim Zeitlin
|
575e4cd670
|
don't fall back to the only currently existing document in wxDocManager::GetCurrentView() as it breaks activation logic (#9518)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-29 13:04:40 +00:00 |
|
Vadim Zeitlin
|
89d94e046d
|
no real changes, just minor refactoring and cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-29 12:52:17 +00:00 |
|
Vadim Zeitlin
|
4f57a7bfcd
|
don't use the not always appropriate word "document" in the save prompt (#10076)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-25 14:41:59 +00:00 |
|
Vadim Zeitlin
|
d8efd2198f
|
added wxStandardPaths::GetAppDocumentsDir() and use it by default for loading/saving documents in wxDocManager
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-21 14:01:30 +00:00 |
|
Francesco Montorsi
|
84cae69a8b
|
call event.Enable(true) in OnUpdateFileOpen and OnUpdateFileNew only if there are templates in the doc manager (closes #10163)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-14 15:25:05 +00:00 |
|
Francesco Montorsi
|
00e3ea1c6f
|
minor cleanup; add wxDocument::OnChangeFilename for coherence with wxView::OnChangefilename; avoid some (small) code duplication; closes #10080
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-09 16:13:49 +00:00 |
|
Francesco Montorsi
|
9690b00654
|
always remember to test IsOk() after using wxFileInputStream
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-08 18:26:35 +00:00 |
|
Francesco Montorsi
|
bd365871aa
|
s/wxSplitPath/wxFileName::SplitPath
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-07 01:47:47 +00:00 |
|
Francesco Montorsi
|
47d281e6b7
|
deprecate wxDos2UnixFilename, wxUnix2DosFilename, wxStripExtension, wxGetTempFileName, wxExpandPath, wxContractPath, wxRealPath, wxCopyAbsolutePath, wxSplitPath and provide deprecation description in the docs (for the documented functions) or directly in the header (for undocumented functions)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-07 01:29:54 +00:00 |
|
Vadim Zeitlin
|
7047d7981f
|
handle exceptions thrown from overridden wxView::OnCreate() gracefully
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-12-30 16:36:39 +00:00 |
|
Vadim Zeitlin
|
de56f24082
|
added wxDocument::AlreadySaved() and use it in OnUpdateFileSave() to ensure that the "Save" menu item is enabled for new documents, even although they're not modified yet (otherwise the standard Ctrl-S key doesn't work in this case which is pretty annoying)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-10-29 16:23:25 +00:00 |
|
Vadim Zeitlin
|
838dd956a4
|
fix assert when adding an entry to an already full file history (closes #10118)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-10-29 16:04:06 +00:00 |
|
Vadim Zeitlin
|
b54129836c
|
add a more readable wrapper for CreateDocument(wxEmptyString, wxDOC_NEW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-10-01 17:04:43 +00:00 |
|
Vadim Zeitlin
|
c09b7217f6
|
don't test for both stream.fail() and stream.bad() as the latter implies the former; also use operator!() instead of fail() to make it more clear what's going on
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-09-25 16:50:48 +00:00 |
|
Vadim Zeitlin
|
e58eaff761
|
specify the file name in IO errors messages; also make Do{Open,Save}Document() use the same logic flow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-09-25 16:27:22 +00:00 |
|
Vadim Zeitlin
|
bba5e72ad3
|
hook the docview-specific customization of event handling logic at TryValidator() level instead of ProcessEvent(): this ensures that the events are not sent to wxApp before they're passed to all the handlers which might process them (before the events were passed to wxDocument and then immediately to wxApp)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-09-22 00:33:11 +00:00 |
|
Vadim Zeitlin
|
c6e4d276a3
|
don't call OnCloseDocument() from OnNewDocument(), this plainly doesn't make sense (#1508)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-07 12:17:52 +00:00 |
|
Vadim Zeitlin
|
c77049a04b
|
general docview.cpp code cleanup; use wxVector<> instead of manually-allocated arrays; refactor wxDocManager::CreateDocument() and allow using wxDOC_SILENT with wxDOC_NEW; cleanup wxFileHistory code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-04 00:37:00 +00:00 |
|
Stefan Csomor
|
26eef30437
|
OSX regrouping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-29 19:47:40 +00:00 |
|
Vadim Zeitlin
|
9c8116f8f7
|
take const wxConfig object in wxDocManager::FileHistoryLoad() and wxFileHistory::Load() (patch 1942316)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-05-11 20:32:35 +00:00 |
|
Vadim Zeitlin
|
07f87b6b2e
|
don't fail in wxTransferStreamToFile if file size is exact multiple of 4KB (bug 1835918)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-26 23:23:09 +00:00 |
|
Julian Smart
|
e0214f1f25
|
Don't ignore path when prompting for file in SaveAs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-09 14:56:22 +00:00 |
|
Julian Smart
|
f6fe9f9c00
|
Made dialog captions more standard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-10-24 14:17:37 +00:00 |
|
Vadim Zeitlin
|
9cf3d21870
|
added wxApp::Set/GetAppDisplayName() (patch 1780414)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-09 23:26:18 +00:00 |
|
Václav Slavík
|
968454db03
|
compilation fix for broken libstdc++ visibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-19 22:16:30 +00:00 |
|
Vadim Zeitlin
|
724b119a15
|
replace wxDocument::GetPrintableName(wxString&) and wxDocManager::MakeDefaultName(wxString&) with GetUserReadableName() and MakeNewDocumentName() which return wxStrings directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-16 12:49:56 +00:00 |
|
Václav Slavík
|
8650108199
|
don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-10 17:42:41 +00:00 |
|
Vadim Zeitlin
|
b4a980f4f5
|
don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-04-11 00:23:19 +00:00 |
|
Julian Smart
|
e7b21b01fe
|
Use the associated document manager, not the global one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-01-11 13:55:26 +00:00 |
|
Paul Cornett
|
ffdbfc4a76
|
remove inline from declaration of functions which are not inline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-01-01 19:49:10 +00:00 |
|
Paul Cornett
|
0c246b3ca3
|
add Create to wxDocParentFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-09-14 17:53:06 +00:00 |
|
Włodzimierz Skiba
|
949c9f74c3
|
Include wx/choicdlg.h, wx/textdlg.h and wx/filedlg.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-06-09 17:50:46 +00:00 |
|
Włodzimierz Skiba
|
59cf2e4999
|
Include wx/mdi.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-06-08 20:19:29 +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 |
|
Włodzimierz Skiba
|
246c5004eb
|
Include wx/msgdlg.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-05-25 07:07:23 +00:00 |
|
Włodzimierz Skiba
|
8ecff18117
|
Include wx/list.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-04-20 07:31:44 +00:00 |
|
Włodzimierz Skiba
|
0f30d8e39e
|
Fixed using list of wildcards in filter of wxDocTemplate.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2006-02-21 19:53:31 +00:00 |
|
Włodzimierz Skiba
|
faa49bfd39
|
Get/SetTitle only for wxTopLevelWindow (wxMSW part).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2005-11-03 16:47:29 +00:00 |
|
Michael Wetherell
|
4a10ea8b13
|
Warning fixes for win64
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2005-10-17 22:08:05 +00:00 |
|
Vadim Zeitlin
|
f1afd2e066
|
fix hiding a local variable by another one in the inner scope
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2005-09-25 22:51:07 +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 |
|
Vadim Zeitlin
|
53e2e87c9b
|
open fstream with ios::binary flag to be compatible with wxFileStream and to avoid mangling binary files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2005-08-26 22:52:29 +00:00 |
|
Vadim Zeitlin
|
28ea89b62b
|
handle '&' in the names of the files in the history correctly by quoting it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2005-07-16 23:10:46 +00:00 |
|