~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/digikam/timelineview.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-ttj4and3ds1ldgn1
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2007-12-08
 
7
 * Description : Time line sidebar tab contents.
 
8
 * 
 
9
 * Copyright (C) 2007-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 *
 
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)
 
15
 * any later version.
 
16
 * 
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 * 
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef TIMELINEVIEW_H
 
25
#define TIMELINEVIEW_H
 
26
 
 
27
// Qt includes.
 
28
 
 
29
#include <qdatetime.h>
 
30
#include <qwidget.h>
 
31
#include <qstring.h>
 
32
 
 
33
namespace Digikam
 
34
{
 
35
 
 
36
class SAlbum;
 
37
class SearchTextBar;
 
38
class TimeLineFolderView;
 
39
class TimeLineViewPriv;
 
40
 
 
41
class TimeLineView : public QWidget
 
42
{
 
43
    Q_OBJECT
 
44
 
 
45
public:
 
46
 
 
47
    TimeLineView(QWidget *parent=0);
 
48
    ~TimeLineView();
 
49
 
 
50
    TimeLineFolderView *folderView() const;
 
51
    SearchTextBar* searchBar() const;
 
52
 
 
53
    void setActive(bool val);
 
54
 
 
55
private: 
 
56
 
 
57
    void readConfig();
 
58
    void writeConfig();
 
59
    void createNewDateSearchAlbum(const QString& name);
 
60
    bool checkName(QString& name);
 
61
    bool checkAlbum(const QString& name) const;
 
62
 
 
63
private slots:
 
64
 
 
65
    void slotInit();
 
66
    void slotScrollBarValueChanged(int);
 
67
    void slotRefDateTimeChanged();
 
68
    void slotScaleChanged(int);
 
69
    void slotTimeUnitChanged(int);
 
70
    void slotCursorPositionChanged();
 
71
    void slotSelectionChanged();
 
72
    void slotResetSelection();
 
73
    void slotSaveSelection();
 
74
    void slotUpdateCurrentDateSearchAlbum();
 
75
    void slotAlbumSelected(SAlbum*);
 
76
    void slotCheckAboutSelection();
 
77
    void slotRenameAlbum(SAlbum*);
 
78
 
 
79
private:
 
80
 
 
81
    TimeLineViewPriv* d;
 
82
};
 
83
 
 
84
}  // NameSpace Digikam
 
85
 
 
86
#endif /* TIMELINEVIEW_H */