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

« back to all changes in this revision

Viewing changes to digikam/utilities/slideshow/toolbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

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        : 2004-10-05
 
7
 * Description : a tool bar for slideshow 
 
8
 * 
 
9
 * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
10
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
11
 *
 
12
 * This program is free software; you can redistribute it
 
13
 * and/or modify it under the terms of the GNU General
 
14
 * Public License as published by the Free Software Foundation;
 
15
 * either version 2, or (at your option)
 
16
 * any later version.
 
17
 * 
 
18
 * This program is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 * 
 
23
 * ============================================================ */
 
24
 
 
25
#ifndef TOOL_BAR_H
 
26
#define TOOL_BAR_H
 
27
 
 
28
#include <qwidget.h>
 
29
 
 
30
// Local includes.
 
31
 
 
32
#include "digikam_export.h"
 
33
 
 
34
class QToolButton;
 
35
 
 
36
namespace Digikam
 
37
{
 
38
 
 
39
class ToolBarPriv;
 
40
 
 
41
class DIGIKAM_EXPORT ToolBar : public QWidget
 
42
{
 
43
    Q_OBJECT
 
44
    
 
45
public:
 
46
 
 
47
    ToolBar(QWidget* parent);
 
48
    ~ToolBar();
 
49
 
 
50
    bool canHide() const;
 
51
    bool isPaused() const;
 
52
    void setPaused(bool val);
 
53
 
 
54
    void setEnabledPlay(bool val);
 
55
    void setEnabledNext(bool val);
 
56
    void setEnabledPrev(bool val);
 
57
 
 
58
protected:
 
59
 
 
60
    void keyPressEvent(QKeyEvent *event);
 
61
    
 
62
signals:
 
63
 
 
64
    void signalNext();
 
65
    void signalPrev();
 
66
    void signalClose();
 
67
    void signalPlay();
 
68
    void signalPause();
 
69
 
 
70
private slots:
 
71
 
 
72
    void slotPlayBtnToggled();
 
73
    void slotNexPrevClicked();
 
74
 
 
75
private:
 
76
 
 
77
    ToolBarPriv *d;
 
78
 
 
79
    friend class SlideShow;
 
80
};
 
81
 
 
82
}   // Namespace Digikam
 
83
 
 
84
#endif /* TOOL_BAR_H */