parts/filecreate/filecreate_filedialog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Julian Rockey * 00003 * linux@jrockey.com * 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 00013 #ifndef __KDEVPART_FILECREATE_FILEDIALOG_H__ 00014 #define __KDEVPART_FILECREATE_FILEDIALOG_H__ 00015 00016 #include <kfiledialog.h> 00017 00018 #include "filecreate_typechooser.h" 00019 00020 namespace FileCreate { 00021 00022 class FileDialog : public KFileDialog { 00023 Q_OBJECT 00024 00025 public: 00026 FileDialog(const QString& startDir, const QString& filter, 00027 QWidget *parent, const char *name, 00028 bool modal, QWidget * extraWidget); 00029 virtual ~FileDialog(); 00030 00031 virtual void initGUI(); 00032 00033 protected: 00034 QWidget * m_extraWidget; 00035 TypeChooser * m_typeChooser; 00036 00037 protected slots: 00038 void slotActionFilterChanged(const QString & filter); 00039 void slotActionTextChanged(const QString & text); 00040 00041 00042 }; 00043 00044 } 00045 00046 #endif