~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to LiteEditor/output_pane.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-04-30 02:46:27 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090430024627-7xp71gerfvw00xtt
Tags: 1.0.2822+dfsg-0ubuntu1
* New upstream release (LP: #369466)
* debian/copyright:
  + Added Files section for sdk/wxpropgrid
  + Made license text RFC compliant (add . for empty lines)
* debian/control:
  + Bump Standards-Version to 3.8.1
* debian/patches/02_fix-desktop.patch,
  + Refreshed to patch cleanly
* debian/*.install,
  debian/codelite.dirs,
  debian/codelite.links,
  debian/patches/03_fix-sh.patch,
  debian/patches/04_change-installpath.patch,
  + Updated for new upstream directory structure
  + Patches dropped, no longer needed.
* debian/patches/03_cstdio-include.patch,
  + Include cstdio for C++ and stdio.h for C, since it seems to be missing
* debian/codelite.menu,
  debian/*.1,
  debian/codelite.manpages:
  + Updated to reflect change in command names
    - CodeLite    => codelite
    - le_exec     => codelite_exec
    - le_dos2unix => codelite_fix_files
    - le_killproc => codelite_kill_children
* debian/README.source,
  debian/rules,
  debian/copyright:
  + Remove sdk/curl from the list of excluded files, since it doesn't exist
    any more

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
//////////////////////////////////////////////////////////////////////////////
24
24
//////////////////////////////////////////////////////////////////////////////
25
25
#include <wx/xrc/xmlres.h>
 
26
#include "editor_config.h"
26
27
#include <wx/dcbuffer.h>
27
28
 
28
29
#include "output_pane.h"
36
37
#include "taskpanel.h"
37
38
 
38
39
 
39
 
const wxString OutputPane::FIND_IN_FILES_WIN= wxT("Find Results");
40
 
const wxString OutputPane::BUILD_WIN        = wxT("Build");
41
 
const wxString OutputPane::ERRORS_WIN       = wxT("Errors");
42
 
const wxString OutputPane::OUTPUT_WIN           = wxT("Output");
43
 
const wxString OutputPane::OUTPUT_DEBUG     = wxT("Debug");
44
 
const wxString OutputPane::REPLACE_IN_FILES = wxT("Replace Results");
45
 
const wxString OutputPane::TASKS                        = wxT("Tasks");
46
 
const wxString OutputPane::TRACE_TAB            = wxT("Trace");
 
40
const wxString OutputPane::FIND_IN_FILES_WIN = wxT("Find Results");
 
41
const wxString OutputPane::BUILD_WIN         = wxT("Build");
 
42
const wxString OutputPane::ERRORS_WIN        = wxT("Errors");
 
43
const wxString OutputPane::OUTPUT_WIN        = wxT("Output");
 
44
const wxString OutputPane::OUTPUT_DEBUG      = wxT("Debug");
 
45
const wxString OutputPane::REPLACE_IN_FILES  = wxT("Replace Results");
 
46
const wxString OutputPane::TASKS             = wxT("Tasks");
 
47
const wxString OutputPane::TRACE_TAB         = wxT("Trace");
47
48
 
48
49
 
49
50
BEGIN_EVENT_TABLE(OutputPane, wxPanel)
70
71
        wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
71
72
        SetSizer(mainSizer);
72
73
 
73
 
        m_book = new Notebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVB_TOP);
 
74
        // load the notebook style from codelite settings file
 
75
        long bookStyle = wxVB_TOP|wxVB_FIXED_WIDTH;
 
76
        EditorConfigST::Get()->GetLongValue(wxT("OutputPane"), bookStyle);
 
77
 
 
78
        m_book = new Notebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, bookStyle);
 
79
        // Calculate the widthest tab (the one with the 'Workspcae' label)
 
80
        int xx, yy;
 
81
        wxFont fnt = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
 
82
        wxWindow::GetTextExtent(REPLACE_IN_FILES, &xx, &yy, NULL, NULL, &fnt);
 
83
        m_book->SetFixedTabWidth(xx + 16 + 20);
 
84
 
74
85
        mainSizer->Add(m_book, 1, wxEXPAND | wxALL | wxGROW, 1);
75
86
 
76
87
        m_buildWin = new BuildTab(m_book, wxID_ANY, BUILD_WIN);
79
90
        m_errorsWin = new ErrorsTab(m_buildWin, m_book, wxID_ANY, ERRORS_WIN);
80
91
        m_book->AddPage(m_errorsWin, ERRORS_WIN, ERRORS_WIN, wxXmlResource::Get()->LoadBitmap(wxT("project_conflict")));
81
92
 
82
 
        m_findResultsTab = new FindResultsTab(m_book, wxID_ANY, FIND_IN_FILES_WIN);
 
93
        m_findResultsTab = new FindResultsTab(m_book, wxID_ANY, FIND_IN_FILES_WIN, true);
83
94
        m_book->AddPage(m_findResultsTab, FIND_IN_FILES_WIN, FIND_IN_FILES_WIN, wxXmlResource::Get()->LoadBitmap(wxT("find_results")));
84
95
 
85
96
        m_replaceResultsTab = new ReplaceInFilesPanel(m_book, wxID_ANY, REPLACE_IN_FILES);