diff options
-rw-r--r-- | Plugins/skins/Docs/skins_readme.txt | 25 | ||||
-rw-r--r-- | Plugins/skins/SkinLib/FieldState.h | 4 | ||||
-rw-r--r-- | Plugins/skins/ZIP/doit.bat | 48 |
3 files changed, 43 insertions, 34 deletions
diff --git a/Plugins/skins/Docs/skins_readme.txt b/Plugins/skins/Docs/skins_readme.txt index 7fa563c..00ae715 100644 --- a/Plugins/skins/Docs/skins_readme.txt +++ b/Plugins/skins/Docs/skins_readme.txt @@ -2,3 +2,28 @@ Skins plugin ----------------
CAUTION: THIS IS AN ALPHA STAGE PLUGIN. IT CAN DO VERY BAD THINGS. USE AT YOUR OWN RISK.
+
+This is a service plugin to allow using different skins. It uses javascript as the language the skins are written, thus allowing a lot of flexibility.
+
+Keep in mind that this is an initial version of the plugin. It is intended to grow a loot (its to do list is bigger than its features list :P ). Currently it allows only calculating the position of elements.
+
+It works based in the consept of a skin beeing a group of small skins (one for each client). The skins are inside the dir <Miranda>\Skins\<Skin name> , and inside that folder, each client skin has the name <Client>.msk
+
+Inside the zip there is also a version of MyDetails using this plugin.
+
+Many thanks to the v8 team for the javascript engine implementation.
+
+This needs Miranda 0.8 to work.
+
+
+TODO:
+ - Allow changing skin without restart
+ - Add support for handling skin packs
+ - Add support for emoticons in text fields
+ - Add code to draw elements on screen
+ - Add service to create a new frame only based on the fields
+ - Allow setting variables by the users of the plugin
+
+
+KNOWN PROBLEMS:
+ - It seems to have a memory leak (last time I debugged it, it was inside v8 - maybe I just don't understant its garbage collector?)
diff --git a/Plugins/skins/SkinLib/FieldState.h b/Plugins/skins/SkinLib/FieldState.h index ff54e54..201e12c 100644 --- a/Plugins/skins/SkinLib/FieldState.h +++ b/Plugins/skins/SkinLib/FieldState.h @@ -9,8 +9,8 @@ class DialogState; enum HORIZONTAL_ALIGN
{
LEFT = 1,
- RIGHT,
- CENTER
+ CENTER,
+ RIGHT
};
diff --git a/Plugins/skins/ZIP/doit.bat b/Plugins/skins/ZIP/doit.bat index 5b7107e..3d1ea7d 100644 --- a/Plugins/skins/ZIP/doit.bat +++ b/Plugins/skins/ZIP/doit.bat @@ -11,53 +11,44 @@ rem set ftp=ftp://<user>:<password>@<ftp>/<path> echo Building %name% ...
-msdev ..\%name%.dsp /MAKE "%name% - Win32 Release" /REBUILD
-msdev ..\%name%.dsp /MAKE "%name% - Win32 Unicode Release" /REBUILD
+rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Release" /REBUILD
+rem msdev ..\%name%.dsp /MAKE "%name% - Win32 Unicode Release" /REBUILD
echo Generating files for %name% ...
del *.zip
del *.dll
del *.pdb
+rd /S /Q Plugins
+rd /S /Q Docs
+rd /S /Q Skins
+rd /S /Q src
copy ..\Docs\%name%_changelog.txt
copy ..\Docs\%name%_version.txt
copy ..\Docs\%name%_readme.txt
mkdir Skins
+cd Skins
+mkdir Default
+cd Default
+copy ..\..\..\..\mydetails\data\Skins\Default\*.msk
+cd..
+cd..
mkdir Docs
cd Docs
del /Q *.*
copy ..\..\Docs\%name%_readme.txt
copy ..\..\Docs\langpack_%name%.txt
-rem copy ..\..\m_%name%.h
-cd ..
-mkdir src
-cd src
-del /Q *.*
-copy ..\..\*.h
-copy ..\..\*.c*
-copy ..\..\*.
-copy ..\..\*.rc
-copy ..\..\*.dsp
-copy ..\..\*.dsw
-mkdir Docs
-cd Docs
-del /Q *.*
-copy ..\..\..\Docs\*.*
-cd ..
-mkdir sdk
-cd sdk
-del /Q *.*
-copy ..\..\..\sdk\*.*
-cd ..
+copy ..\..\m_%name%.h
+copy ..\..\m_%name%_cpp.h
cd ..
copy ..\Release\%name%.pdb
copy "..\Unicode_Release\%name%W.pdb"
-pause
-
+mkdir Plugins
cd Plugins
copy "..\..\..\..\bin\release unicode\Plugins\%name%W.dll"
+copy "..\..\..\..\bin\release\Plugins\mydetails.dll"
cd ..
"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%W.zip Plugins Docs Skins
@@ -93,13 +84,6 @@ pause "C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_version.txt %ftp% -overwrite -close
"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_readme.txt %ftp% -overwrite -close
-if "%ftp2%"=="" GOTO END
-
-"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.zip %ftp2% -overwrite -close
-"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%W.zip %ftp2% -overwrite -close
-"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_changelog.txt %ftp2% -overwrite -close
-"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_version.txt %ftp2% -overwrite -close
-"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_readme.txt %ftp2% -overwrite -close
:END
|