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 
16 class QTreeWidgetItem;
17 
18 namespace Kleo
19 {
20 
21 class KLEO_EXPORT DNAttributeOrderConfigWidget : public QWidget
22 {
23  Q_OBJECT
24 public:
25  explicit DNAttributeOrderConfigWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {});
26  ~DNAttributeOrderConfigWidget() override;
27 
28  QStringList attributeOrder() const;
29  void setAttributeOrder(const QStringList &order);
30 
31 Q_SIGNALS:
32  void changed();
33 
34  //
35  // only boring stuff below...
36  //
37 
38 private 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 
48 private:
49  void takePlaceHolderItem();
50  void enableDisableButtons(QTreeWidgetItem *);
51 
52 private:
53  class DNAttributeOrderConfigWidgetPrivate;
54  std::unique_ptr<DNAttributeOrderConfigWidgetPrivate> const d;
55 
56 protected:
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 Thu Feb 15 2024 03:56:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.