24 #include <dtkGuiSupport/dtkPluginsEditor.h>
25 #include <dtkGuiSupport/dtkSettingsEditor.h>
29 class axlInspectorSettingsPrivate
35 dtkSettingsEditor *settings_editor;
36 dtkPluginsEditor *plugins_editor;
41 QSettings settings(
"inria",
"dtk");
42 settings.beginGroup(
"shader");
43 if(!settings.contains(
"path"))
44 settings.setValue(
"path", QDir::homePath());
47 d->settings_editor =
new dtkSettingsEditor(
this);
48 d->settings_editor->setSettings(
"inria",
"dtk");
50 d->plugins_editor =
new dtkPluginsEditor(
this);
53 d->stack->addWidget(
"Settings", d->settings_editor);
54 d->stack->addWidget(
"Plugins", d->plugins_editor);
56 QHBoxLayout *layout =
new QHBoxLayout(
this);
57 layout->setContentsMargins(0, 0, 0, 0);
58 layout->setSpacing(0);
60 layout->addWidget(d->stack);
61 this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
73 return QFrame::width();
78 this->setFixedWidth(width);
~axlInspectorSettings(void)
axlInspectorSettings(QWidget *parent=0)