org.kde.koala
public class KPluginSelector extends QWidget
UNKNOWN: A widget to select what plugins to load and configure the plugins.
Constructor Summary | |
---|---|
protected | KPluginSelector(Class dummy) |
KPluginSelector(QWidget parent, String name)
Create a new KPluginSelector. | |
KPluginSelector(QWidget parent) |
Method Summary | |
---|---|
void | addPlugins(String instanceName, String catname, String category, KConfig config)
Add a list of KParts plugins
If you want to support non-KParts plugins use the following
function.
|
void | addPlugins(String instanceName, String catname, String category) |
void | addPlugins(String instanceName, String catname) |
void | addPlugins(String instanceName) |
void | addPlugins(KInstanceInterface instance, String catname, String category, KConfig config)
Add a list of KParts plugins. |
void | addPlugins(KInstanceInterface instance, String catname, String category) |
void | addPlugins(KInstanceInterface instance, String catname) |
void | addPlugins(KInstanceInterface instance) |
String | className() |
void | defaults()
Change to applications defaults |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
void | load()
Load the state of the plugins (selected or not) from the KPluginInfo
objects. |
QMetaObject | metaObject() |
void | save()
Save the configuration |
void | setShowEmptyConfigPage(boolean arg1)
Set whether the area for showing the KCMs of the plugins should be
hidden if the plugin doesn't have a KCM or whether the layout should
rather stay static and only an message should be shown.
|
UNKNOWN: Create a new KPluginSelector.
Parameters: instanceName The name of the KInstance of the plugin's parent. catname The translated name of the category. This is the
name that is shown in the TabWidget if there is
more than one category. category When you have different categories of KParts
plugins you distinguish between the plugins using
the Category key in the .desktop file. Use this
parameter to select only those KParts plugins
with the Category key == category.
If category
is not set the Category key is ignored
and all plugins are shown. config The KConfig object that holds the state of the
plugins being enabled or not. By default it should
be instance.config(). It is recommended to
always pass a KConfig object if you use
KSettings.PluginPage since you never know from where the
page will be called (think global config app).
For example KViewCanvas passes KSimpleConfig(
"kviewcanvas" ).
UNKNOWN: Add a list of KParts plugins
config
is set to instance.config().UNKNOWN: Add a list of KParts plugins.
UNKNOWN: Change to applications defaults
UNKNOWN: Load the state of the plugins (selected or not) from the KPluginInfo objects.
UNKNOWN: Save the configuration
UNKNOWN: Set whether the area for showing the KCMs of the plugins should be hidden if the plugin doesn't have a KCM or whether the layout should rather stay static and only an message should be shown.