1
/* ============================================================
3
* This file is a part of kipi-plugins project
4
* http://www.digikam.org
7
* Description : file list view and items.
9
* Copyright (C) 2012 by A Janardhan Reddy <annapareddyjanardhanreddy at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* ============================================================ */
32
#include "kpimageslist.h"
33
#include "processimage.h"
35
using namespace KIPIPlugins;
37
namespace KIPIVideoSlideShowPlugin
40
class MyImageList : public KPImagesList
46
/* The different columns in a list. */
49
SPECIALEFFECT = KPImagesListView::User1,
50
TIME = KPImagesListView::User2,
51
TRANSITION = KPImagesListView::User3,
52
TRANSSPEED = KPImagesListView::User4
57
explicit MyImageList(QWidget* const parent = 0);
58
virtual ~MyImageList();
62
virtual void slotAddImages(const KUrl::List& list);
66
virtual void slotRemoveItems();
69
// -------------------------------------------------------------------------
71
class MyImageListViewItem : public KPImagesListViewItem
76
MyImageListViewItem(KPImagesListView* const view, const KUrl& url);
77
virtual ~MyImageListViewItem();
79
void setEffectName(const QString& str, EFFECT effect);
80
EFFECT EffectName() const;
82
void setTime(const int time);
85
void setTransition(const QString& str, TRANSITION_TYPE type);
86
TRANSITION_TYPE getTransition() const;
88
void setTransitionSpeed(const QString& str, TRANSITION_SPEED speed);
89
TRANSITION_SPEED getTransitionSpeed() const;
91
void setPrevImageItem(MyImageListViewItem* prevItem);
92
MyImageListViewItem* getPrevImageItem() const;
94
void setNextImageItem(MyImageListViewItem* nextItem);
95
MyImageListViewItem* getNextImageItem() const;
103
} // namespace KIPIVideoSlideShowPlugin
105
#endif /* MYIMAGELIST_H */