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