Libkleo

dnattributeorderconfigwidget.h
1/* -*- c++ -*-
2 dnattributeorderconfigwidget.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2004 Klarälvdalens Datakonsult AB
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "kleo_export.h"
13
14#include <QWidget>
15
16class QTreeWidgetItem;
17
18namespace Kleo
19{
20
21class KLEO_EXPORT DNAttributeOrderConfigWidget : public QWidget
22{
23 Q_OBJECT
24public:
25 explicit DNAttributeOrderConfigWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {});
26 ~DNAttributeOrderConfigWidget() override;
27
28 QStringList attributeOrder() const;
29 void setAttributeOrder(const QStringList &order);
30
31Q_SIGNALS:
32 void changed();
33
34 //
35 // only boring stuff below...
36 //
37
38private Q_SLOTS:
39 void slotAvailableSelectionChanged();
40 void slotCurrentOrderSelectionChanged();
41 void slotDoubleUpButtonClicked();
42 void slotUpButtonClicked();
43 void slotDownButtonClicked();
44 void slotDoubleDownButtonClicked();
45 void slotLeftButtonClicked();
46 void slotRightButtonClicked();
47
48private:
49 void takePlaceHolderItem();
50 void enableDisableButtons(QTreeWidgetItem *);
51
52private:
53 class DNAttributeOrderConfigWidgetPrivate;
54 std::unique_ptr<DNAttributeOrderConfigWidgetPrivate> const d;
55
56protected:
57 virtual void virtual_hook(int, void *);
58};
59
60}
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.