• 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
  • options
ksane_opt_slider.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is part of the KDE project
4  *
5  * Date : 2009-01-21
6  * Description : Sane interface for KDE
7  *
8  * Copyright (C) 2009 by Kare Sars <kare dot sars at iki dot fi>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) version 3, or any
14  * later version accepted by the membership of KDE e.V. (or its
15  * successor approved by the membership of KDE e.V.), which shall
16  * act as a proxy defined in Section 6 of version 3 of the license.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this program. If not, see <http://www.gnu.org/licenses/>.
25  *
26  * ============================================================ */
27 
28 #ifndef KSANE_OPT_SLIDER_H
29 #define KSANE_OPT_SLIDER_H
30 
31 #include "ksane_option.h"
32 
33 namespace KSaneIface
34 {
35 
36 class LabeledSlider;
37 
38 class KSaneOptSlider : public KSaneOption
39 {
40  Q_OBJECT
41 
42 public:
43  KSaneOptSlider(const SANE_Handle handle, const int index);
44 
45  void createWidget(QWidget *parent);
46 
47  void readValue();
48  void readOption();
49 
50  bool getMinValue(float &max);
51  bool getMaxValue(float &max);
52  bool getValue(float &val);
53  bool setValue(float val);
54  bool getValue(QString &val);
55  bool setValue(const QString &val);
56  bool hasGui() {return true;}
57 
58  Q_SIGNALS:
59  void fValueRead(float);
60 
61 private Q_SLOTS:
62  void sliderChanged(int val);
63 
64 private:
65  LabeledSlider *m_slider;
66  int m_iVal;
67 };
68 
69 } // NameSpace KSaneIface
70 
71 #endif
QWidget
KSaneIface::KSaneOptSlider::hasGui
bool hasGui()
Definition: ksane_opt_slider.h:56
KSaneIface::KSaneOptSlider::fValueRead
void fValueRead(float)
KSaneIface::KSaneOptSlider::getMinValue
bool getMinValue(float &max)
Definition: ksane_opt_slider.cpp:111
KSaneIface::LabeledSlider
A combination of a label a slider and a spinbox.
Definition: labeled_slider.h:50
KSaneIface::KSaneOptSlider
Definition: ksane_opt_slider.h:38
KSaneIface::KSaneOptSlider::setValue
bool setValue(float val)
Definition: ksane_opt_slider.cpp:140
ksane_option.h
QString
KSaneIface::KSaneOptSlider::getValue
bool getValue(float &val)
Definition: ksane_opt_slider.cpp:133
KSaneIface::KSaneOptSlider::KSaneOptSlider
KSaneOptSlider(const SANE_Handle handle, const int index)
Definition: ksane_opt_slider.cpp:47
KSaneIface::KSaneOption
Definition: ksane_option.h:49
KSaneIface::KSaneOptSlider::readValue
void readValue()
Definition: ksane_opt_slider.cpp:64
QObject::parent
QObject * parent() const
KSaneIface::KSaneOptSlider::createWidget
void createWidget(QWidget *parent)
Definition: ksane_opt_slider.cpp:52
KSaneIface::KSaneOptSlider::getMaxValue
bool getMaxValue(float &max)
Definition: ksane_opt_slider.cpp:122
KSaneIface::KSaneOptSlider::readOption
void readOption()
Definition: ksane_opt_slider.cpp:84
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