Show UI before opening any file
This commit is contained in:
parent
00d8e7783f
commit
89f25edc5d
|
@ -3,6 +3,7 @@
|
|||
+ x64 installation package
|
||||
+ Supported HTTPS on validation
|
||||
* Auto complete list for DTDs that are on the internet
|
||||
* Show UI before opening any file
|
||||
* Fixed tab order
|
||||
* Fixed encoding problems
|
||||
* Fixed invisible captions in high contrast mode (Windows only, http://trac.wxwidgets.org/ticket/16186)
|
||||
|
|
|
@ -387,6 +387,13 @@ bool MyApp::OnInit()
|
|||
singleInstanceCheck,
|
||||
lang );
|
||||
frame->Show ( true );
|
||||
|
||||
bool rememberOpenTabs = config->Read ( _T ( "rememberOpenTabs" ), true );
|
||||
if ( rememberOpenTabs )
|
||||
frame->openRememberedTabs();
|
||||
else if ( !frame->getHandleCommandLineFlag() )
|
||||
frame->newDocument ( wxEmptyString );
|
||||
|
||||
if ( frame->getHandleCommandLineFlag() )
|
||||
frame->handleCommandLine();
|
||||
}
|
||||
|
@ -1033,21 +1040,10 @@ MyFrame::MyFrame (
|
|||
// handle command line and, on Windows, MS Word integration
|
||||
handleCommandLineFlag = ( wxTheApp->argc > 1 ) ? true : false;
|
||||
|
||||
if ( rememberOpenTabs && !openTabsOnClose.empty() )
|
||||
openRememberedTabs();
|
||||
else
|
||||
{
|
||||
if ( !handleCommandLineFlag )
|
||||
newDocument ( wxEmptyString );
|
||||
}
|
||||
|
||||
#ifdef __WXMSW__
|
||||
DragAcceptFiles ( true ); // currently Windows only
|
||||
#endif
|
||||
|
||||
XmlDoc *doc = getActiveDocument();
|
||||
insertEntityPanel->update ( doc ); // NULL is ok
|
||||
|
||||
manager.Update();
|
||||
|
||||
/*
|
||||
|
|
|
@ -353,6 +353,7 @@ class MyFrame : public wxFrame
|
|||
bool activateTab ( const wxString& fileName );
|
||||
void reloadTab();
|
||||
void addToFileQueue ( wxString& fileName );
|
||||
void openRememberedTabs();
|
||||
private:
|
||||
wxAuiManager manager;
|
||||
wxFileConfig *config; // owned by MyApp
|
||||
|
@ -536,7 +537,6 @@ class MyFrame : public wxFrame
|
|||
void showTopBars ( bool b );
|
||||
void modifiedMessage();
|
||||
void loadBitmaps();
|
||||
void openRememberedTabs();
|
||||
void getRawText ( XmlDoc *doc, std::string& buffer );
|
||||
void updateToolbar();
|
||||
std::string getApproximateEncoding ( char *docBuffer, size_t docBufferLen );
|
||||
|
|
Loading…
Reference in New Issue