~ubuntu-branches/ubuntu/karmic/codelite/karmic-backports

« back to all changes in this revision

Viewing changes to LiteEditor/importfilesbasedlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Backport
  • Date: 2010-03-10 00:42:25 UTC
  • mfrom: (10.1.3 lucid)
  • Revision ID: james.westby@ubuntu.com-20100310004225-ccjgjj2vvdy4q7qs
Tags: 2.2.0.3681+dfsg-0ubuntu1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////////
2
 
//////////////////////////////////////////////////////////////////////////////
3
 
//
4
 
// copyright            : (C) 2008 by Eran Ifrah                            
5
 
// file name            : importfilesbasedlg.cpp              
6
 
//                                                                          
7
 
// -------------------------------------------------------------------------
8
 
// A                                                                        
9
 
//              _____           _      _     _ _                            
10
 
//             /  __ \         | |    | |   (_) |                           
11
 
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
12
 
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
13
 
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
14
 
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
15
 
//                                                                          
16
 
//                                                  F i l e                 
17
 
//                                                                          
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.                                   
22
 
//                                                                          
23
 
//////////////////////////////////////////////////////////////////////////////
24
 
//////////////////////////////////////////////////////////////////////////////
25
 
 
26
 
///////////////////////////////////////////////////////////////////////////
27
 
// C++ code generated with wxFormBuilder (version Mar 19 2008)
28
 
// http://www.wxformbuilder.org/
29
 
//
30
 
// PLEASE DO "NOT" EDIT THIS FILE!
31
 
///////////////////////////////////////////////////////////////////////////
32
 
 
33
 
#include "importfilesbasedlg.h"
34
 
 
35
 
///////////////////////////////////////////////////////////////////////////
36
 
 
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 )
38
 
{
39
 
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
40
 
        
41
 
        wxBoxSizer* bSizer1;
42
 
        bSizer1 = new wxBoxSizer( wxVERTICAL );
43
 
        
44
 
        m_mainPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
45
 
        wxBoxSizer* panelSizer;
46
 
        panelSizer = new wxBoxSizer( wxVERTICAL );
47
 
        
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 );
51
 
        
52
 
        wxBoxSizer* bSizer4;
53
 
        bSizer4 = new wxBoxSizer( wxHORIZONTAL );
54
 
        
55
 
        m_textCtrlDirPath = new wxTextCtrl( m_mainPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56
 
        bSizer4->Add( m_textCtrlDirPath, 1, wxALL|wxEXPAND, 5 );
57
 
        
58
 
        m_buttonBrowse = new wxButton( m_mainPanel, wxID_ANY, wxT("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
59
 
        bSizer4->Add( m_buttonBrowse, 0, wxALL, 5 );
60
 
        
61
 
        panelSizer->Add( bSizer4, 0, wxEXPAND, 5 );
62
 
        
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 );
66
 
        
67
 
        m_textCtrlFileMask = new wxTextCtrl( m_mainPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
68
 
        panelSizer->Add( m_textCtrlFileMask, 0, wxALL|wxEXPAND, 5 );
69
 
        
70
 
        m_checkBoxNoExtFiles = new wxCheckBox( m_mainPanel, wxID_ANY, wxT("Import files without extension"), wxDefaultPosition, wxDefaultSize, 0 );
71
 
        m_checkBoxNoExtFiles->SetValue(true);
72
 
        
73
 
        panelSizer->Add( m_checkBoxNoExtFiles, 0, wxALL, 5 );
74
 
        
75
 
        m_mainPanel->SetSizer( panelSizer );
76
 
        m_mainPanel->Layout();
77
 
        panelSizer->Fit( m_mainPanel );
78
 
        bSizer1->Add( m_mainPanel, 1, wxEXPAND | wxALL, 5 );
79
 
        
80
 
        m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
81
 
        bSizer1->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
82
 
        
83
 
        wxBoxSizer* btnSizer;
84
 
        btnSizer = new wxBoxSizer( wxHORIZONTAL );
85
 
        
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 );
89
 
        
90
 
        m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
91
 
        btnSizer->Add( m_buttonCancel, 0, wxALL, 5 );
92
 
        
93
 
        bSizer1->Add( btnSizer, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
94
 
        
95
 
        this->SetSizer( bSizer1 );
96
 
        this->Layout();
97
 
        
98
 
        this->Centre( wxBOTH );
99
 
        
100
 
        // Connect Events
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 );
104
 
}
105
 
 
106
 
ImportFilesBaseDlg::~ImportFilesBaseDlg()
107
 
{
108
 
        // Disconnect Events
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 );
112
 
}