quickopenfunctiondialog.h
Go to the documentation of this file.00001 /* 00002 * Copyright (C) 2004 Ahn, Duk J.(adjj22@kornet.net) (adjj1@hanmail.net) 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; see the file COPYING.LIB. If not, write to 00016 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 * Boston, MA 02111-1307, USA. 00018 * 00019 */ 00020 00021 #ifndef QUICKOPENFUNCTIONDLG_H 00022 #define QUICKOPENFUNCTIONDLG_H 00023 00024 #include <codemodel.h> 00025 00026 #include "quickopendialog.h" 00027 #include "quickopen_part.h" 00028 00029 class KCompletion; 00030 class QuickOpenPart; 00031 00032 class QuickOpenFunctionDialog : public QuickOpenDialog 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 QuickOpenFunctionDialog( QuickOpenPart* part, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00038 ~QuickOpenFunctionDialog(); 00039 00040 void gotoFile( QString name ); 00041 00042 FunctionDefinitionList* matchingFuncList(){ return funcList; }; 00043 QuickOpenPart* part(){ return m_part; }; 00044 00045 public slots: 00046 virtual void slotExecuted(QListBoxItem*);//itemList executed, returnPressed 00047 virtual void executed(QListBoxItem*); // 00048 virtual void slotReturnPressed(); //buttonOk clicked, nameEdit returnPressed 00049 00050 protected: 00051 FunctionDefinitionList *m_functionDefList; 00052 QStringList *m_functionStrList; 00053 FunctionDefinitionList *funcList; 00054 00055 }; 00056 00057 #endif 00058