void MakeDialog::OnBtnDefault(wxCommandEvent&)
{
+ this->cbDir->SetValue(((MainFrame *) this->GetParent())->conf.Read(wxT("DefaultPath"), wxEmptyString));
}
void MakeDialog::OnBtnDesktop(wxCommandEvent&)
class MainFrame: public wxFrame {
public:
- wxStatusBar* statusbar;
- wxTreeCtrl* tree_ctrl;
- myListCtrl* list_ctrl;
+ wxTreeCtrl * tree_ctrl;
+ myListCtrl * list_ctrl;
ArrayTPI_FILEINFO fileinfo;
TPIHandle tpi;
+ wxFileName fnArchive;
+ wxFileConfig conf;
wxString szCurrentPath;
wxCmdLineParser cmdLine;
- wxFileName fnArchive;
// Event handler.
void OnInit( wxInitDialogEvent&);
~MainFrame();
protected:
- wxMenuBar* menubar;
- wxToolBar* toolbar;
- wxSplitterWindow* window_splitter;
+ wxMenuBar * menubar;
+ wxToolBar * toolbar;
+ wxStatusBar * statusbar;
+ wxSplitterWindow * window_splitter;
wxTextCtrl * tcFilter;
- wxFileConfig conf;
DECLARE_EVENT_TABLE()
};