addprefixdlg.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _ADDPREFIXDLG_H_ 00013 #define _ADDPREFIXDLG_H_ 00014 00015 #include <qdialog.h> 00016 #include <qlineedit.h> 00017 class QPushButton; 00018 00019 class AddPrefixDialog : public QDialog 00020 { 00021 Q_OBJECT 00022 00023 public: 00024 AddPrefixDialog( const QString& nameEdit = "", const QString& pathEdit = "", 00025 QWidget *parent=0, const char *name=0 ); 00026 ~AddPrefixDialog(); 00027 00028 QString name() const 00029 { return name_edit->text(); } 00030 QString path() const 00031 { return path_edit->text(); } 00032 private slots: 00033 void slotPrefixChanged(); 00034 00035 private: 00036 QLineEdit *name_edit; 00037 QLineEdit *path_edit; 00038 QPushButton *m_pOk; 00039 }; 00040 00041 #endif