View::View(Kate::MainWindow *mainWindow) : Kate::PluginView(mainWindow) , mw(mainWindow) { toolView = mainWindow->createToolView("KatecodeinfoPlugin", Kate::MainWindow::Bottom, SmallIcon("msg_info"), i18n("Codeinfo")); QWidget* w = new QWidget(toolView); setupUi(w); config(); w->show(); btnConfig->setIcon(KIcon("configure")); m_nregex = NamedRegExp(); updateCmbActions(); updateGlobal(); connect(btnFile, SIGNAL(clicked()), this, SLOT(loadFile())); connect(btnClipboard, SIGNAL(clicked()), this, SLOT(loadClipboard())); connect(btnRun, SIGNAL(clicked()), this, SLOT(run())); connect(btnConfig, SIGNAL(clicked()), this, SLOT(config())); connect(btnSave, SIGNAL(clicked()), this, SLOT(save())); connect(btnRevert, SIGNAL(clicked()), this, SLOT(revert())); connect(lstCodeinfo, SIGNAL(itemClicked(QTreeWidgetItem*, int)), this, SLOT(infoSelected(QTreeWidgetItem*, int))); connect(cmbActions, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(actionSelected(const QString &))); connect(txtRegex, SIGNAL(textChanged(QString)), this, SLOT(regexChanged(QString))); connect(txtCommand, SIGNAL(textChanged(QString)), this, SLOT(commandChanged(QString))); actionSelected(cmbActions->currentText()); }
KateBtBrowserWidget::KateBtBrowserWidget(KTextEditor::MainWindow *mainwindow, QWidget *parent) : QWidget(parent) , mw(mainwindow) { setupUi(this); timer.setSingleShot(true); connect(&timer, SIGNAL(timeout()), this, SLOT(clearStatus())); connect(btnBacktrace, SIGNAL(clicked()), this, SLOT(loadFile())); connect(btnClipboard, SIGNAL(clicked()), this, SLOT(loadClipboard())); connect(btnConfigure, SIGNAL(clicked()), this, SLOT(configure())); connect(lstBacktrace, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, SLOT(itemActivated(QTreeWidgetItem *, int))); }