|
|
#ifndef kurlcompletion_h #define kurlcompletion_h #include <qstring.h> #include <qstrlist.h> #include <qobject.h> /** * URL completion helper. To use this, connect * it to a @ref KLineEdit widget, which emits signals for completion * (Tab/Ctrl-S) and rotation (Ctrl-D). * * Limitations: Currently only file completion is supported. * * @see KLineEdit * @author Henner Zeller <zeller@think.de>, based on code by Torben Weis. * @version $Id: kurlcompletion.h,v 1.4 1999/06/04 15:43:56 pbrown Exp $ */ class KURLCompletion : public QObject { Q_OBJECT public: KURLCompletion( const QString& dir = QString::null); ~KURLCompletion(); public slots: void make_completion (); void make_rotation (); void edited (const QString&); signals: void setText (const QString&); private: bool is_fileurl (QString &url, bool &ambigous_beginning) const; void GetList (QString dir, QString & match); bool CompleteDir (QString &dir); QString directory; bool new_guess; bool completed_dir; bool self_update; QString the_text; QStrList possibilityList; QString guess; QString qual_dir; }; #endif
Generated by: dfaure@faure on Sun Mar 26 14:24:24 2000, using kdoc 2.0a35. |