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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • misc
kiginputdialog.h
Go to the documentation of this file.
1 
21 #ifndef KIG_MISC_KIGINPUTDIALOG_H
22 #define KIG_MISC_KIGINPUTDIALOG_H
23 
24 class QString;
25 class Coordinate;
26 class Goniometry;
27 class KigDocument;
28 class KigInputDialogPrivate;
29 
30 #include <kdialog.h>
31 
40 class KigInputDialog
41  : public KDialog
42 {
43 Q_OBJECT
44 
45 public:
46 
47 private:
48  KigInputDialog( const QString& caption, const QString& label, QWidget* parent,
49  const KigDocument& doc, Coordinate* c1, Coordinate* c2 );
50  KigInputDialog( QWidget* parent, const Goniometry& g );
51  virtual ~KigInputDialog();
52  virtual void keyPressEvent( QKeyEvent* e );
53 
54  KigInputDialogPrivate* d;
55 
56  Coordinate coordinateFirst() const;
57  Coordinate coordinateSecond() const;
58  Goniometry goniometry() const;
59 
60 private slots:
61  void slotCoordsChanged( const QString& );
62  void slotGonioSystemChanged( int index );
63  void slotGonioTextChanged( const QString& txt );
64 
65 public:
80  static void getCoordinate( const QString& caption, const QString& label,
81  QWidget* parent, bool* ok, const KigDocument& doc, Coordinate* cvalue );
82 
103  static void getTwoCoordinates( const QString& caption, const QString& label,
104  QWidget* parent, bool* ok, const KigDocument& doc, Coordinate* cvalue,
105  Coordinate* cvalue2 );
106 
119  static Goniometry getAngle( QWidget* parent, bool* ok, const Goniometry& g );
120 };
121 
122 #endif
Goniometry
Manage an angle and convert it from/to other goniometric systems.
Definition: goniometry.h:28
QWidget
KDialog
Coordinate
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
KigInputDialog::getTwoCoordinates
static void getTwoCoordinates(const QString &caption, const QString &label, QWidget *parent, bool *ok, const KigDocument &doc, Coordinate *cvalue, Coordinate *cvalue2)
Static convenience function to get two Coordinates at once from the user.
Definition: kiginputdialog.cc:265
KigInputDialog::getCoordinate
static void getCoordinate(const QString &caption, const QString &label, QWidget *parent, bool *ok, const KigDocument &doc, Coordinate *cvalue)
Static convenience function to get a Coordinate from the user.
Definition: kiginputdialog.cc:259
KigInputDialog::getAngle
static Goniometry getAngle(QWidget *parent, bool *ok, const Goniometry &g)
Static convenience function to get an angle incapsulated in a Goniometry class.
Definition: kiginputdialog.cc:286
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
KigInputDialog
The KigInputDialog class provides easy ways of interaction with the user.
Definition: kiginputdialog.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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