Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

qcompletionbox.h

00001 /***************************************************************************
00002                           qcompletionbox.h  -  description
00003                              -------------------
00004     begin                : Mon Feb 3 2003
00005     copyright            : (C) 2003 by Heiko Köhler
00006     email                : heicom@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef __QCOMPLETIONBOX_H__
00019 #define __QCOMPLETIONBOX_H__
00020 
00021 #undef slots
00022 #include <Python.h>
00023 #define slots
00024 #include <qcombobox.h>
00025 #include <qstringlist.h>
00026 
00027 class CmdInterpreter;
00028 
00036 class QCommandBox : public QComboBox
00037 {
00038     Q_OBJECT
00039 public:
00041     QCommandBox( CmdInterpreter *cmdInterpreter, QWidget *parent=0, const char *name=0 );
00043     void registerPyModule( PyObject *module );
00044 protected slots:
00046     void autoComplete( const QString & );
00048     void itemActivated( const QString & );
00050     void exec();
00051 signals:
00052     void commandExecuted();
00053 private:
00055     QStringList commands;
00057     CmdInterpreter *cmdInterpreter;
00058 };
00059 
00060 #endif
00061 

Generated on Sun May 2 20:02:58 2004 by doxygen 1.3.2