From 2363dcf364ff1bf1abc97ec556f83b01eafdf152 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Thu, 11 Apr 2024 09:38:28 +0200 Subject: [PATCH] Remove Tweaks Plugin: - No longer provided. - no longer compile. --- COPYING | 1 - Tweaks/CMakeLists.txt | 42 - Tweaks/Tweaks.project | 358 ------ Tweaks/TweaksSettingsDlg.cpp | 197 ---- Tweaks/TweaksSettingsDlg.h | 59 - Tweaks/tweaks.cpp | 263 ----- Tweaks/tweaks.h | 65 -- Tweaks/tweaks_settings.cpp | 191 ---- Tweaks/tweaks_settings.h | 146 --- Tweaks/wxcrafter.cpp | 168 --- Tweaks/wxcrafter.h | 103 -- Tweaks/wxcrafter.wxcp | 1554 --------------------------- Tweaks/wxcrafter_tweaks_bitmaps.cpp | 47 - 13 files changed, 3194 deletions(-) delete mode 100644 Tweaks/CMakeLists.txt delete mode 100644 Tweaks/Tweaks.project delete mode 100644 Tweaks/TweaksSettingsDlg.cpp delete mode 100644 Tweaks/TweaksSettingsDlg.h delete mode 100644 Tweaks/tweaks.cpp delete mode 100644 Tweaks/tweaks.h delete mode 100644 Tweaks/tweaks_settings.cpp delete mode 100644 Tweaks/tweaks_settings.h delete mode 100644 Tweaks/wxcrafter.cpp delete mode 100644 Tweaks/wxcrafter.h delete mode 100644 Tweaks/wxcrafter.wxcp delete mode 100644 Tweaks/wxcrafter_tweaks_bitmaps.cpp diff --git a/COPYING b/COPYING index 02497ac8ff..1b38acdcb0 100644 --- a/COPYING +++ b/COPYING @@ -356,7 +356,6 @@ and the plugin is NOT one of the official plugins (see list below): - Subversion - UnitTestPP - wxFormBuilder plugin -- Tweaks - CMakePlugin - CodeLiteDiff - SFTP diff --git a/Tweaks/CMakeLists.txt b/Tweaks/CMakeLists.txt deleted file mode 100644 index fe2f305290..0000000000 --- a/Tweaks/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -# set the plugin name here -set(PLUGIN_NAME "Tweaks") - -# Our project is called 'plugin' this is how it will be called in visual studio, and in our makefiles. -project(${PLUGIN_NAME}) - -# It was noticed that when using MinGW gcc it is essential that 'core' is mentioned before 'base'. - -# wxWidgets include (this will do all the magic to configure everything) -include("${wxWidgets_USE_FILE}") - -# Include paths -include_directories("${CL_SRC_ROOT}/Plugin" "${CL_SRC_ROOT}/sdk/wxsqlite3/include" "${CL_SRC_ROOT}/CodeLite" - "${CL_SRC_ROOT}/CodeLite/ssh" "${CL_SRC_ROOT}/PCH" "${CL_SRC_ROOT}/Interfaces") - -add_definitions(-DWXUSINGDLL_WXSQLITE3) -add_definitions(-DWXUSINGDLL_CL) -add_definitions(-DWXUSINGDLL_SDK) - -if(USE_PCH) - add_definitions(-include "${CL_PCH_FILE}") - add_definitions(-Winvalid-pch) -endif(USE_PCH) - -if(UNIX AND NOT APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") -endif() - -if(APPLE) - add_definitions(-fPIC) -endif() - -file(GLOB SRCS "*.cpp") - -# Define the output -add_library(${PLUGIN_NAME} SHARED ${SRCS}) - -# Remove the "lib" prefix from the plugin name -set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "") -target_link_libraries(${PLUGIN_NAME} ${LINKER_OPTIONS} ${wxWidgets_LIBRARIES} libcodelite plugin) -cl_install_plugin(${PLUGIN_NAME}) diff --git a/Tweaks/Tweaks.project b/Tweaks/Tweaks.project deleted file mode 100644 index 84b4955b5e..0000000000 --- a/Tweaks/Tweaks.project +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy "$(OutputFile)" ..\Runtime\plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy "$(OutputFile)" ..\Runtime\plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy "$(OutputFile)" ..\Runtime32\plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Tweaks/TweaksSettingsDlg.cpp b/Tweaks/TweaksSettingsDlg.cpp deleted file mode 100644 index 07a1375bdb..0000000000 --- a/Tweaks/TweaksSettingsDlg.cpp +++ /dev/null @@ -1,197 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : TweaksSettingsDlg.cpp -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#include "TweaksSettingsDlg.h" -#include "tweaks_settings.h" -#include "workspace.h" -#include -#include "windowattrmanager.h" -#include "macros.h" -#include -#include -#include "cl_defs.h" - -TweaksSettingsDlg::TweaksSettingsDlg(wxWindow* parent) - : TweaksSettingsDlgBase(parent) -{ - m_settings.Load(); - m_checkBoxEnableTweaks->SetValue( m_settings.IsEnableTweaks() ); - - DoPopulateList(); - SetName("TweaksSettingsDlg"); - WindowAttrManager::Load(this); -} - -TweaksSettingsDlg::~TweaksSettingsDlg() -{ - - m_colourProperties.clear(); -} - -void TweaksSettingsDlg::OnWorkspaceOpenUI(wxUpdateUIEvent& event) -{ - event.Enable( clCxxWorkspaceST::Get()->IsOpen() ); -} - -void TweaksSettingsDlg::DoPopulateList() -{ - m_colourProperties.clear(); - // Get list of projects - wxArrayString projects; - clCxxWorkspaceST::Get()->GetProjectList( projects ); - - // ---------------------------------------------------------------------- - // Add tab colours properties - // ---------------------------------------------------------------------- - if ( m_settings.GetGlobalBgColour().IsOk() ) { - wxVariant value; - value << m_settings.GetGlobalBgColour(); - m_pgPropGlobalTabBG->SetValue( value ); - } - - if ( m_settings.GetGlobalFgColour().IsOk() ) { - wxVariant value; - value << m_settings.GetGlobalFgColour(); - m_pgPropGlobalTabFG->SetValue( value ); - } - - for(size_t i=0; iAppend( new wxFileProperty(projects.Item(i), wxPG_LABEL, pt.GetBitmapFilename()) ); - - // Colours table - wxPGProperty *parentProject = m_pgMgrTabColours->AppendIn(m_pgPropProjectsColours, new wxPropertyCategory(projects.Item(i))); - wxString labelBG, labelFG; - labelBG << projects.Item(i) << " tab label background colour"; - labelFG << projects.Item(i) << " tab label text colour"; - if ( pt.IsOk() ) { - m_colourProperties.push_back( m_pgMgrTabColours->AppendIn(parentProject, new wxSystemColourProperty(labelBG, wxPG_LABEL, pt.GetTabBgColour() )) ); - m_colourProperties.push_back( m_pgMgrTabColours->AppendIn(parentProject, new wxSystemColourProperty(labelFG, wxPG_LABEL, pt.GetTabFgColour() )) ); - - } else { - wxPGProperty* prop(NULL); - - prop = m_pgMgrTabColours->AppendIn(parentProject, new wxSystemColourProperty(labelBG)); - prop->SetValueToUnspecified(); - m_colourProperties.push_back( prop ); - - prop = m_pgMgrTabColours->AppendIn(parentProject, new wxSystemColourProperty(labelFG)); - prop->SetValueToUnspecified(); - m_colourProperties.push_back( prop ); - } - } -} - -void TweaksSettingsDlg::OnEnableTweaks(wxCommandEvent& event) -{ - m_settings.SetEnableTweaks( event.IsChecked() ); -} - -void TweaksSettingsDlg::OnEnableTweaksUI(wxUpdateUIEvent& event) -{ - event.Enable( m_checkBoxEnableTweaks->IsChecked() && clCxxWorkspaceST::Get()->IsOpen() ); -} - -void TweaksSettingsDlg::OnEnableTweaksCheckboxUI(wxUpdateUIEvent& event) -{ - event.Enable( clCxxWorkspaceST::Get()->IsOpen() ); -} - -void TweaksSettingsDlg::OnColourChanged(wxPropertyGridEvent& event) -{ - event.Skip(); - wxPGProperty* prop = event.GetProperty(); - CHECK_PTR_RET(prop); - - if ( prop == m_pgPropGlobalTabBG ) { - // Global tab bg colour was modified - wxColourPropertyValue cpv; - cpv << prop->GetValue(); - m_settings.SetGlobalBgColour( cpv.m_colour ); - - } else if ( prop == m_pgPropGlobalTabFG ) { - // Global tab colour was modified - wxColourPropertyValue cpv; - cpv << prop->GetValue(); - m_settings.SetGlobalFgColour( cpv.m_colour ); - - } else if ( prop->GetParent() ) { - // project specific colour was changed - wxColourPropertyValue cpv; - cpv << prop->GetValue(); - - if ( prop->GetLabel().Contains("text colour") ) { - m_settings.GetProjectTweaks(prop->GetParent()->GetLabel()).SetTabFgColour( cpv.m_colour ); - - } else if ( prop->GetLabel().Contains("background colour") ) { - m_settings.GetProjectTweaks(prop->GetParent()->GetLabel()).SetTabBgColour( cpv.m_colour ); - - } - } -} -void TweaksSettingsDlg::OnImageSelected(wxPropertyGridEvent& event) -{ - wxPGProperty* prop = event.GetProperty(); - CHECK_PTR_RET(prop); - - wxString projectName = prop->GetLabel(); - m_settings.GetProjectTweaks(projectName).SetBitmapFilename( prop->GetValueAsString() ); - - if ( !m_settings.HasFlag( TweaksSettings::kDontPromptForProjectReload ) ) { - wxRichMessageDialog dlg(this, _("Icon changes require a workspace reload"), "CodeLite", wxOK|wxOK_DEFAULT|wxCANCEL|wxICON_INFORMATION); - dlg.ShowCheckBox(_("Remember my answer")); - if ( dlg.ShowModal() == wxID_OK ) { - if ( dlg.IsCheckBoxChecked() ) { - m_settings.EnableFlag( TweaksSettings::kDontPromptForProjectReload, true ); - } - } - } -} -void TweaksSettingsDlg::OnResetColours(wxCommandEvent& event) -{ - wxUnusedVar( event ); - PropPtrList_t::iterator iter = m_colourProperties.begin(); - for( ; iter != m_colourProperties.end(); ++iter ) { - (*iter)->SetValueToUnspecified(); - } - m_pgPropGlobalTabBG->SetValueToUnspecified(); - m_pgPropGlobalTabFG->SetValueToUnspecified(); - m_settings.ResetColours(); -} - -void TweaksSettingsDlg::OnEnableColoursTableUI(wxUpdateUIEvent& event) -{ -#if defined(__WXGTK__) -#if CL_USE_NATIVEBOOK - // Under GTK, when native books are enabled, the tab coloring is not - // available - event.Enable(false); - return; -#endif -#endif - - event.Enable( m_checkBoxEnableTweaks->IsChecked() && clCxxWorkspaceST::Get()->IsOpen() ); -} diff --git a/Tweaks/TweaksSettingsDlg.h b/Tweaks/TweaksSettingsDlg.h deleted file mode 100644 index 5552c1da8b..0000000000 --- a/Tweaks/TweaksSettingsDlg.h +++ /dev/null @@ -1,59 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : TweaksSettingsDlg.h -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#ifndef TWEAKSSETTINGSDLG_H -#define TWEAKSSETTINGSDLG_H -#include "wxcrafter.h" -#include "tweaks_settings.h" -#include - -class wxPGProperty; -class TweaksSettingsDlg : public TweaksSettingsDlgBase -{ - typedef std::list PropPtrList_t; - TweaksSettings m_settings; - PropPtrList_t m_colourProperties; - -public: - TweaksSettingsDlg(wxWindow* parent); - virtual ~TweaksSettingsDlg(); - TweaksSettings& GetSettings() { - return m_settings; - } - -protected: - virtual void OnEnableColoursTableUI(wxUpdateUIEvent& event); - virtual void OnResetColours(wxCommandEvent& event); - virtual void OnImageSelected(wxPropertyGridEvent& event); - virtual void OnColourChanged(wxPropertyGridEvent& event); - virtual void OnEnableTweaksCheckboxUI(wxUpdateUIEvent& event); - virtual void OnEnableTweaks(wxCommandEvent& event); - virtual void OnEnableTweaksUI(wxUpdateUIEvent& event); - virtual void OnWorkspaceOpenUI(wxUpdateUIEvent& event); - -protected: - void DoPopulateList(); -}; -#endif // TWEAKSSETTINGSDLG_H diff --git a/Tweaks/tweaks.cpp b/Tweaks/tweaks.cpp deleted file mode 100644 index 3cb763540a..0000000000 --- a/Tweaks/tweaks.cpp +++ /dev/null @@ -1,263 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : tweaks.cpp -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#include "TweaksSettingsDlg.h" -#include "editor_config.h" -#include "event_notifier.h" -#include "tweaks.h" -#include "workspace.h" -#include -#include - -static Tweaks* thePlugin = NULL; - -static int ID_TWEAKS_SETTINGS = ::wxNewId(); - -#define TWEAKS_ENABLED_EVENT_HANDLER() \ - if(!m_settings.IsEnableTweaks() || !clCxxWorkspaceST::Get()->IsOpen()) { \ - e.Skip(); \ - return; \ - } - -// Define the plugin entry point -CL_PLUGIN_API IPlugin* CreatePlugin(IManager* manager) -{ - if(thePlugin == 0) { - thePlugin = new Tweaks(manager); - } - return thePlugin; -} - -CL_PLUGIN_API PluginInfo* GetPluginInfo() -{ - static PluginInfo info; - info.SetAuthor(wxT("eran")); - info.SetName(wxT("Tweaks")); - info.SetDescription(_("Tweak codelite")); - info.SetVersion(wxT("v1.0")); - return &info; -} - -CL_PLUGIN_API int GetPluginInterfaceVersion() { return PLUGIN_INTERFACE_VERSION; } - -Tweaks::Tweaks(IManager* manager) - : IPlugin(manager) -{ - wxPGInitResourceModule(); // Or we crash... - - m_longName = _("Tweak codelite"); - m_shortName = wxT("Tweaks"); - - m_mgr->GetTheApp()->Connect(ID_TWEAKS_SETTINGS, wxEVT_COMMAND_MENU_SELECTED, - wxCommandEventHandler(Tweaks::OnSettings), NULL, this); - EventNotifier::Get()->Connect(wxEVT_COLOUR_TAB, clColourEventHandler(Tweaks::OnColourTab), NULL, this); - EventNotifier::Get()->Bind(wxEVT_WORKSPACE_LOADED, &Tweaks::OnWorkspaceLoaded, this); - EventNotifier::Get()->Bind(wxEVT_WORKSPACE_CLOSED, &Tweaks::OnWorkspaceClosed, this); - EventNotifier::Get()->Connect(wxEVT_WORKSPACE_VIEW_BUILD_STARTING, - clCommandEventHandler(Tweaks::OnFileViewBuildTree), NULL, this); - EventNotifier::Get()->Connect(wxEVT_WORKSPACE_VIEW_CUSTOMIZE_PROJECT, - clColourEventHandler(Tweaks::OnCustomizeProject), NULL, this); - EventNotifier::Get()->Connect(wxEVT_GET_TAB_BORDER_COLOUR, clColourEventHandler(Tweaks::OnTabBorderColour), NULL, - this); -} - -void Tweaks::UnPlug() -{ - m_mgr->GetTheApp()->Disconnect(ID_TWEAKS_SETTINGS, wxEVT_COMMAND_MENU_SELECTED, - wxCommandEventHandler(Tweaks::OnSettings), NULL, this); - EventNotifier::Get()->Disconnect(wxEVT_COLOUR_TAB, clColourEventHandler(Tweaks::OnColourTab), NULL, this); - EventNotifier::Get()->Unbind(wxEVT_WORKSPACE_LOADED, &Tweaks::OnWorkspaceLoaded, this); - EventNotifier::Get()->Unbind(wxEVT_WORKSPACE_CLOSED, &Tweaks::OnWorkspaceClosed, this); - EventNotifier::Get()->Disconnect(wxEVT_WORKSPACE_VIEW_BUILD_STARTING, - clCommandEventHandler(Tweaks::OnFileViewBuildTree), NULL, this); - EventNotifier::Get()->Disconnect(wxEVT_WORKSPACE_VIEW_CUSTOMIZE_PROJECT, - clColourEventHandler(Tweaks::OnCustomizeProject), NULL, this); - EventNotifier::Get()->Disconnect(wxEVT_GET_TAB_BORDER_COLOUR, clColourEventHandler(Tweaks::OnTabBorderColour), NULL, - this); -} - -Tweaks::~Tweaks() {} - -void Tweaks::CreateToolBar(clToolBarGeneric* toolbar) { wxUnusedVar(toolbar); } - -void Tweaks::CreatePluginMenu(wxMenu* pluginsMenu) -{ - wxUnusedVar(pluginsMenu); - wxMenu* menu = new wxMenu; - menu->Append(ID_TWEAKS_SETTINGS, _("Settings...")); - pluginsMenu->AppendSubMenu(menu, _("Tweaks Plugin")); -} - -void Tweaks::HookPopupMenu(wxMenu* menu, MenuType type) -{ - wxUnusedVar(menu); - wxUnusedVar(type); -} - -void Tweaks::OnSettings(wxCommandEvent& e) -{ - wxUnusedVar(e); - TweaksSettingsDlg dlg(m_mgr->GetTheApp()->GetTopWindow()); - if(dlg.ShowModal() == wxID_OK) { - dlg.GetSettings().Save(); - } - - m_settings.Load(); // Refresh our cached settings - // Refresh the drawings - m_mgr->GetTheApp()->GetTopWindow()->Refresh(); -} - -void Tweaks::OnColourTab(clColourEvent& e) -{ - TWEAKS_ENABLED_EVENT_HANDLER(); - - IEditor* editor = FindEditorByPage(e.GetPage()); - if(!editor) { - if(m_settings.GetGlobalFgColour().IsOk() && m_settings.GetGlobalBgColour().IsOk()) { - // Non editor tab - e.SetBgColour(m_settings.GetGlobalBgColour()); - e.SetFgColour(m_settings.GetGlobalFgColour()); - - } else { - e.Skip(); - } - - } else { - - const ProjectTweaks& tw = m_settings.GetProjectTweaks(editor->GetProjectName()); - if(tw.IsOk()) { - e.SetBgColour(tw.GetTabBgColour()); - e.SetFgColour(tw.GetTabFgColour()); - - } else if(m_settings.GetGlobalBgColour().IsOk() && m_settings.GetGlobalFgColour().IsOk()) { - e.SetBgColour(m_settings.GetGlobalBgColour()); - e.SetFgColour(m_settings.GetGlobalFgColour()); - - } else { - e.Skip(); - } - } -} - -IEditor* Tweaks::FindEditorByPage(wxWindow* page) -{ - for(size_t i = 0; i < m_mgr->GetPageCount(); ++i) { - if(m_mgr->GetPage(i) == page) { - return dynamic_cast(m_mgr->GetPage(i)); - } - } - return NULL; -} - -void Tweaks::OnWorkspaceLoaded(clWorkspaceEvent& e) -{ - e.Skip(); - // Refresh the list with the current workspace setup - m_settings.Load(); - m_mgr->GetWorkspacePaneNotebook()->Refresh(); - m_mgr->GetOutputPaneNotebook()->Refresh(); -} - -void Tweaks::OnWorkspaceClosed(clWorkspaceEvent& e) -{ - e.Skip(); - m_settings.Clear(); - m_project2Icon.clear(); -} - -void Tweaks::OnFileViewBuildTree(clCommandEvent& e) -{ - TWEAKS_ENABLED_EVENT_HANDLER(); - m_project2Icon.clear(); - if(m_settings.GetProjects().empty()) { - e.Skip(); - return; - } - - // See if we got a new image for a project - wxImageList* images = new wxImageList(16, 16); - wxImageList* old_images = m_mgr->GetTree(TreeFileView)->GetImageList(); - - // Copy the old images to the new one - for(int i = 0; i < old_images->GetImageCount(); ++i) { - images->Add(old_images->GetIcon(i)); - } - - ProjectTweaks::Map_t::const_iterator iter = m_settings.GetProjects().begin(); - for(; iter != m_settings.GetProjects().end(); ++iter) { - wxString bmpfile = iter->second.GetBitmapFilename(); - bmpfile.Trim().Trim(false); - if(bmpfile.IsEmpty()) { - continue; - } - wxBitmap bmp(bmpfile, wxBITMAP_TYPE_ANY); - if(bmp.IsOk()) { - wxIcon icn; - icn.CopyFromBitmap(bmp); - int index = images->Add(icn); - m_project2Icon.insert(std::make_pair(iter->first, index)); - } - } - - if(m_project2Icon.empty()) { - e.Skip(); - wxDELETE(images); - - } else { - // send back the new image list - e.SetClientData(images); - } -} - -void Tweaks::OnCustomizeProject(clColourEvent& e) -{ - TWEAKS_ENABLED_EVENT_HANDLER(); - if(m_project2Icon.count(e.GetString())) { - // We got a new icon for this project! - e.SetInt(m_project2Icon.find(e.GetString())->second); - - } else { - e.Skip(); - } -} - -void Tweaks::OnTabBorderColour(clColourEvent& e) -{ -#ifdef __WXGTK__ -#if CL_USE_NATIVEBOOK - // Not supported with native notebooks - e.Skip(); - return; -#endif -#endif - TWEAKS_ENABLED_EVENT_HANDLER(); - - if(m_settings.GetGlobalBgColour().IsOk()) { - // return the tab colour - e.SetBorderColour(DrawingUtils::DarkColour(m_settings.GetGlobalBgColour(), 1.5)); - } else { - e.Skip(); - } -} diff --git a/Tweaks/tweaks.h b/Tweaks/tweaks.h deleted file mode 100644 index 7083462fab..0000000000 --- a/Tweaks/tweaks.h +++ /dev/null @@ -1,65 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : tweaks.h -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __Tweaks__ -#define __Tweaks__ - -#include "cl_command_event.h" -#include "plugin.h" -#include "tweaks_settings.h" -#include - -class Tweaks : public IPlugin -{ - typedef std::map ProjectIconMap_t; - TweaksSettings m_settings; - ProjectIconMap_t m_project2Icon; - -protected: - IEditor* FindEditorByPage(wxWindow* page); - -public: - Tweaks(IManager* manager); - ~Tweaks(); - - //-------------------------------------------- - // Abstract methods - //-------------------------------------------- - virtual void CreateToolBar(clToolBarGeneric* toolbar); - virtual void CreatePluginMenu(wxMenu* pluginsMenu); - virtual void HookPopupMenu(wxMenu* menu, MenuType type); - virtual void UnPlug(); - - // Event handlers - void OnSettings(wxCommandEvent& e); - void OnColourTab(clColourEvent& e); - void OnWorkspaceLoaded(clWorkspaceEvent& e); - void OnWorkspaceClosed(clWorkspaceEvent& e); - void OnFileViewBuildTree(clCommandEvent& e); - void OnCustomizeProject(clColourEvent& e); - void OnTabBorderColour(clColourEvent& e); -}; - -#endif // Tweaks diff --git a/Tweaks/tweaks_settings.cpp b/Tweaks/tweaks_settings.cpp deleted file mode 100644 index 87764cab5e..0000000000 --- a/Tweaks/tweaks_settings.cpp +++ /dev/null @@ -1,191 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : tweaks_settings.cpp -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#include "tweaks_settings.h" -#include -#include "workspace.h" - -#define TWEAKS_CONF_FILE "tweaks-settings" - -// -------------------------------------------------------- -// TweaksSettings -// -------------------------------------------------------- - -TweaksSettings::TweaksSettings() - : clConfigItem(TWEAKS_CONF_FILE) - , m_enableTweaks(false) - , m_flags(0) -{ -} - -TweaksSettings::~TweaksSettings() -{ -} - -void TweaksSettings::FromJSON(const JSONItem& json) -{ - m_projects.clear(); - m_globalBgColour = json.namedObject("m_globalBgColour").toColour(); - m_globalFgColour = json.namedObject("m_globalFgColour").toColour(); - m_enableTweaks = json.namedObject("m_enableTweaks").toBool(false); - m_flags = json.namedObject("m_flags").toSize_t(); - - JSONItem arr = json.namedObject("projects"); - int size = arr.arraySize(); - for(int i=0; isecond.ToJSON() ); - } - return e; -} - -TweaksSettings& TweaksSettings::Load() -{ - // Get the file name - if(!clCxxWorkspaceST::Get()->IsOpen()) { - return *this; - } - - wxFileName fn(clCxxWorkspaceST::Get()->GetPrivateFolder(), "tweaks.conf"); - clConfig conf( fn.GetFullPath() ); - conf.ReadItem( this ); - return *this; -} - -void TweaksSettings::Save() -{ - if(!clCxxWorkspaceST::Get()->IsOpen()) { - return; - } - wxFileName fn(clCxxWorkspaceST::Get()->GetPrivateFolder(), "tweaks.conf"); - clConfig conf( fn.GetFullPath() ); - conf.WriteItem( this ); -} - -const ProjectTweaks& TweaksSettings::GetProjectTweaks(const wxString& project) const -{ - if ( m_projects.count(project) ) { - return m_projects.find(project)->second; - } - static ProjectTweaks DUMMY; - return DUMMY; -} - -ProjectTweaks& TweaksSettings::GetProjectTweaks(const wxString& project) -{ - if ( m_projects.count(project) == 0 ) { - // add an entry - ProjectTweaks pt; - pt.SetProjectName(project); - m_projects.insert( std::make_pair(project, pt) ); - } - return m_projects.find( project )->second; -} - -void TweaksSettings::UpdateProject(const ProjectTweaks& pt) -{ - DeleteProject( pt.GetProjectName() ); - m_projects.insert( std::make_pair(pt.GetProjectName(), pt) ); -} - -void TweaksSettings::Clear() -{ - m_projects.clear(); - ResetColours(); - m_enableTweaks = false; - m_flags = 0x0; -} - -void TweaksSettings::DeleteProject(const wxString& name) -{ - if ( m_projects.count(name) ) { - m_projects.erase(name); - } -} - -void TweaksSettings::ResetColours() -{ - m_globalBgColour = wxColour(); - m_globalFgColour = wxColour(); - ProjectTweaks::Map_t::iterator iter = m_projects.begin(); - for(; iter != m_projects.end(); ++iter ) { - iter->second.ResetColours(); - } -} - -// -------------------------------------------------------- -// ProjectTweaks -// -------------------------------------------------------- - -ProjectTweaks::ProjectTweaks() - : clConfigItem("") -{ -} - -ProjectTweaks::~ProjectTweaks() -{ -} - -void ProjectTweaks::FromJSON(const JSONItem& json) -{ - m_tabBgColour = json.namedObject("m_tabBgColour").toColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); - m_tabFgColour = json.namedObject("m_tabFgColour").toColour(*wxBLACK); - m_projectName = json.namedObject("m_projectName").toString(); - m_bitmapFilename = json.namedObject("m_bitmapFilename").toString(); -} - -JSONItem ProjectTweaks::ToJSON() const -{ - JSONItem e = JSONItem::createObject(); - e.addProperty("m_tabFgColour", m_tabFgColour); - e.addProperty("m_tabBgColour", m_tabBgColour); - e.addProperty("m_projectName", m_projectName); - e.addProperty("m_bitmapFilename", m_bitmapFilename); - return e; -} - -void ProjectTweaks::ResetColours() -{ - m_tabBgColour = wxColour(); - m_tabFgColour = wxColour(); -} diff --git a/Tweaks/tweaks_settings.h b/Tweaks/tweaks_settings.h deleted file mode 100644 index a7728a9cfe..0000000000 --- a/Tweaks/tweaks_settings.h +++ /dev/null @@ -1,146 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// copyright : (C) 2014 Eran Ifrah -// file name : tweaks_settings.h -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#ifndef TWEAKSSETTINGS_H -#define TWEAKSSETTINGS_H - -#include "cl_config.h" -#include -#include - -class ProjectTweaks : public clConfigItem -{ - wxColour m_tabFgColour; - wxColour m_tabBgColour; - wxString m_projectName; - wxString m_bitmapFilename; - -public: - typedef std::map Map_t; - -public: - virtual void FromJSON(const JSONItem& json); - virtual JSONItem ToJSON() const; - ProjectTweaks(); - virtual ~ ProjectTweaks(); - - void ResetColours(); - void SetBitmapFilename(const wxString& bitmapFilename) { - this->m_bitmapFilename = bitmapFilename; - } - const wxString& GetBitmapFilename() const { - return m_bitmapFilename; - } - bool IsOk() const { - return !m_projectName.IsEmpty() && m_tabBgColour.IsOk() && m_tabFgColour.IsOk(); - } - void SetTabBgColour(const wxColour& tabBgColour) { - this->m_tabBgColour = tabBgColour; - } - void SetTabFgColour(const wxColour& tabFgColour) { - this->m_tabFgColour = tabFgColour; - } - const wxColour& GetTabBgColour() const { - return m_tabBgColour; - } - const wxColour& GetTabFgColour() const { - return m_tabFgColour; - } - void SetProjectName(const wxString& projectName) { - this->m_projectName = projectName; - } - const wxString& GetProjectName() const { - return m_projectName; - } -}; - -class TweaksSettings : public clConfigItem -{ - ProjectTweaks::Map_t m_projects; - wxColour m_globalBgColour; - wxColour m_globalFgColour; - bool m_enableTweaks; - size_t m_flags; - -public: - enum { - kDontPromptForProjectReload = 0x00000001 - }; - -public: - virtual void FromJSON(const JSONItem& json); - virtual JSONItem ToJSON() const; - - TweaksSettings(); - virtual ~TweaksSettings(); - - TweaksSettings& Load(); - void Clear(); - void ResetColours(); - void Save(); - - bool HasFlag(int flag) const { - return m_flags & kDontPromptForProjectReload; - } - void EnableFlag(int flag, bool b) { - if ( b ) { - m_flags |= flag; - } else { - m_flags &= ~flag; - } - } - - const ProjectTweaks::Map_t& GetProjects() const { - return m_projects; - } - - void SetGlobalBgColour(const wxColour& globalBgColour) { - this->m_globalBgColour = globalBgColour; - } - void SetGlobalFgColour(const wxColour& globalFgColour) { - this->m_globalFgColour = globalFgColour; - } - void SetProjects(const ProjectTweaks::Map_t& projects) { - this->m_projects = projects; - } - const wxColour& GetGlobalBgColour() const { - return m_globalBgColour; - } - const wxColour& GetGlobalFgColour() const { - return m_globalFgColour; - } - void SetEnableTweaks(bool enableTweaks) { - this->m_enableTweaks = enableTweaks; - } - bool IsEnableTweaks() const { - return m_enableTweaks; - } - const ProjectTweaks& GetProjectTweaks(const wxString &project) const; - ProjectTweaks& GetProjectTweaks(const wxString &project); - void UpdateProject(const ProjectTweaks& pt); - void DeleteProject(const wxString& pt); -}; - -#endif // TWEAKSSETTINGS_H diff --git a/Tweaks/wxcrafter.cpp b/Tweaks/wxcrafter.cpp deleted file mode 100644 index 70ba2dbc96..0000000000 --- a/Tweaks/wxcrafter.cpp +++ /dev/null @@ -1,168 +0,0 @@ -////////////////////////////////////////////////////////////////////// -// This file was auto-generated by codelite's wxCrafter Plugin -// wxCrafter project file: wxcrafter.wxcp -// Do not modify this file by hand! -////////////////////////////////////////////////////////////////////// - -#include "wxcrafter.h" - - -// Declare the bitmap loading function -extern void wxC94E6InitBitmapResources(); - -static bool bBitmapLoaded = false; - - -TweaksSettingsDlgBase::TweaksSettingsDlgBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) - : wxDialog(parent, id, title, pos, size, style) -{ - if ( !bBitmapLoaded ) { - // We need to initialise the default bitmap handler - wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler); - wxC94E6InitBitmapResources(); - bBitmapLoaded = true; - } - - wxBoxSizer* boxSizer2 = new wxBoxSizer(wxVERTICAL); - this->SetSizer(boxSizer2); - - m_checkBoxEnableTweaks = new wxCheckBox(this, wxID_ANY, _("Enable Tweaks"), wxDefaultPosition, wxSize(-1,-1), 0); - m_checkBoxEnableTweaks->SetValue(false); - - boxSizer2->Add(m_checkBoxEnableTweaks, 0, wxALL, 5); - - m_notebook12 = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxSize(400,-1), wxBK_DEFAULT); - m_notebook12->SetName(wxT("m_notebook12")); - - boxSizer2->Add(m_notebook12, 1, wxALL|wxEXPAND, 5); - - m_tabEditorTabsColours = new wxPanel(m_notebook12, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL); - m_notebook12->AddPage(m_tabEditorTabsColours, _("Editor Tabs"), true); - - wxBoxSizer* boxSizer126 = new wxBoxSizer(wxVERTICAL); - m_tabEditorTabsColours->SetSizer(boxSizer126); - - m_banner136 = new wxBannerWindow(m_tabEditorTabsColours, wxID_ANY, wxTOP, wxDefaultPosition, wxSize(-1,-1), wxBORDER_THEME); - m_banner136->SetBitmap(wxNullBitmap); - m_banner136->SetText(_("Configure Editor Tab Colours"), _("Customize your editor tab colours globally or per project")); - m_banner136->SetGradient(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK), wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK)); - m_banner136->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT)); - - boxSizer126->Add(m_banner136, 0, wxALL|wxEXPAND, 5); - - wxArrayString m_pgMgrTabColoursArr; - wxUnusedVar(m_pgMgrTabColoursArr); - wxArrayInt m_pgMgrTabColoursIntArr; - wxUnusedVar(m_pgMgrTabColoursIntArr); - m_pgMgrTabColours = new wxPropertyGridManager(m_tabEditorTabsColours, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED); - - boxSizer126->Add(m_pgMgrTabColours, 1, wxALL|wxEXPAND, 5); - - m_pgProp114 = m_pgMgrTabColours->Append( new wxPropertyCategory( _("Global Tab Colours") ) ); - m_pgProp114->SetHelpString(wxT("")); - - m_pgPropGlobalTabBG = m_pgMgrTabColours->AppendIn( m_pgProp114, new wxSystemColourProperty( _("Tab Label Background Colour")) ); - m_pgPropGlobalTabBG->SetValueToUnspecified(); - m_pgPropGlobalTabBG->SetHelpString(wxT("")); - - m_pgPropGlobalTabFG = m_pgMgrTabColours->AppendIn( m_pgProp114, new wxSystemColourProperty( _("Tab Label Text Colour")) ); - m_pgPropGlobalTabFG->SetValueToUnspecified(); - m_pgPropGlobalTabFG->SetHelpString(wxT("")); - - m_pgPropProjectsColours = m_pgMgrTabColours->Append( new wxPropertyCategory( _("Tab Colours Per Project") ) ); - m_pgPropProjectsColours->SetHelpString(wxT("")); - - wxBoxSizer* boxSizer122 = new wxBoxSizer(wxVERTICAL); - - boxSizer126->Add(boxSizer122, 0, wxEXPAND, 5); - - m_button124 = new wxButton(m_tabEditorTabsColours, wxID_CLEAR, _("&Reset colours"), wxDefaultPosition, wxSize(-1,-1), 0); - m_button124->SetToolTip(_("Reset colours")); - - boxSizer122->Add(m_button124, 0, wxALL|wxEXPAND, 5); - - m_tabProjectIcons = new wxPanel(m_notebook12, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL); - m_notebook12->AddPage(m_tabProjectIcons, _("Images"), false); - - wxBoxSizer* boxSizer241 = new wxBoxSizer(wxVERTICAL); - m_tabProjectIcons->SetSizer(boxSizer241); - - m_banner138 = new wxBannerWindow(m_tabProjectIcons, wxID_ANY, wxTOP, wxDefaultPosition, wxSize(-1,-1), wxBORDER_THEME); - m_banner138->SetBitmap(wxNullBitmap); - m_banner138->SetText(_("Configure Project Images"), _("Set a different image for a every project in the workspace")); - m_banner138->SetGradient(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK), wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK)); - m_banner138->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT)); - - boxSizer241->Add(m_banner138, 0, wxALL|wxEXPAND, 5); - - wxArrayString m_pgMgrArr; - wxUnusedVar(m_pgMgrArr); - wxArrayInt m_pgMgrIntArr; - wxUnusedVar(m_pgMgrIntArr); - m_pgMgr = new wxPropertyGridManager(m_tabProjectIcons, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED); - - boxSizer241->Add(m_pgMgr, 1, wxALL|wxEXPAND, 5); - - m_pgPropProjects = m_pgMgr->Append( new wxPropertyCategory( _("Projects") ) ); - m_pgPropProjects->SetHelpString(wxT("")); - - wxBoxSizer* boxSizer4 = new wxBoxSizer(wxHORIZONTAL); - - boxSizer2->Add(boxSizer4, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5); - - m_button8 = new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxSize(-1,-1), 0); - - boxSizer4->Add(m_button8, 0, wxALL, 5); - - m_button88 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1,-1), 0); - m_button88->SetDefault(); - m_button88->SetFocus(); - - boxSizer4->Add(m_button88, 0, wxALL, 5); - - - #if wxVERSION_NUMBER >= 2900 - if(!wxPersistenceManager::Get().Find(m_notebook12)){ - wxPersistenceManager::Get().RegisterAndRestore(m_notebook12); - } else { - wxPersistenceManager::Get().Restore(m_notebook12); - } - #endif - - SetName(wxT("TweaksSettingsDlgBase")); - SetSizeHints(-1,-1); - if ( GetSizer() ) { - GetSizer()->Fit(this); - } - CentreOnParent(wxBOTH); -#if wxVERSION_NUMBER >= 2900 - if(!wxPersistenceManager::Get().Find(this)) { - wxPersistenceManager::Get().RegisterAndRestore(this); - } else { - wxPersistenceManager::Get().Restore(this); - } -#endif - // Connect events - m_checkBoxEnableTweaks->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(TweaksSettingsDlgBase::OnEnableTweaks), NULL, this); - m_checkBoxEnableTweaks->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableTweaksCheckboxUI), NULL, this); - m_notebook12->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableTweaksUI), NULL, this); - m_banner136->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableColoursTableUI), NULL, this); - m_pgMgrTabColours->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(TweaksSettingsDlgBase::OnColourChanged), NULL, this); - m_pgMgrTabColours->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableColoursTableUI), NULL, this); - m_button124->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TweaksSettingsDlgBase::OnResetColours), NULL, this); - m_pgMgr->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(TweaksSettingsDlgBase::OnImageSelected), NULL, this); - -} - -TweaksSettingsDlgBase::~TweaksSettingsDlgBase() -{ - m_checkBoxEnableTweaks->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(TweaksSettingsDlgBase::OnEnableTweaks), NULL, this); - m_checkBoxEnableTweaks->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableTweaksCheckboxUI), NULL, this); - m_notebook12->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableTweaksUI), NULL, this); - m_banner136->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableColoursTableUI), NULL, this); - m_pgMgrTabColours->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(TweaksSettingsDlgBase::OnColourChanged), NULL, this); - m_pgMgrTabColours->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(TweaksSettingsDlgBase::OnEnableColoursTableUI), NULL, this); - m_button124->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(TweaksSettingsDlgBase::OnResetColours), NULL, this); - m_pgMgr->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(TweaksSettingsDlgBase::OnImageSelected), NULL, this); - -} diff --git a/Tweaks/wxcrafter.h b/Tweaks/wxcrafter.h deleted file mode 100644 index f75d4e35e9..0000000000 --- a/Tweaks/wxcrafter.h +++ /dev/null @@ -1,103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -// -// Copyright : (C) 2015 Eran Ifrah -// File name : wxcrafter.h -// -// ------------------------------------------------------------------------- -// A -// _____ _ _ _ _ -// / __ \ | | | | (_) | -// | / \/ ___ __| | ___| | _| |_ ___ -// | | / _ \ / _ |/ _ \ | | | __/ _ ) -// | \__/\ (_) | (_| | __/ |___| | || __/ -// \____/\___/ \__,_|\___\_____/_|\__\___| -// -// F i l e -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////// -// This file was auto-generated by codelite's wxCrafter Plugin -// wxCrafter project file: wxcrafter.wxcp -// Do not modify this file by hand! -////////////////////////////////////////////////////////////////////// - -#ifndef CODELITE_TWEAKS_WXCRAFTER_BASE_CLASSES_H -#define CODELITE_TWEAKS_WXCRAFTER_BASE_CLASSES_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if wxVERSION_NUMBER >= 2900 -#include -#include -#include -#include -#endif - -class TweaksSettingsDlgBase : public wxDialog -{ -protected: - wxCheckBox* m_checkBoxEnableTweaks; - wxNotebook* m_notebook12; - wxPanel* m_tabEditorTabsColours; - wxBannerWindow* m_banner136; - wxPropertyGridManager* m_pgMgrTabColours; - wxPGProperty* m_pgProp114; - wxPGProperty* m_pgPropGlobalTabBG; - wxPGProperty* m_pgPropGlobalTabFG; - wxPGProperty* m_pgPropProjectsColours; - wxButton* m_button124; - wxPanel* m_tabProjectIcons; - wxBannerWindow* m_banner138; - wxPropertyGridManager* m_pgMgr; - wxPGProperty* m_pgPropProjects; - wxButton* m_button8; - wxButton* m_button88; - -protected: - virtual void OnEnableTweaks(wxCommandEvent& event) { event.Skip(); } - virtual void OnEnableTweaksCheckboxUI(wxUpdateUIEvent& event) { event.Skip(); } - virtual void OnEnableTweaksUI(wxUpdateUIEvent& event) { event.Skip(); } - virtual void OnEnableColoursTableUI(wxUpdateUIEvent& event) { event.Skip(); } - virtual void OnColourChanged(wxPropertyGridEvent& event) { event.Skip(); } - virtual void OnResetColours(wxCommandEvent& event) { event.Skip(); } - virtual void OnImageSelected(wxPropertyGridEvent& event) { event.Skip(); } - -public: - wxCheckBox* GetCheckBoxEnableTweaks() { return m_checkBoxEnableTweaks; } - wxBannerWindow* GetBanner136() { return m_banner136; } - wxPropertyGridManager* GetPgMgrTabColours() { return m_pgMgrTabColours; } - wxButton* GetButton124() { return m_button124; } - wxPanel* GetTabEditorTabsColours() { return m_tabEditorTabsColours; } - wxBannerWindow* GetBanner138() { return m_banner138; } - wxPropertyGridManager* GetPgMgr() { return m_pgMgr; } - wxPanel* GetTabProjectIcons() { return m_tabProjectIcons; } - wxNotebook* GetNotebook12() { return m_notebook12; } - wxButton* GetButton8() { return m_button8; } - wxButton* GetButton88() { return m_button88; } - TweaksSettingsDlgBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Tweaks Setting"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER); - virtual ~TweaksSettingsDlgBase(); -}; - -#endif diff --git a/Tweaks/wxcrafter.wxcp b/Tweaks/wxcrafter.wxcp deleted file mode 100644 index 7695729b22..0000000000 --- a/Tweaks/wxcrafter.wxcp +++ /dev/null @@ -1,1554 +0,0 @@ -{ - "metadata": { - "m_generatedFilesDir": ".", - "m_objCounter": 138, - "m_includeFiles": [], - "m_bitmapFunction": "wxC94E6InitBitmapResources", - "m_bitmapsFile": "wxcrafter_tweaks_bitmaps.cpp", - "m_GenerateCodeTypes": 1, - "m_outputFileName": "", - "m_firstWindowId": 1000, - "m_useEnum": false, - "m_templateClasses": [] - }, - "windows": [{ - "m_type": 4421, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxDEFAULT_DIALOG_STYLE", "wxRESIZE_BORDER"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "TweaksSettingsDlgBase" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Enable Window Persistency:", - "m_value": true - }, { - "type": "string", - "m_label": "Title:", - "m_value": "Tweaks Setting" - }, { - "type": "virtualFolderPicker", - "m_label": "Virtual Folder:", - "m_path": "Tweaks:UI" - }, { - "type": "choice", - "m_label": "Centre:", - "m_selection": 1, - "m_options": ["", "wxBOTH", "wxVERTICAL", "wxHORIZONTAL"] - }, { - "type": "string", - "m_label": "Inherited Class", - "m_value": "TweaksSettingsDlg" - }, { - "type": "string", - "m_label": "File:", - "m_value": "TweaksSettingsDlg" - }, { - "type": "string", - "m_label": "Class Decorator", - "m_value": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File (16x16) :", - "m_path": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File (32x32) :", - "m_path": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File (64x64) :", - "m_path": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File (128x128):", - "m_path": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File (256x256):", - "m_path": "" - }], - "m_events": [], - "m_children": [{ - "m_type": 4401, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "boxSizer2" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxVERTICAL", "wxHORIZONTAL"] - }], - "m_events": [], - "m_children": [{ - "m_type": 4415, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_checkBoxEnableTweaks" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Enable Tweaks" - }, { - "type": "bool", - "m_label": "Value:", - "m_value": false - }], - "m_events": [{ - "m_eventName": "wxEVT_COMMAND_CHECKBOX_CLICKED", - "m_eventClass": "wxCommandEvent", - "m_eventHandler": "wxCommandEventHandler", - "m_functionNameAndSignature": "OnEnableTweaks(wxCommandEvent& event)", - "m_description": "Process a wxEVT_COMMAND_CHECKBOX_CLICKED event, when the checkbox is clicked.", - "m_noBody": false - }, { - "m_eventName": "wxEVT_UPDATE_UI", - "m_eventClass": "wxUpdateUIEvent", - "m_eventHandler": "wxUpdateUIEventHandler", - "m_functionNameAndSignature": "OnEnableTweaksCheckboxUI(wxUpdateUIEvent& event)", - "m_description": "Process a wxEVT_UPDATE_UI event", - "m_noBody": false - }], - "m_children": [] - }, { - "m_type": 4442, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxBK_DEFAULT"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "400,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_notebook12" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }], - "m_events": [{ - "m_eventName": "wxEVT_UPDATE_UI", - "m_eventClass": "wxUpdateUIEvent", - "m_eventHandler": "wxUpdateUIEventHandler", - "m_functionNameAndSignature": "OnEnableTweaksUI(wxUpdateUIEvent& event)", - "m_description": "Process a wxEVT_UPDATE_UI event", - "m_noBody": false - }], - "m_children": [{ - "m_type": 4441, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxTAB_TRAVERSAL"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_tabEditorTabsColours" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Editor Tabs" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "bool", - "m_label": "Selected", - "m_value": true - }, { - "type": "bool", - "m_label": "Null Page", - "m_value": false - }], - "m_events": [], - "m_children": [{ - "m_type": 4401, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "boxSizer126" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxVERTICAL", "wxHORIZONTAL"] - }], - "m_events": [], - "m_children": [{ - "m_type": 4471, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxBORDER_THEME"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_banner136" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "TooltipText" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Title:", - "m_value": "Configure Editor Tab Colours" - }, { - "type": "multi-string", - "m_label": "Message:", - "m_value": "Customize your editor tab colours globally or per project" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxTOP", "wxBOTTOM", "wxLEFT", "wxRIGHT"] - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "colour", - "m_label": "Gradient Start", - "colour": "Tooltip" - }, { - "type": "colour", - "m_label": "Gradient End", - "colour": "Tooltip" - }], - "m_events": [{ - "m_eventName": "wxEVT_UPDATE_UI", - "m_eventClass": "wxUpdateUIEvent", - "m_eventHandler": "wxUpdateUIEventHandler", - "m_functionNameAndSignature": "OnEnableColoursTableUI(wxUpdateUIEvent& event)", - "m_description": "Process a wxEVT_UPDATE_UI event", - "m_noBody": false - }], - "m_children": [] - }, { - "m_type": 4485, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxPG_SPLITTER_AUTO_CENTER", "wxPG_BOLD_MODIFIED"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_pgMgrTabColours" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "integer", - "m_label": "Sash Position:", - "m_value": -1 - }, { - "type": "bool", - "m_label": "Set Splitter Left:", - "m_value": false - }], - "m_events": [{ - "m_eventName": "wxEVT_PG_CHANGED", - "m_eventClass": "wxPropertyGridEvent", - "m_eventHandler": "wxPropertyGridEventHandler", - "m_functionNameAndSignature": "OnColourChanged(wxPropertyGridEvent& event)", - "m_description": "Respond to wxEVT_PG_CHANGED event, generated when property value has been changed by the user", - "m_noBody": false - }, { - "m_eventName": "wxEVT_UPDATE_UI", - "m_eventClass": "wxUpdateUIEvent", - "m_eventHandler": "wxUpdateUIEventHandler", - "m_functionNameAndSignature": "OnEnableColoursTableUI(wxUpdateUIEvent& event)", - "m_description": "Process a wxEVT_UPDATE_UI event", - "m_noBody": false - }], - "m_children": [{ - "m_type": 4486, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_pgProp114" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Global Tab Colours" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "choice", - "m_label": "Property Editor Control", - "m_selection": 0, - "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"] - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"] - }, { - "type": "string", - "m_label": "String Value", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Array Integer Values", - "m_value": "" - }, { - "type": "bool", - "m_label": "Bool Value", - "m_value": true - }, { - "type": "string", - "m_label": "Wildcard", - "m_value": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Initial Colour", - "colour": "" - }], - "m_events": [], - "m_children": [{ - "m_type": 4486, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_pgPropGlobalTabBG" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Tab Label Background Colour" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "choice", - "m_label": "Property Editor Control", - "m_selection": 0, - "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"] - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 15, - "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"] - }, { - "type": "string", - "m_label": "String Value", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Array Integer Values", - "m_value": "" - }, { - "type": "bool", - "m_label": "Bool Value", - "m_value": true - }, { - "type": "string", - "m_label": "Wildcard", - "m_value": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Initial Colour", - "colour": "" - }], - "m_events": [], - "m_children": [] - }, { - "m_type": 4486, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_pgPropGlobalTabFG" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Tab Label Text Colour" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "choice", - "m_label": "Property Editor Control", - "m_selection": 0, - "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"] - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 15, - "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"] - }, { - "type": "string", - "m_label": "String Value", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Array Integer Values", - "m_value": "" - }, { - "type": "bool", - "m_label": "Bool Value", - "m_value": true - }, { - "type": "string", - "m_label": "Wildcard", - "m_value": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Initial Colour", - "colour": "" - }], - "m_events": [], - "m_children": [] - }] - }, { - "m_type": 4486, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_pgPropProjectsColours" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Tab Colours Per Project" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "choice", - "m_label": "Property Editor Control", - "m_selection": 0, - "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"] - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"] - }, { - "type": "string", - "m_label": "String Value", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Array Integer Values", - "m_value": "" - }, { - "type": "bool", - "m_label": "Bool Value", - "m_value": true - }, { - "type": "string", - "m_label": "Wildcard", - "m_value": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Initial Colour", - "colour": "" - }], - "m_events": [], - "m_children": [] - }] - }, { - "m_type": 4401, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxEXPAND"], - "m_properties": [{ - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "boxSizer122" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxVERTICAL", "wxHORIZONTAL"] - }], - "m_events": [], - "m_children": [{ - "m_type": 4400, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_CLEAR" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_button124" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "Reset colours" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "&Reset colours" - }, { - "type": "bool", - "m_label": "Default Button", - "m_value": false - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "choice", - "m_label": "Direction", - "m_selection": 0, - "m_options": ["wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"] - }, { - "type": "string", - "m_label": "Margins:", - "m_value": "2,2" - }], - "m_events": [{ - "m_eventName": "wxEVT_COMMAND_BUTTON_CLICKED", - "m_eventClass": "wxCommandEvent", - "m_eventHandler": "wxCommandEventHandler", - "m_functionNameAndSignature": "OnResetColours(wxCommandEvent& event)", - "m_description": "Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.", - "m_noBody": false - }], - "m_children": [] - }] - }] - }] - }, { - "m_type": 4441, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxTAB_TRAVERSAL"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_tabProjectIcons" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Images" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "bool", - "m_label": "Selected", - "m_value": false - }, { - "type": "bool", - "m_label": "Null Page", - "m_value": false - }], - "m_events": [], - "m_children": [{ - "m_type": 4401, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxEXPAND"], - "m_properties": [{ - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "boxSizer241" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxVERTICAL", "wxHORIZONTAL"] - }], - "m_events": [], - "m_children": [{ - "m_type": 4471, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxBORDER_THEME"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_banner138" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "TooltipText" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Title:", - "m_value": "Configure Project Images" - }, { - "type": "multi-string", - "m_label": "Message:", - "m_value": "Set a different image for a every project in the workspace" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 0, - "m_options": ["wxTOP", "wxBOTTOM", "wxLEFT", "wxRIGHT"] - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "colour", - "m_label": "Gradient Start", - "colour": "Tooltip" - }, { - "type": "colour", - "m_label": "Gradient End", - "colour": "Tooltip" - }], - "m_events": [], - "m_children": [] - }, { - "m_type": 4485, - "proportion": 1, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": ["wxPG_SPLITTER_AUTO_CENTER", "wxPG_BOLD_MODIFIED"], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_pgMgr" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "integer", - "m_label": "Sash Position:", - "m_value": -1 - }, { - "type": "bool", - "m_label": "Set Splitter Left:", - "m_value": false - }], - "m_events": [{ - "m_eventName": "wxEVT_PG_CHANGED", - "m_eventClass": "wxPropertyGridEvent", - "m_eventHandler": "wxPropertyGridEventHandler", - "m_functionNameAndSignature": "OnImageSelected(wxPropertyGridEvent& event)", - "m_description": "Respond to wxEVT_PG_CHANGED event, generated when property value has been changed by the user", - "m_noBody": false - }], - "m_children": [{ - "m_type": 4486, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_pgPropProjects" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Projects" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "choice", - "m_label": "Property Editor Control", - "m_selection": 0, - "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"] - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"] - }, { - "type": "string", - "m_label": "String Value", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Array Integer Values", - "m_value": "" - }, { - "type": "bool", - "m_label": "Bool Value", - "m_value": true - }, { - "type": "string", - "m_label": "Wildcard", - "m_value": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Initial Colour", - "colour": "" - }], - "m_events": [], - "m_children": [] - }] - }] - }] - }] - }, { - "m_type": 4401, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxALIGN_CENTER_HORIZONTAL"], - "m_properties": [{ - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "boxSizer4" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "choice", - "m_label": "Orientation:", - "m_selection": 1, - "m_options": ["wxVERTICAL", "wxHORIZONTAL"] - }], - "m_events": [], - "m_children": [{ - "m_type": 4400, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_CANCEL" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_button8" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "&Cancel" - }, { - "type": "bool", - "m_label": "Default Button", - "m_value": false - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "choice", - "m_label": "Direction", - "m_selection": 0, - "m_options": ["wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"] - }, { - "type": "string", - "m_label": "Margins:", - "m_value": "2,2" - }], - "m_events": [], - "m_children": [] - }, { - "m_type": 4400, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_OK" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_button88" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": true - }, { - "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "&OK" - }, { - "type": "bool", - "m_label": "Default Button", - "m_value": true - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "" - }, { - "type": "choice", - "m_label": "Direction", - "m_selection": 0, - "m_options": ["wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"] - }, { - "type": "string", - "m_label": "Margins:", - "m_value": "2,2" - }], - "m_events": [], - "m_children": [] - }] - }] - }] - }] -} \ No newline at end of file diff --git a/Tweaks/wxcrafter_tweaks_bitmaps.cpp b/Tweaks/wxcrafter_tweaks_bitmaps.cpp deleted file mode 100644 index 5dcd1617d5..0000000000 --- a/Tweaks/wxcrafter_tweaks_bitmaps.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// -// This file was automatically generated by wxrc, do not edit by hand. -// - -#include - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#include -#include -#include -#include - -#if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805 - #define XRC_ADD_FILE(name, data, size, mime) \ - wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime) -#else - #define XRC_ADD_FILE(name, data, size, mime) \ - wxMemoryFSHandler::AddFile(name, data, size) -#endif - -static size_t xml_res_size_0 = 90; -static unsigned char xml_res_file_0[] = { -60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101, -110,99,111,100,105,110,103,61,34,85,84,70,45,56,34,63,62,10,60,114,101, -115,111,117,114,99,101,32,120,109,108,110,115,61,34,104,116,116,112,58, -47,47,119,119,119,46,119,120,119,105,110,100,111,119,115,46,111,114,103, -47,119,120,120,114,99,34,47,62,10}; - -void wxC94E6InitBitmapResources() -{ - - // Check for memory FS. If not present, load the handler: - { - wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one")); - wxFileSystem fsys; - wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); - wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); - if (f) delete f; - else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase); - } - - XRC_ADD_FILE(wxT("XRC_resource/wxcrafter_tweaks_bitmaps.cpp$C__src_codelite_Tweaks_wxcrafter_tweaks_bitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml")); - wxXmlResource::Get()->Load(wxT("memory:XRC_resource/wxcrafter_tweaks_bitmaps.cpp$C__src_codelite_Tweaks_wxcrafter_tweaks_bitmaps.xrc")); -}