~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to LiteEditor/fileview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-02-10 02:27:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210022755-m5692nfc1t5uf1w9
Tags: 1.0.2759+dfsg-0ubuntu1
* New upstream release (LP: #327216).
* debian/patches/series, debian/patches/00_fix-ia64-build.patch:
  + Dropped, applied upstream already.
* debian/patches/02_fix-desktop.patch,
  debian/patches/03_fix-sh.patch:
  + Refreshed to patch cleanly.
* debian/rules:
  + Make get-orig-source honour UPSTREAM_VERSION if set.
* debian/ctags-le.1,
  debian/codelite_indexer.1,
  debian/codelite.manpages:
  + Dropped ctags-le manpage, since ctags-le was replaced by
    codelite_indexer.
  + Added codelite_indexer manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <deque>
37
37
#include "new_item_dlg.h"
38
38
#include "project_settings_dlg.h"
 
39
#include "depends_dlg.h"
39
40
#include "buildmanager.h"
40
41
#include "macros.h"
41
42
#include "pluginmanager.h"
263
264
 
264
265
void FileViewTree::BuildProjectNode( const wxString &projectName )
265
266
{
266
 
        ProjectTreePtr tree = ManagerST::Get()->GetProjectFileViewTree( projectName );
 
267
        wxString err_msg;
 
268
        ProjectPtr prj = WorkspaceST::Get()->FindProjectByName ( projectName, err_msg );
 
269
    ProjectTreePtr tree = prj->AsTree();
267
270
        TreeWalker<wxString, ProjectItem> walker( tree->GetRoot() );
268
271
 
269
272
        std::map<wxString, wxTreeItemId> items;
887
890
                                desc = desc.Trim().Trim(false);
888
891
 
889
892
                                if ( newName.IsEmpty() == false ) {
890
 
                                        ManagerST::Get()->SaveProjectTemplate( proj, newName, desc );
 
893
                    wxString tmplateDir = ManagerST::Get()->GetStarupDirectory() + wxT ( "/templates/projects/" ) + newName + wxT ( "/" );
 
894
                    Mkdir ( tmplateDir );
 
895
                    proj->CopyTo ( tmplateDir, newName, desc );
891
896
                                }
892
897
                        }
893
898
                        dlg->Destroy();
900
905
        wxUnusedVar( event );
901
906
        wxTreeItemId item = GetSingleSelection();
902
907
        if ( item.IsOk() ) {
903
 
                wxString projectName = GetItemText( item );
904
 
                ManagerST::Get()->PopupProjectDependsDlg( projectName );
 
908
        DependenciesDlg dlg ( Frame::Get(), GetItemText( item ) );
 
909
        dlg.ShowModal();
905
910
        }
906
911
}
907
912