File indexing completed on 2025-01-05 03:53:41
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-04-12 0007 * Description : A tool to export items to Rajce web service 0008 * 0009 * SPDX-FileCopyrightText: 2011 by Lukas Krejci <krejci.l at centrum dot cz> 0010 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #include "rajcenewalbumdlg.h" 0017 0018 // Qt includes 0019 0020 #include <QCheckBox> 0021 #include <QFormLayout> 0022 #include <QGridLayout> 0023 #include <QLabel> 0024 #include <QGroupBox> 0025 0026 // KDE includes 0027 0028 #include <klocalizedstring.h> 0029 0030 namespace DigikamGenericRajcePlugin 0031 { 0032 0033 RajceNewAlbumDlg::RajceNewAlbumDlg(QWidget* const parent) 0034 : WSNewAlbumDialog(parent, 0035 QLatin1String ("Rajce.net")) 0036 { 0037 getLocEdit()->hide(); 0038 getDateTimeEdit()->hide(); 0039 0040 QGroupBox* const privBox = new QGroupBox(i18nc("@option", "Visibility"), getMainWidget()); 0041 privBox->setWhatsThis(i18nc("@info", "Set the visibility of the album")); 0042 0043 QLabel* const lbl = new QLabel(i18nc("@label: properties", "Public"), privBox); 0044 0045 m_albumVisible = new QCheckBox; 0046 m_albumVisible->setChecked(true); 0047 0048 QGridLayout* const layout = new QGridLayout(privBox); 0049 0050 layout->addWidget(lbl, 0, 0, 1, 1); 0051 layout->addWidget(m_albumVisible, 0, 1, 1, 1); 0052 0053 addToMainLayout(privBox); 0054 } 0055 0056 RajceNewAlbumDlg::~RajceNewAlbumDlg() 0057 { 0058 } 0059 0060 QString RajceNewAlbumDlg::albumDescription() const 0061 { 0062 return getDescEdit()->toPlainText(); 0063 } 0064 0065 QString RajceNewAlbumDlg::albumName() const 0066 { 0067 return getTitleEdit()->text(); 0068 } 0069 0070 bool RajceNewAlbumDlg::albumVisible() const 0071 { 0072 return m_albumVisible->isChecked(); 0073 } 0074 0075 } // namespace DigikamGenericRajcePlugin 0076 0077 #include "moc_rajcenewalbumdlg.cpp"