Skip to content

Commit

Permalink
Workspace folders are now using a distinct grey folder icon
Browse files Browse the repository at this point in the history
Implemented "New workspace folder" and "Delete workspace folder" context menu entries
  • Loading branch information
Eran Ifrah committed Oct 27, 2016
1 parent 9e86b75 commit 9b05687
Show file tree
Hide file tree
Showing 10 changed files with 622 additions and 73 deletions.
4 changes: 2 additions & 2 deletions LiteEditor.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<Project Name="AutoSave" ConfigName="Win_x64_Debug"/>
<Project Name="Tail" ConfigName="Win_x64_Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="CMake_Release" Selected="no">
<WorkspaceConfiguration Name="CMake_Release" Selected="yes">
<Environment/>
<Project Name="ZoomNavigator" ConfigName="DebugUnicode"/>
<Project Name="wxsqlite3" ConfigName="Win_x86_Release"/>
Expand Down Expand Up @@ -308,7 +308,7 @@
<Project Name="AutoSave" ConfigName="Win_x64_Debug"/>
<Project Name="Tail" ConfigName="Win_x64_Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Win_x64_Release" Selected="yes">
<WorkspaceConfiguration Name="Win_x64_Release" Selected="no">
<Environment>WXWIN=D:\src\wxWidgets
WXCFG=gcc_dll\mswu</Environment>
<Project Name="abbreviation" ConfigName="Win_x64_Release"/>
Expand Down
199 changes: 130 additions & 69 deletions LiteEditor/fileview.cpp

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Plugin/CodeBlocksImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <wx/xml/xml.h>
#include <wx/filefn.h>
#include <wx/tokenzr.h>
#include "macros.h"

bool CodeBlocksImporter::OpenWordspace(const wxString& filename, const wxString& defaultCompiler)
{
Expand All @@ -21,8 +22,9 @@ bool CodeBlocksImporter::isSupportedWorkspace()
wxXmlDocument codeBlocksProject;
if(codeBlocksProject.Load(wsInfo.GetFullPath())) {
wxXmlNode* root = codeBlocksProject.GetRoot();
CHECK_PTR_RET_FALSE(root);
wxString nodeName = root->GetName();
if(root && (nodeName == wxT("CodeBlocks_workspace_file") || nodeName == wxT("CodeBlocks_project_file")))
if((nodeName == wxT("CodeBlocks_workspace_file") || nodeName == wxT("CodeBlocks_project_file")))
return true;
}
return false;
Expand Down
Binary file modified Runtime/codelite-bitmaps.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/rc/menu.xrc
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@
</object>
<!-- Workspace -->
<object class="wxMenu" name="workspace_popup_menu">
<object class="wxMenu" name="wxID_ANY">
<object class="wxMenu" name="workspace_popup_menu_new_submenu">
<label>New</label>
<object class="wxMenuItem" name="new_project">
<label>New Project</label>
Expand Down
Binary file added bitmaps/16-workspace-folder-yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitmaps/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitmaps/24-workspace-folder-yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitmaps/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
486 changes: 486 additions & 0 deletions svgs/workspace-folder-yellow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b05687

Please sign in to comment.