3
Index: 3depict-0.0.16/src/3Depict.cpp
4
===================================================================
5
--- 3depict-0.0.16.orig/src/3Depict.cpp 2014-06-03 04:15:59.421246388 +0200
6
+++ 3depict-0.0.16/src/3Depict.cpp 2014-06-03 04:16:03.689192733 +0200
13
+ MainFrame->checkShowTips();
14
+ MainFrame->checkReloadAutosave();
17
if(commandLineFiles.GetCount())
18
MainFrame->SetCommandLineFiles(commandLineFiles);
20
MainFrame->fixSplitterWindow();
22
+ MainFrame->finaliseStartup();
26
Index: 3depict-0.0.16/src/gui/mainFrame.cpp
27
===================================================================
28
--- 3depict-0.0.16.orig/src/gui/mainFrame.cpp 2014-06-03 04:15:59.421246388 +0200
29
+++ 3depict-0.0.16/src/gui/mainFrame.cpp 2014-06-03 04:16:03.693192682 +0200
31
restoreConfigDefaults();
35
- //Attempt to load the auto-save file, if it exists
37
- checkReloadAutosave();
40
//Try to set the window size to a nice size
41
SetSize(getNiceWindowSize());
47
- updateTimer->Start(UPDATE_TIMER_DELAY,wxTIMER_CONTINUOUS);
48
- autoSaveTimer->Start(AUTOSAVE_DELAY*1000,wxTIMER_CONTINUOUS);
50
#ifndef DISABLE_ONLINE_UPDATE
51
wxDateTime datetime = wxDateTime::Today();
56
+void MainWindowFrame::finaliseStartup()
58
+ updateTimer->Start(UPDATE_TIMER_DELAY,wxTIMER_CONTINUOUS);
59
+ autoSaveTimer->Start(AUTOSAVE_DELAY*1000,wxTIMER_CONTINUOUS);
62
BEGIN_EVENT_TABLE(MainWindowFrame, wxFrame)
63
EVT_GRID_CMD_EDITOR_SHOWN(ID_GRID_FILTER_PROPERTY,MainWindowFrame::OnFilterGridCellEditorShow)
64
EVT_GRID_CMD_EDITOR_HIDDEN(ID_GRID_FILTER_PROPERTY,MainWindowFrame::OnFilterGridCellEditorHide)
65
@@ -5376,6 +5374,16 @@
66
visControl.setIonDisplayLimit(configFile.getMaxPoints());
70
+ if(configFile.getWantStartupOrthoCam())
72
+ visControl.setCamProperties(visControl.getActiveCamId(),
73
+ CAMERA_KEY_LOOKAT_PROJECTIONMODE,TRANS("Orthogonal"));
77
+void MainWindowFrame::checkShowTips()
79
//Show startup tip dialog as needed
80
if(configFile.wantStartupTips())
82
@@ -5402,12 +5410,6 @@
83
WARN(false,"Tip file not found at startup, but user wanted it...");
87
- if(configFile.getWantStartupOrthoCam())
89
- visControl.setCamProperties(visControl.getActiveCamId(),
90
- CAMERA_KEY_LOOKAT_PROJECTIONMODE,TRANS("Orthogonal"));
94
void MainWindowFrame::restoreConfigPanelDefaults()
95
Index: 3depict-0.0.16/src/gui/mainFrame.h
96
===================================================================
97
--- 3depict-0.0.16.orig/src/gui/mainFrame.h 2014-06-03 04:15:59.421246388 +0200
98
+++ 3depict-0.0.16/src/gui/mainFrame.h 2014-06-03 04:16:03.693192682 +0200
100
//return type of file, based upon heuristic check
101
static unsigned int guessFileType(const std::string &file);
104
+ //Check to see if the user wants a tip file
105
+ void checkShowTips();
107
//See if the user wants to save the current state
108
void checkAskSaveState();
111
void onPanelSpectraUpdate() {plotUpdates=true;} ;
113
bool initOK() const {return initedOK;}
115
+ void finaliseStartup();
117
//This is isolated from the layout code, due to "bug" 4815 in wx. The splitter window
118
//does not know how to choose a good size until the window is shown