1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : importfilesbasedlg.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
26
///////////////////////////////////////////////////////////////////////////
27
// C++ code generated with wxFormBuilder (version Mar 19 2008)
28
// http://www.wxformbuilder.org/
30
// PLEASE DO "NOT" EDIT THIS FILE!
31
///////////////////////////////////////////////////////////////////////////
33
#include "importfilesbasedlg.h"
35
///////////////////////////////////////////////////////////////////////////
37
ImportFilesBaseDlg::ImportFilesBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
39
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
42
bSizer1 = new wxBoxSizer( wxVERTICAL );
44
m_mainPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
45
wxBoxSizer* panelSizer;
46
panelSizer = new wxBoxSizer( wxVERTICAL );
48
m_staticText1 = new wxStaticText( m_mainPanel, wxID_ANY, wxT("Select Directory to import:"), wxDefaultPosition, wxDefaultSize, 0 );
49
m_staticText1->Wrap( -1 );
50
panelSizer->Add( m_staticText1, 0, wxALL, 5 );
53
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
55
m_textCtrlDirPath = new wxTextCtrl( m_mainPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56
bSizer4->Add( m_textCtrlDirPath, 1, wxALL|wxEXPAND, 5 );
58
m_buttonBrowse = new wxButton( m_mainPanel, wxID_ANY, wxT("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
59
bSizer4->Add( m_buttonBrowse, 0, wxALL, 5 );
61
panelSizer->Add( bSizer4, 0, wxEXPAND, 5 );
63
m_staticText2 = new wxStaticText( m_mainPanel, wxID_ANY, wxT("Files Mask:"), wxDefaultPosition, wxDefaultSize, 0 );
64
m_staticText2->Wrap( -1 );
65
panelSizer->Add( m_staticText2, 0, wxALL, 5 );
67
m_textCtrlFileMask = new wxTextCtrl( m_mainPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
68
panelSizer->Add( m_textCtrlFileMask, 0, wxALL|wxEXPAND, 5 );
70
m_checkBoxNoExtFiles = new wxCheckBox( m_mainPanel, wxID_ANY, wxT("Import files without extension"), wxDefaultPosition, wxDefaultSize, 0 );
71
m_checkBoxNoExtFiles->SetValue(true);
73
panelSizer->Add( m_checkBoxNoExtFiles, 0, wxALL, 5 );
75
m_mainPanel->SetSizer( panelSizer );
76
m_mainPanel->Layout();
77
panelSizer->Fit( m_mainPanel );
78
bSizer1->Add( m_mainPanel, 1, wxEXPAND | wxALL, 5 );
80
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
81
bSizer1->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
84
btnSizer = new wxBoxSizer( wxHORIZONTAL );
86
m_buttonOK = new wxButton( this, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
87
m_buttonOK->SetDefault();
88
btnSizer->Add( m_buttonOK, 0, wxALL, 5 );
90
m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
91
btnSizer->Add( m_buttonCancel, 0, wxALL, 5 );
93
bSizer1->Add( btnSizer, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
95
this->SetSizer( bSizer1 );
98
this->Centre( wxBOTH );
101
m_buttonBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnBrowse ), NULL, this );
102
m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnButtonOK ), NULL, this );
103
m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnButtonCancel ), NULL, this );
106
ImportFilesBaseDlg::~ImportFilesBaseDlg()
109
m_buttonBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnBrowse ), NULL, this );
110
m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnButtonOK ), NULL, this );
111
m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ImportFilesBaseDlg::OnButtonCancel ), NULL, this );