# HG changeset patch # User thomas_-_s # Date 1213602451 0 # Node ID e3215923077a761338441bdda0282d050ec9ab80 # Parent 0d58db39775f71138bb92894db9ee48d80b35b1d Adapted the Notepad++ plugin to make use of the new class SettingsPaths. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@731 59b1889a-e5ac-428c-b0c7-476e01d41282 diff -r 0d58db39775f -r e3215923077a src/SettingsPaths.cpp --- a/src/SettingsPaths.cpp Mon Jun 16 07:23:56 2008 +0000 +++ b/src/SettingsPaths.cpp Mon Jun 16 07:47:31 2008 +0000 @@ -33,6 +33,11 @@ void SettingsPaths::init() { // Get the applications binary path, with respect to MacOSXs use of the .app folder. applicationBinaryPath = QCoreApplication::applicationDirPath(); + +#ifdef UNIVERSALINDENTGUI_NPP_EXPORTS + applicationBinaryPath += "/plugins/uigui"; +#endif + #ifdef Q_OS_MAC // Because on Mac universal binaries are used, the binary path is not equal // to the applications (.app) path. So get the .apps path here. @@ -84,6 +89,8 @@ #endif dirCreator.mkpath( tempPath ); } + + alreadyInitialized = true; } diff -r 0d58db39775f -r e3215923077a src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.cpp --- a/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.cpp Mon Jun 16 07:23:56 2008 +0000 +++ b/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.cpp Mon Jun 16 07:47:31 2008 +0000 @@ -64,7 +64,7 @@ int argc = 1; char *argv[] = {"setup", NULL}; static QApplication qapp(argc, argv); - indentHandler = new IndentHandler("E:/EigeneDateien/Dokumente/Informatik/UniversalIndentGUI/indenters", "E:/EigeneDateien/Dokumente/Informatik/UniversalIndentGUI/config", "E:/EigeneDateien/Dokumente/Informatik/UniversalIndentGUI/temp", 0); + indentHandler = new IndentHandler( SettingsPaths::getIndenterPath(), SettingsPaths::getSettingsPath(), SettingsPaths::getTempPath(), 0); indentHandler->setWindowModality( Qt::ApplicationModal ); indentHandler->setWindowTitle("UniversalIndentGUI"); //qapp.setActiveWindow(indentHandler); diff -r 0d58db39775f -r e3215923077a src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.h --- a/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.h Mon Jun 16 07:23:56 2008 +0000 +++ b/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.h Mon Jun 16 07:47:31 2008 +0000 @@ -28,6 +28,8 @@ #include "Scintilla.h" #include +#include "SettingsPaths.h" + /* menu position in funcItem */ #define TOGGLE_DOCKABLE_WINDOW_INDEX 0 diff -r 0d58db39775f -r e3215923077a src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.vcproj --- a/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.vcproj Mon Jun 16 07:23:56 2008 +0000 +++ b/src/UniversalIndentGUI_NPP/UniversalIndentGUI_NPP.vcproj Mon Jun 16 07:47:31 2008 +0000 @@ -77,7 +77,7 @@ + + @@ -273,6 +277,10 @@ + +