public:
ScriptingDock(const QString& title, QWidget * parent = 0)
- : logger(log4cxx::Logger::getLogger("ScriptingDock")) {
- QDockWidget(title, parent);
+ : QDockWidget(title, parent)
+ , logger(log4cxx::Logger::getLogger("ScriptingDock")) {
+ QTabWidget * tab = new QTabWidget;
QWidget * widget = new QWidget;
- widget->setLayout(layout = new QGridLayout(this));
+ widget->setLayout(layout = new QGridLayout);
layout->addWidget(browser = new QTextBrowser, 0, 0, 1, 0);
layout->addWidget(line = new QLineEdit, 1, 0);
layout->addWidget(button = new QPushButton(tr("Evaluate")), 1, 1);
- setWidget(widget);
+ tab->addTab(widget, "GUILE");
+ ((QDockWidget*)this)->setWidget(tab);
connect(button, SIGNAL(released()), this, SLOT(doEvaluate()));
connect(line, SIGNAL(returnPressed()), this, SLOT(doEvaluate()));
scm_init_guile();