parts/filecreate/filecreate_widget3.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 #ifndef __FILECREATE_WIDGET3_H__ 00012 #define __FILECREATE_WIDGET3_H__ 00013 00014 00015 #include <qwidget.h> 00016 #include <qstring.h> 00017 00018 #include <klistview.h> 00019 00020 #include "filecreate_typechooser.h" 00021 00022 class KDevProject; 00023 class FileCreatePart; 00024 class QResizeEvent; 00025 00026 namespace FileCreate { 00027 00028 class FileType; 00029 00030 class ListWidget : public KListView, public TypeChooser 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 00036 ListWidget(FileCreatePart *part); 00037 virtual ~ListWidget(); 00038 00039 virtual void refresh(); 00040 virtual void setCurrent(const FileType * current); 00041 virtual void resizeEvent(QResizeEvent *event); 00042 00043 public slots: 00044 void slotTypeSelected(QListViewItem * item); 00045 00046 }; 00047 00048 } 00049 00050 #endif