• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libksane/libksane

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libksane
  • libksane
ksane_device_dialog.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is part of the KDE project
4  *
5  * Date : 2007-09-13
6  * Description : Sane interface for KDE
7  *
8  * Copyright (C) 2007-2010 by Kare Sars <kare dot sars at iki dot fi>
9  * Copyright (C) 2009 by Grzegorz Kurtyka <grzegorz dot kurtyka at gmail dot com>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) version 3, or any
15  * later version accepted by the membership of KDE e.V. (or its
16  * successor approved by the membership of KDE e.V.), which shall
17  * act as a proxy defined in Section 6 of version 3 of the license.
18  *
19  * This library 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 GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this program. If not, see <http://www.gnu.org/licenses/>.
26  *
27  * ============================================================ */
28 
29 #ifndef KSANE_DEVICE_DIALOG_H
30 #define KSANE_DEVICE_DIALOG_H
31 
32 #include "ksane_find_devices_thread.h"
33 
34 // Qt includes
35 #include <QGroupBox>
36 #include <QStringList>
37 #include <QButtonGroup>
38 #include <QToolTip>
39 #include <QRadioButton>
40 #include <QCheckBox>
41 #include <QPushButton>
42 #include <QBoxLayout>
43 
44 
45 // KDE includes
46 #include <KDialog>
47 #include <klocale.h>
48 
49 namespace KSaneIface
50 {
51 
52 class KSaneDeviceDialog : public KDialog
53 {
54  Q_OBJECT
55 
56 public:
57 
58  KSaneDeviceDialog(QWidget *parent=0);
59  ~KSaneDeviceDialog();
60 
61  QString getSelectedName();
62  void setDefault(QString);
63 
64 public Q_SLOTS:
65  void reloadDevicesList();
66 
67 private Q_SLOTS:
68  void setAvailable(bool avail);
69  void updateDevicesList();
70 
71 private:
72  QWidget *m_btnContainer;
73  QGroupBox *m_btnBox;
74  QButtonGroup *m_btnGroup;
75  QVBoxLayout *m_btnLayout;
76  QString m_defaultBackend;
77  QString m_selectedDevice;
78  FindSaneDevicesThread *m_findDevThread;
79 };
80 
81 } // NameSpace KSaneIface
82 
83 #endif
QWidget
KSaneIface::KSaneDeviceDialog::KSaneDeviceDialog
KSaneDeviceDialog(QWidget *parent=0)
Definition: ksane_device_dialog.cpp:52
KDialog
KSaneIface::KSaneDeviceDialog::reloadDevicesList
void reloadDevicesList()
Definition: ksane_device_dialog.cpp:103
QButtonGroup
KSaneIface::KSaneDeviceDialog::~KSaneDeviceDialog
~KSaneDeviceDialog()
Definition: ksane_device_dialog.cpp:99
QGroupBox
KSaneIface::KSaneDeviceDialog::getSelectedName
QString getSelectedName()
Definition: ksane_device_dialog.cpp:132
QVBoxLayout
QString
ksane_find_devices_thread.h
KSaneIface::FindSaneDevicesThread
Definition: ksane_find_devices_thread.h:39
KSaneIface::KSaneDeviceDialog
Definition: ksane_device_dialog.h:52
KSaneIface::KSaneDeviceDialog::setDefault
void setDefault(QString)
Definition: ksane_device_dialog.cpp:127
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libksane/libksane

Skip menu "libs/libksane/libksane"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal