DBWidget::DBWidget(QWidget* const parent, DInfoInterface* const iface, const QString& toolName) : WSSettingsWidget(parent, iface, toolName) { getUploadBox()->hide(); getSizeBox()->hide(); }
FbWidget::FbWidget(QWidget* const parent, KIPI::Interface* const iface, const QString& pluginName) : KPSettingsWidget(parent, iface, pluginName) { getUploadBox()->hide(); getSizeBox()->hide(); connect(getReloadBtn(), SIGNAL(clicked()), this, SLOT(slotReloadAlbumsRequest())); }
YandexFotkiWidget::YandexFotkiWidget(QWidget* const parent, KIPI::Interface* const iface, const QString& pluginName) : KPSettingsWidget(parent, iface, pluginName) { QGroupBox* const optionsBox = getOptionsBox(); QGridLayout* const optionsBoxLayout = getOptionsBoxLayout(); QSpacerItem* const spacer1 = new QSpacerItem(1, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); QSpacerItem* const spacer2 = new QSpacerItem(1, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); QLabel* const policyLabel = new QLabel(i18n("Update policy:"), optionsBox); QRadioButton* const policyRadio1 = new QRadioButton(i18n("Update metadata"), optionsBox); policyRadio1->setWhatsThis(i18n("Update metadata of remote file and merge remote tags with local")); QRadioButton* const policyRadio3 = new QRadioButton(i18n("Skip photo"), optionsBox); policyRadio3->setWhatsThis(i18n("Simple skip photo")); QRadioButton* const policyRadio4 = new QRadioButton(i18n("Upload as new"), optionsBox); policyRadio4->setWhatsThis(i18n("Add photo as new")); QLabel* const accessLabel = new QLabel(i18n("Privacy settings:"), optionsBox); m_accessCombo = new QComboBox(optionsBox); m_accessCombo->addItem(QIcon::fromTheme(QString::fromLatin1("folder")), i18n("Public access"), YandexFotkiPhoto::ACCESS_PUBLIC); m_accessCombo->addItem(QIcon::fromTheme(QString::fromLatin1("folder-red")), i18n("Friends access"), YandexFotkiPhoto::ACCESS_FRIENDS); m_accessCombo->addItem(QIcon::fromTheme(QString::fromLatin1("folder-locked")), i18n("Private access"), YandexFotkiPhoto::ACCESS_PRIVATE); m_hideOriginalCheck = new QCheckBox(i18n("Hide original photo"), optionsBox); m_disableCommentsCheck = new QCheckBox(i18n("Disable comments"), optionsBox); m_adultCheck = new QCheckBox(i18n("Adult content"), optionsBox); m_policyGroup = new QButtonGroup(optionsBox); m_policyGroup->addButton(policyRadio1, POLICY_UPDATE_MERGE); m_policyGroup->addButton(policyRadio3, POLICY_SKIP); m_policyGroup->addButton(policyRadio4, POLICY_ADDNEW); optionsBoxLayout->addItem(spacer1, 3, 0, 1, 5); optionsBoxLayout->addWidget(accessLabel, 4, 0, 1, 5); optionsBoxLayout->addWidget(m_accessCombo, 5, 1, 1, 4); optionsBoxLayout->addWidget(m_adultCheck, 6, 1, 1, 4); optionsBoxLayout->addWidget(m_hideOriginalCheck, 7, 1, 1, 4); optionsBoxLayout->addWidget(m_disableCommentsCheck, 8, 1, 1, 4); optionsBoxLayout->addItem(spacer2, 9, 0, 1, 5); optionsBoxLayout->addWidget(policyLabel, 10, 0, 1, 5); optionsBoxLayout->addWidget(policyRadio1, 11, 1, 1, 4); optionsBoxLayout->addWidget(policyRadio3, 13, 1, 1, 4); optionsBoxLayout->addWidget(policyRadio4, 14, 1, 1, 4); getUploadBox()->hide(); getSizeBox()->hide(); }
ImageshackWidget::ImageshackWidget(QWidget* const parent, Imageshack* const imageshack, KIPI::Interface* const iface, const QString& pluginName) : KPSettingsWidget(parent, iface, pluginName), m_imageshack(imageshack) { m_imgList = imagesList(); m_headerLbl = getHeaderLbl(); m_accountNameLbl = getUserNameLabel(); m_chgRegCodeBtn = getChangeUserBtn(); m_reloadGalleriesBtn = getReloadBtn(); m_galleriesCob = getAlbumsCoB(); m_progressBar = progressBar(); connect(m_reloadGalleriesBtn, SIGNAL(clicked()), this, SLOT(slotReloadGalleries())); QGroupBox* const tagsBox = new QGroupBox(QString::fromLatin1(""), getSettingsBox()); QGridLayout* const tagsLayout = new QGridLayout(tagsBox); m_privateImagesChb = new QCheckBox(tagsBox); m_privateImagesChb->setText(i18n("Make private")); m_privateImagesChb->setChecked(false); m_tagsFld = new QLineEdit(tagsBox); QLabel* const tagsLbl = new QLabel(i18n("Tags (optional):"), tagsBox); m_remBarChb = new QCheckBox(i18n("Remove information bar on thumbnails")); m_remBarChb->setChecked(false); tagsLayout->addWidget(m_privateImagesChb, 0, 0); tagsLayout->addWidget(tagsLbl, 1, 0); tagsLayout->addWidget(m_tagsFld, 1, 1); addWidgetToSettingsBox(tagsBox); getUploadBox()->hide(); getSizeBox()->hide(); updateLabels(); }
DropboxWidget::DropboxWidget(QWidget* const parent, KIPI::Interface* const iface, const QString& pluginName) : KPSettingsWidget(parent, iface, pluginName) { getUploadBox()->hide(); getSizeBox()->hide(); }