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

« back to all changes in this revision

Viewing changes to LiteEditor/compilercompileroptionspage.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:
20
20
                long idx = m_listCompilerOptions->InsertItem(m_listCompilerOptions->GetItemCount(), cmpOption.name);
21
21
                m_listCompilerOptions->SetItem(idx, 1, cmpOption.help);
22
22
        }
 
23
        
 
24
        m_listCompilerOptions->SetColumnWidth(0, 100);
 
25
        m_listCompilerOptions->SetColumnWidth(1, wxLIST_AUTOSIZE);
 
26
        
23
27
}
24
28
 
25
29
void CompilerCompilerOptionsPage::Save(CompilerPtr cmp)
49
53
        {
50
54
                SetColumnText(m_listCompilerOptions, m_selectedCmpOption, 0, dlg.m_sName);
51
55
                SetColumnText(m_listCompilerOptions, m_selectedCmpOption, 1, dlg.m_sHelp);
 
56
                m_listCompilerOptions->SetColumnWidth(1, wxLIST_AUTOSIZE);
52
57
        }
53
58
}
54
59
 
59
64
        {
60
65
                long idx = m_listCompilerOptions->InsertItem(m_listCompilerOptions->GetItemCount(), dlg.m_sName);
61
66
                m_listCompilerOptions->SetItem(idx, 1, dlg.m_sHelp);
 
67
                m_listCompilerOptions->SetColumnWidth(1, wxLIST_AUTOSIZE);
62
68
        }
63
69
}
64
70
 
67
73
        if (m_selectedCmpOption != wxNOT_FOUND) {
68
74
                if (wxMessageBox(_("Are you sure you want to delete this compiler option?"), wxT("CodeLite"), wxYES_NO|wxCANCEL) == wxYES) {
69
75
                        m_listCompilerOptions->DeleteItem(m_selectedCmpOption);
 
76
                        m_listCompilerOptions->SetColumnWidth(1, wxLIST_AUTOSIZE);
70
77
                        m_selectedCmpOption = wxNOT_FOUND;
71
78
                }
72
79
        }