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

« back to all changes in this revision

Viewing changes to QmakePlugin/qmaketabbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-08-15 17:42:43 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090815174243-nlb9ikgigbiybz12
Tags: 1.0.2893+dfsg-0ubuntu1
* debian/rules:
  + Tidy up get-orig-source rule
* debian/control:
  + Bump Standards-Version
  + Change Maintainer email address to @ubuntu.com
  + Drop cdbs build-dependency
* debian/copyright:
  + Update to DEP-5 format
* debian/patches/00_add-fPIC.patch:
  + Dropped, fix upstream
* Closes LP: #413992

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version Mar 19 2008)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#include "qmaketabbase.h"
 
9
 
 
10
///////////////////////////////////////////////////////////////////////////
 
11
 
 
12
QMakeTabBase::QMakeTabBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
13
{
 
14
        wxBoxSizer* mainSizer;
 
15
        mainSizer = new wxBoxSizer( wxVERTICAL );
 
16
        
 
17
        m_checkBoxUseQmake = new wxCheckBox( this, wxID_ANY, _("This project uses qmake"), wxDefaultPosition, wxDefaultSize, 0 );
 
18
        
 
19
        mainSizer->Add( m_checkBoxUseQmake, 0, wxALL, 5 );
 
20
        
 
21
        wxFlexGridSizer* fgSizer1;
 
22
        fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
 
23
        fgSizer1->AddGrowableCol( 1 );
 
24
        fgSizer1->SetFlexibleDirection( wxBOTH );
 
25
        fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
26
        
 
27
        m_staticText3 = new wxStaticText( this, wxID_ANY, _("qmake settings:"), wxDefaultPosition, wxDefaultSize, 0 );
 
28
        m_staticText3->Wrap( -1 );
 
29
        m_staticText3->SetToolTip( _("Select the QMake to be used for this build configuration as defined in 'Plugins -> QMake -> Settings'") );
 
30
        
 
31
        fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
32
        
 
33
        wxArrayString m_choiceQmakeSettingsChoices;
 
34
        m_choiceQmakeSettings = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceQmakeSettingsChoices, 0 );
 
35
        m_choiceQmakeSettings->SetSelection( 0 );
 
36
        m_choiceQmakeSettings->SetToolTip( _("Select the QMake to be used for this build configuration as defined in 'Plugins -> QMake -> Settings'") );
 
37
        
 
38
        fgSizer1->Add( m_choiceQmakeSettings, 0, wxALL|wxEXPAND, 5 );
 
39
        
 
40
        m_staticText4 = new wxStaticText( this, wxID_ANY, _("qmake execution line:"), wxDefaultPosition, wxDefaultSize, 0 );
 
41
        m_staticText4->Wrap( -1 );
 
42
        fgSizer1->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
43
        
 
44
        m_textCtrlQmakeExeLine = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
45
        fgSizer1->Add( m_textCtrlQmakeExeLine, 0, wxALL|wxEXPAND, 5 );
 
46
        
 
47
        mainSizer->Add( fgSizer1, 0, wxEXPAND, 5 );
 
48
        
 
49
        m_staticText5 = new wxStaticText( this, wxID_ANY, _("CodeLite will place the below text after the auto generated section (so you may override the generated variables)"), wxDefaultPosition, wxDefaultSize, 0 );
 
50
        m_staticText5->Wrap( -1 );
 
51
        mainSizer->Add( m_staticText5, 0, wxALL|wxEXPAND, 5 );
 
52
        
 
53
        m_textCtrlFreeText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxTE_MULTILINE|wxTE_PROCESS_TAB|wxTE_RICH2 );
 
54
        m_textCtrlFreeText->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 76, 90, 90, false, wxEmptyString ) );
 
55
        
 
56
        mainSizer->Add( m_textCtrlFreeText, 1, wxALL|wxEXPAND, 5 );
 
57
        
 
58
        this->SetSizer( mainSizer );
 
59
        this->Layout();
 
60
        mainSizer->Fit( this );
 
61
        
 
62
        // Connect Events
 
63
        m_staticText3->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
64
        m_choiceQmakeSettings->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
65
        m_staticText4->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
66
        m_textCtrlQmakeExeLine->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
67
        m_staticText5->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
68
        m_textCtrlFreeText->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
69
}
 
70
 
 
71
QMakeTabBase::~QMakeTabBase()
 
72
{
 
73
        // Disconnect Events
 
74
        m_staticText3->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
75
        m_choiceQmakeSettings->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
76
        m_staticText4->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
77
        m_textCtrlQmakeExeLine->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
78
        m_staticText5->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
79
        m_textCtrlFreeText->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( QMakeTabBase::OnUseQmake ), NULL, this );
 
80
}