KDevelop API Documentation

parts/doctreeview/adddocitemdlg.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * Copyright (C) 2003 by Alexander Dymo * 00005 * cloudtemple@mksat.net * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 ***************************************************************************/ 00013 00014 #ifndef _ADDDOCITEMDLG_H_ 00015 #define _ADDDOCITEMDLG_H_ 00016 00017 #include <qdialog.h> 00018 #include <qlineedit.h> 00019 #include <qcheckbox.h> 00020 #include <kurlrequester.h> 00021 #include <kfile.h> 00022 class QPushButton; 00023 00024 class AddDocItemDialog : public QDialog 00025 { 00026 Q_OBJECT 00027 00028 public: 00029 enum TitleType {None, Qt, KDevelopTOC, DevHelp}; 00030 00031 AddDocItemDialog( KFile::Mode mode = KFile::File, QString filter = "text/html", 00032 TitleType checkDocTitle = None, QString title = "", QString url = "", QWidget *parent=0, const char *name=0 ); 00033 ~AddDocItemDialog(); 00034 00035 QString title() const 00036 { return title_edit->text(); } 00037 QString url() const 00038 { return url_edit->url(); } 00039 00040 private slots: 00041 void setTitle(const QString &str); 00042 void setLocationChanged(const QString & _text ); 00043 private: 00044 QLineEdit *title_edit; 00045 KURLRequester *url_edit; 00046 KFile::Mode m_mode; 00047 TitleType m_type; 00048 QString m_filter; 00049 QCheckBox *title_check; 00050 QPushButton *m_pOk; 00051 }; 00052 00053 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:10 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003