digiKam
invisiblebuttongroup.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2006-04-04
7
* Description : a tool to generate HTML image galleries
8
*
9
* Copyright (C) 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
10
* Copyright (C) 2012-2022 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) 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 DIGIKAM_INVISIBLE_BUTTON_GROUP_H
25
#define DIGIKAM_INVISIBLE_BUTTON_GROUP_H
26
27
// Qt includes
28
29
#include <QWidget>
30
31
class
QAbstractButton;
32
33
namespace
DigikamGenericHtmlGalleryPlugin
34
{
35
36
class
InvisibleButtonGroup
:
public
QWidget
37
{
38
Q_OBJECT
39
Q_PROPERTY(
int
current
READ
selected
WRITE
setSelected
)
40
41
public
:
42
43
explicit
InvisibleButtonGroup
(QWidget*
const
parent);
44
~InvisibleButtonGroup
()
override
;
45
46
int
selected
()
const
;
47
48
void
addButton
(QAbstractButton* button,
int
id
);
49
50
public
Q_SLOTS:
51
52
void
setSelected
(
int
id
);
53
54
Q_SIGNALS:
55
56
void
selectionChanged
(
int
id
);
57
58
private
:
59
60
// Disable
61
InvisibleButtonGroup
() =
delete
;
62
63
private
:
64
65
class
Private;
66
Private*
const
d;
67
};
68
69
}
// namespace DigikamGenericHtmlGalleryPlugin
70
71
#endif
// DIGIKAM_INVISIBLE_BUTTON_GROUP_H
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup
Definition:
invisiblebuttongroup.h:37
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::current
int current
Definition:
invisiblebuttongroup.h:39
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::selected
int selected() const
Definition:
invisiblebuttongroup.cpp:78
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::setSelected
void setSelected(int id)
Definition:
invisiblebuttongroup.cpp:88
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::~InvisibleButtonGroup
~InvisibleButtonGroup() override
Definition:
invisiblebuttongroup.cpp:73
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::selectionChanged
void selectionChanged(int id)
DigikamGenericHtmlGalleryPlugin::InvisibleButtonGroup::addButton
void addButton(QAbstractButton *button, int id)
Definition:
invisiblebuttongroup.cpp:83
DigikamGenericHtmlGalleryPlugin
Definition:
galleryconfig.cpp:30
core
dplugins
generic
tools
htmlgallery
wizard
invisiblebuttongroup.h
Generated by
1.9.1