CoreAccountSettingsPage::CoreAccountSettingsPage(QWidget *parent) : SettingsPage(tr("Remote Cores"), QString(), parent), _lastAccountId(0), _lastAutoConnectId(0), _standalone(false) { ui.setupUi(this); initAutoWidgets(); ui.addAccountButton->setIcon(SmallIcon("list-add")); ui.editAccountButton->setIcon(SmallIcon("document-edit")); ui.deleteAccountButton->setIcon(SmallIcon("edit-delete")); _model = new CoreAccountModel(Client::coreAccountModel(), this); _filteredModel = new FilteredCoreAccountModel(_model, this); ui.accountView->setModel(filteredModel()); ui.autoConnectAccount->setModel(filteredModel()); connect(filteredModel(), SIGNAL(rowsAboutToBeRemoved(QModelIndex, int, int)), SLOT(rowsAboutToBeRemoved(QModelIndex, int, int))); connect(filteredModel(), SIGNAL(rowsInserted(QModelIndex, int, int)), SLOT(rowsInserted(QModelIndex, int, int))); connect(ui.accountView->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), SLOT(setWidgetStates())); connect(ui.autoConnectAccount, SIGNAL(currentIndexChanged(int)), SLOT(widgetHasChanged())); setWidgetStates(); }
InputWidgetSettingsPage::InputWidgetSettingsPage(QWidget *parent) : SettingsPage(tr("Interface"), tr("Input Widget"), parent) { ui.setupUi(this); #ifndef HAVE_KDE ui.enableSpellCheck->hide(); #endif initAutoWidgets(); }
BacklogSettingsPage::BacklogSettingsPage(QWidget *parent) : SettingsPage(tr("Misc"), tr("Backlog"), parent) { ui.setupUi(this); initAutoWidgets(); // not an auto widget, because we store index + 1 // FIXME: global backlog requester disabled until issues ruled out ui.requesterType->removeItem(2); connect(ui.requesterType, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetHasChanged())); }
BacklogSettingsPage::BacklogSettingsPage(QWidget* parent) : SettingsPage(tr("Interface"), tr("Backlog Fetching"), parent) { ui.setupUi(this); initAutoWidgets(); // not an auto widget, because we store index + 1 // FIXME: global backlog requester disabled until issues ruled out ui.requesterType->removeItem(2); connectToWidgetChangedSignal(ui.requesterType, this, &BacklogSettingsPage::widgetHasChanged); }
ConnectionSettingsPage::ConnectionSettingsPage(QWidget *parent) : SettingsPage(tr("IRC"), QString(), parent) { ui.setupUi(this); initAutoWidgets(); connect(Client::instance(), SIGNAL(connected()), this, SLOT(clientConnected())); connect(Client::instance(), SIGNAL(disconnected()), this, SLOT(clientDisconnected())); setEnabled(false); if (Client::isConnected()) clientConnected(); }
CoreConnectionSettingsPage::CoreConnectionSettingsPage(QWidget *parent) : SettingsPage(tr("Remote Cores"), tr("Connection"), parent) { ui.setupUi(this); #ifndef HAVE_KDE ui.useSolid->hide(); #endif initAutoWidgets(); connect(ui.useSolid, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); connect(ui.usePingTimeout, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); connect(ui.useNoTimeout, SIGNAL(toggled(bool)), SLOT(widgetHasChanged())); }
AppearanceSettingsPage::AppearanceSettingsPage(QWidget *parent) : SettingsPage(tr("Interface"), QString(), parent) { ui.setupUi(this); #ifdef QT_NO_SYSTEMTRAYICON ui.useSystemTrayIcon->hide(); #endif initAutoWidgets(); initStyleComboBox(); initLanguageComboBox(); initIconThemeComboBox(); foreach(QComboBox *comboBox, findChildren<QComboBox *>()) { connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged())); }
ChatViewSettingsPage::ChatViewSettingsPage(QWidget *parent) : SettingsPage(tr("Interface"), tr("Chat View"), parent) { ui.setupUi(this); #ifndef HAVE_WEBKIT ui.showWebPreview->hide(); ui.showWebPreview->setEnabled(false); #endif // FIXME remove with protocol v11 if (!(Client::coreFeatures() & Quassel::SynchronizedMarkerLine)) { ui.autoMarkerLine->setEnabled(false); ui.autoMarkerLine->setChecked(true); ui.autoMarkerLine->setToolTip(tr("You need at least version 0.6 of quasselcore to use this feature")); } initAutoWidgets(); }