Skip to content

Commit

Permalink
Fixed: SVN plugin - add confirm box on "close" svn repo (the first item)
Browse files Browse the repository at this point in the history
    fixes: eranif#1349

Updated folder and project SVGs
  • Loading branch information
eranif committed Aug 1, 2016
1 parent 42bd8dc commit d778221
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 59 deletions.
Binary file modified Runtime/codelite-bitmaps.zip
Binary file not shown.
14 changes: 10 additions & 4 deletions Subversion2/subversion_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void SubversionView::CreatGUIControls()
{
MSWSetNativeTheme(m_treeCtrl);
m_treeCtrl->SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));

// Assign the image list
BitmapLoader* bmpLoader = m_plugin->GetManager()->GetStdIcons();

Expand Down Expand Up @@ -566,9 +566,6 @@ void SubversionView::CreateFileMenu(wxMenu* menu)

void SubversionView::CreateRootMenu(wxMenu* menu)
{
menu->Append(XRCID("svn_close_view"), wxT("Close"));
menu->AppendSeparator();

menu->Append(XRCID("svn_update"), wxT("Update"));
menu->Append(XRCID("svn_commit"), wxT("Commit"));
menu->AppendSeparator();
Expand All @@ -592,6 +589,11 @@ void SubversionView::CreateRootMenu(wxMenu* menu)

menu->AppendSeparator();
menu->Append(XRCID("svn_properties"), _("Properties..."));

menu->AppendSeparator();
wxMenuItem* menuItem = new wxMenuItem(menu, XRCID("svn_close_view"), _("Close"));
menuItem->SetBitmap(m_plugin->GetManager()->GetStdIcons()->LoadBitmap("file_close"));
menu->Append(menuItem);
}

void SubversionView::DoGetPaths(const wxTreeItemId& parent, wxArrayString& paths)
Expand Down Expand Up @@ -1366,6 +1368,10 @@ void SubversionView::OnSciStcChange(wxStyledTextEvent& event)

void SubversionView::OnCloseView(wxCommandEvent& event)
{
if(::wxMessageBox(_("Close SVN view?"), _("Confirm"), wxICON_QUESTION | wxYES_NO | wxCANCEL | wxCANCEL_DEFAULT) !=
wxYES) {
return;
}
DoChangeRootPathUI("");

wxCommandEvent dummy;
Expand Down
Binary file modified bitmaps/16-folder-yellow-opened.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 modified 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 modified bitmaps/16-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 modified 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 modified bitmaps/16-project.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 modified 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 modified bitmaps/24-folder-yellow-opened.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 modified 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 modified bitmaps/24-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 modified 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 modified bitmaps/24-project.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 modified 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.
16 changes: 8 additions & 8 deletions svgs/folder-yellow-opened.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions svgs/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.
66 changes: 34 additions & 32 deletions svgs/project.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 d778221

Please sign in to comment.