added: to gallery plugin: gallery_theme() mount option
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@718 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -31,6 +31,7 @@ public:
|
||||
|
||||
int mount_par_gallery_size;
|
||||
|
||||
int mount_par_gallery_theme;
|
||||
|
||||
|
||||
// "lightbox" (default)
|
||||
|
@@ -46,11 +46,12 @@ void AddMounts(PluginInfo & info)
|
||||
{
|
||||
Mounts & m = info.system->mounts;
|
||||
|
||||
gallery_info.mount_type_gallery = m.AddMountType(L"gallery");
|
||||
gallery_info.mount_type_gallery = m.AddMountType(L"gallery");
|
||||
|
||||
gallery_info.mount_par_gallery = m.AddMountPar(L"gallery");
|
||||
gallery_info.mount_par_gallery_size = m.AddMountPar(L"gallery_size");
|
||||
gallery_info.mount_par_gallery_type = m.AddMountPar(L"gallery_type");
|
||||
gallery_info.mount_par_gallery = m.AddMountPar(L"gallery");
|
||||
gallery_info.mount_par_gallery_size = m.AddMountPar(L"gallery_size");
|
||||
gallery_info.mount_par_gallery_type = m.AddMountPar(L"gallery_type");
|
||||
gallery_info.mount_par_gallery_theme = m.AddMountPar(L"gallery_theme");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -133,6 +133,13 @@ void gallery_mount_type_arg_is(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void gallery_mount_theme_arg_is(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->IsArg(gallery_info.mount_par_gallery_theme, i.par);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void AddEzcFunctions(PluginInfo & info)
|
||||
{
|
||||
@@ -148,7 +155,8 @@ void AddEzcFunctions(PluginInfo & info)
|
||||
fun->Insert("gallery_width", gallery_width);
|
||||
fun->Insert("gallery_height", gallery_height);
|
||||
fun->Insert("gallery_has_not_mount_type", gallery_has_not_mount_type);
|
||||
fun->Insert("gallery_mount_type_arg_is", gallery_mount_type_arg_is);
|
||||
fun->Insert("gallery_mount_type_arg_is", gallery_mount_type_arg_is);
|
||||
fun->Insert("gallery_mount_theme_arg_is", gallery_mount_theme_arg_is);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user