1 #ifndef BALL_VIEW_PLUGINDIALOG_H
2 #define BALL_VIEW_PLUGINDIALOG_H
4 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
8 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
12 #ifndef BALL_PLUGIN_PLUGINHANDLER_H
16 #include <QtCore/QModelIndex>
17 #include <QtGui/QItemDelegate>
18 #include <QtGui/QDialog>
22 class PluginDialogData;
52 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
53 QVariant
data(
const QModelIndex& i,
int role)
const;
70 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
71 QVariant
data(
const QModelIndex& i,
int role)
const;
105 virtual void initializeWidget(
MainControl& main_control);
112 virtual void finalizeWidget(
MainControl& main_control);
114 virtual void writePreferenceEntries(
INIFile& inifile);
115 virtual void readPreferenceEntries(
const INIFile& inifile);
125 virtual void addPluginDirectory();
126 virtual void removePluginDirectory();
127 virtual void directorySelectionChanged(
const QModelIndex&);
128 virtual void pluginChanged(QModelIndex i);
129 virtual void togglePluginState();
132 QModelIndex active_index_;
137 Ui::PluginDialogData* ui_;
138 std::list<PreferencesEntry*> child_entries_;
PluginModel(QObject *parent=0)
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &i, int role) const
PluginDirectoryModel(QObject *parent=0)
#define BALL_EMBEDDABLE(TYPE, BASE)
int rowCount(const QModelIndex &parent=QModelIndex()) const
void addDirectory(const QString &dir)
void removeDirectory(const QModelIndex &index)
QVariant data(const QModelIndex &i, int role) const