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

kstars

addlinkdialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           addlinkdialog.h  -  K Desktop Planetarium
00003                              -------------------
00004     begin                : Sun Oct 21 2001
00005     copyright            : (C) 2001 by Jason Harris
00006     email                : kstars@30doradus.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef ADDLINKDIALOG_H_
00019 #define ADDLINKDIALOG_H_
00020 
00021 #include <QVBoxLayout>
00022 #include <kdialog.h>
00023 #include <klineedit.h>
00024 #include <klocale.h>
00025 
00026 #include "ui_addlinkdialog.h"
00027 
00028 class QString;
00029 
00030 class AddLinkDialogUI : public QFrame, public Ui::AddLinkDialog {
00031     Q_OBJECT
00032 public:
00033     AddLinkDialogUI( QWidget *parent=0 );
00034 };
00035 
00041 class AddLinkDialog : public KDialog  {
00042     Q_OBJECT
00043 public:
00047     explicit AddLinkDialog( QWidget* parent = 0, const QString &oname=i18n("object") );
00048 
00052     ~AddLinkDialog() {}
00053 
00057     QString url() const { return ald->URLBox->text(); }
00058 
00063     void setURL( const QString &s ) { ald->URLBox->setText( s ); }
00064 
00068     QString desc() const { return ald->DescBox->text(); }
00069 
00074     void setDesc( const QString &s ) { ald->DescBox->setText( s ); }
00075 
00079     bool isImageLink() const { return ald->ImageRadio->isChecked(); }
00080 
00085     void setImageLink( bool b ) { ald->ImageRadio->setChecked( b ); }
00086 
00087 private slots:
00091     void checkURL( void );
00092 
00099     void changeDefaultDescription( int id );
00100 
00101 private:
00102     QString ObjectName;
00103     QVBoxLayout *vlay;
00104     AddLinkDialogUI *ald;
00105 };
00106 
00107 #endif

kstars

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal