File indexing completed on 2023-09-24 08:19:52

0001 /* ============================================================
0002  *
0003  * This file is a part of KDE project
0004  *
0005  *
0006  * Date        : 2015-08-07
0007  * Description : a kipi plugin to export images to Flickr web service
0008  *
0009  * Copyright (C) 2013 by Pankaj Kumar <me at panks dot me>
0010  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
0011  *
0012  * This program is free software; you can redistribute it
0013  * and/or modify it under the terms of the GNU General
0014  * Public License as published by the Free Software Foundation;
0015  * either version 2, or (at your option) any later version.
0016  *
0017  * This program is distributed in the hope that it will be useful,
0018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0020  * GNU General Public License for more details.
0021  *
0022  * ============================================================ */
0023 
0024 #include "newalbum.h"
0025 
0026 // Qt includes
0027 
0028 #include <QFormLayout>
0029 #include <QApplication>
0030 #include <QStyle>
0031 
0032 // Local includes
0033 
0034 #include "kipiplugins_debug.h"
0035 #include "flickritem.h"
0036 
0037 namespace KIPIFlickrPlugin
0038 {
0039 
0040 NewAlbum::NewAlbum(QWidget* const parent, const QString& pluginName)
0041     : KPNewAlbumDialog(parent, pluginName)
0042 {
0043     hideDateTime();
0044     hideLocation();
0045     getMainWidget()->setMinimumSize(350,0);
0046 }
0047 
0048 NewAlbum::~NewAlbum()
0049 {
0050 }
0051 
0052 void NewAlbum::getFolderProperties(FPhotoSet& folder)
0053 {
0054     folder.title       = getTitleEdit()->text();
0055     folder.description = getDescEdit()->toPlainText();
0056     qCDebug(KIPIPLUGINS_LOG) << "Folder Title " << folder.title<<" Folder Description "<<folder.description;
0057 }
0058 
0059 } // namespace KIPIFlickrPlugin
0060 
0061 #include "moc_newalbum.cpp"