Improvement to plugin system:

- made config page system more automatic, to allow addign config pages from plugins
- added (disabled) checkbox and function to allow all plugins for development
- added config page methods to RsPlugin class



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4957 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-02-18 14:55:50 +00:00
parent 13283b40ee
commit 5679a30e67
25 changed files with 220 additions and 300 deletions

View file

@ -21,7 +21,7 @@
#pragma once
#include "configpage.h"
#include <retroshare-gui/configpage.h>
#include "ui_PluginsPage.h"
class PluginsPage : public ConfigPage
@ -33,13 +33,18 @@ class PluginsPage : public ConfigPage
~PluginsPage();
/** Saves the changes on this page */
bool save(QString &errmsg);
virtual bool save(QString &errmsg);
/** Loads the settings for this page */
void load();
virtual void load();
virtual QPixmap iconPixmap() const { return QPixmap(":/images/extension_32.png") ; }
virtual QString pageName() const { return tr("Plugins") ; }
public slots:
void togglePlugin(bool b,const QString&) ;
void configurePlugin(int i) ;
void toggleEnableAll(bool) ;
private:
Ui::PluginsPage ui;