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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • dialogs
addlinkdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  addlinkdialog.h - K Desktop Planetarium
3  -------------------
4  begin : Sun Oct 21 2001
5  copyright : (C) 2001 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef ADDLINKDIALOG_H_
19 #define ADDLINKDIALOG_H_
20 
21 #include <QVBoxLayout>
22 #include <kdialog.h>
23 #include <klineedit.h>
24 #include <klocale.h>
25 
26 #include "ui_addlinkdialog.h"
27 
28 class QString;
29 
30 class AddLinkDialogUI : public QFrame, public Ui::AddLinkDialog {
31  Q_OBJECT
32 public:
33  explicit AddLinkDialogUI( QWidget *parent=0 );
34 };
35 
41 class AddLinkDialog : public KDialog {
42  Q_OBJECT
43 public:
47  explicit AddLinkDialog( QWidget* parent = 0, const QString &oname=i18n("object") );
48 
52  ~AddLinkDialog() {}
53 
57  QString url() const { return ald->URLBox->text(); }
58 
63  void setURL( const QString &s ) { ald->URLBox->setText( s ); }
64 
68  QString desc() const { return ald->DescBox->text(); }
69 
74  void setDesc( const QString &s ) { ald->DescBox->setText( s ); }
75 
79  bool isImageLink() const { return ald->ImageRadio->isChecked(); }
80 
85  void setImageLink( bool b ) { ald->ImageRadio->setChecked( b ); }
86 
87 private slots:
91  void checkURL( void );
92 
99  void changeDefaultDescription( int id );
100 
101 private:
102  QString ObjectName;
103  QVBoxLayout *vlay;
104  AddLinkDialogUI *ald;
105 };
106 
107 #endif
AddLinkDialog::setURL
void setURL(const QString &s)
Set the URL text.
Definition: addlinkdialog.h:63
AddLinkDialogUI::AddLinkDialogUI
AddLinkDialogUI(QWidget *parent=0)
Definition: addlinkdialog.cpp:27
QWidget
KDialog
AddLinkDialog
Definition: addlinkdialog.h:41
AddLinkDialog::AddLinkDialog
AddLinkDialog(QWidget *parent=0, const QString &oname=i18n("object"))
Constructor.
Definition: addlinkdialog.cpp:31
AddLinkDialog::isImageLink
bool isImageLink() const
Definition: addlinkdialog.h:79
AddLinkDialog::~AddLinkDialog
~AddLinkDialog()
Destructor (empty)
Definition: addlinkdialog.h:52
AddLinkDialog::setDesc
void setDesc(const QString &s)
Set the Description text.
Definition: addlinkdialog.h:74
AddLinkDialogUI
Definition: addlinkdialog.h:30
QFrame
AddLinkDialog::setImageLink
void setImageLink(bool b)
Set the link type.
Definition: addlinkdialog.h:85
AddLinkDialog::url
QString url() const
Definition: addlinkdialog.h:57
AddLinkDialog::desc
QString desc() const
Definition: addlinkdialog.h:68
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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