~ubuntu-branches/ubuntu/natty/digikam/natty

« back to all changes in this revision

Viewing changes to libs/widgets/common/rexpanderboxexclusive.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-08-26 19:25:16 UTC
  • mfrom: (1.2.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100826192516-mkbdww0h5v2x4yoy
Tags: 2:1.4.0-0ubuntu1
* New upstream bugfix release (LP: #626751)
* Install the file NEWS as upstream changelog because "ChangeLog" is
  too verbose.
* Don't copy the desktop .pot file to imageplugins, not needed anymore.

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        : 2008-03-14
 
7
 * Description : a widget to host settings as expander box in exclusive mode
 
8
 *
 
9
 * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2008-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 
11
 * Copyright (C) 2010      by Manuel Viet    <contact at 13zenrv dot fr>
 
12
 *
 
13
 * This program is free software; you can redistribute it
 
14
 * and/or modify it under the terms of the GNU General
 
15
 * Public License as published by the Free Software Foundation;
 
16
 * either version 2, or (at your option)
 
17
 * any later version.
 
18
 *
 
19
 * This program is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
22
 * GNU General Public License for more details.
 
23
 *
 
24
 * ============================================================ */
 
25
 
 
26
#ifndef REXPANDERBOXEXCLUSIVE_H
 
27
#define REXPANDERBOXEXCLUSIVE_H
 
28
 
 
29
// Qt includes
 
30
 
 
31
#include <QtCore/QObject>
 
32
 
 
33
// Libkdcraw includes
 
34
 
 
35
#include <libkdcraw/rexpanderbox.h>
 
36
 
 
37
// Local includes
 
38
 
 
39
#include "digikam_export.h"
 
40
 
 
41
namespace Digikam 
 
42
{
 
43
 
 
44
class DIGIKAM_EXPORT RExpanderBoxExclusive : public KDcrawIface::RExpanderBox 
 
45
{
 
46
    Q_OBJECT
 
47
 
 
48
public:
 
49
 
 
50
    RExpanderBoxExclusive(QWidget* parent = 0);
 
51
    ~RExpanderBoxExclusive();
 
52
 
 
53
    /** Show one expander open at most */
 
54
    void setIsToolBox(bool b);
 
55
    bool isToolBox() const;
 
56
 
 
57
private Q_SLOTS:
 
58
 
 
59
    void slotItemExpanded(bool b);
 
60
 
 
61
private:
 
62
 
 
63
    bool m_toolbox;
 
64
};
 
65
 
 
66
} // namespace Digikam
 
67
 
 
68
#endif // REXPANDERBOXEXCLUSIVE_H