kstars
addlinkdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ADDLINKDIALOG_H
00019 #define ADDLINKDIALOG_H
00020
00021 #include <kdialogbase.h>
00022 #include <klineedit.h>
00023 #include <klocale.h>
00024 #include <qradiobutton.h>
00025
00026 #include "addlinkdialogui.h"
00027
00028 class QLayout;
00029 class QString;
00030 class SkyMap;
00031
00037 class AddLinkDialog : public KDialogBase {
00038 Q_OBJECT
00039 public:
00041 AddLinkDialog( QWidget* parent = 0, const QString &oname=i18n("object") );
00042
00044 ~AddLinkDialog() {}
00045
00047 QString url() const { return ald->URLBox->text(); }
00048
00052 void setURL( const QString &s ) { ald->URLBox->setText( s ); }
00053
00055 QString desc() const { return ald->DescBox->text(); }
00056
00060 void setDesc( const QString &s ) { ald->DescBox->setText( s ); }
00061
00063 bool isImageLink() const { return ald->ImageRadio->isChecked(); }
00064
00068 void setImageLink( bool b ) { ald->ImageRadio->setChecked( b ); }
00069
00070 private slots:
00073 void checkURL( void );
00074
00080 void changeDefaultDescription( int id );
00081
00082 private:
00083 QString ObjectName;
00084 QVBoxLayout *vlay;
00085 AddLinkDialogUI *ald;
00086 };
00087
00088 #endif