00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _konq_misc_h
00021 #define _konq_misc_h
00022
00023
00024
00025
00026 #include <krun.h>
00027 #include <kparts/browserextension.h>
00028 class KonqMainWindow;
00029 class KonqView;
00030
00031 class KonqMisc
00032 {
00033 public:
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00052 static void abortFullScreenMode();
00053
00057 static KonqMainWindow * createSimpleWindow( const KURL &url, const TQString &frameName = TQString::null );
00058
00062 static KonqMainWindow * createSimpleWindow( const KURL &url, const KParts::URLArgs &args,
00063 bool tempFile = false);
00064
00070 static KonqMainWindow * createNewWindow( const KURL &url,
00071 const KParts::URLArgs &args = KParts::URLArgs(),
00072 bool forbidUseHTML = false,
00073 TQStringList filesToSelect = TQStringList(),
00074 bool tempFile = false,
00075 bool openURL = true);
00076
00083 static KonqMainWindow * createBrowserWindowFromProfile( const TQString &path,
00084 const TQString &filename,
00085 const KURL &url = KURL(),
00086 const KParts::URLArgs &args = KParts::URLArgs(),
00087 bool forbidUseHTML = false,
00088 const TQStringList& filesToSelect = TQStringList(),
00089 bool tempFile = false,
00090 bool openURL = true);
00091
00097 static KonqMainWindow * newWindowFromHistory( KonqView* view, int steps );
00098
00106 static TQString konqFilteredURL( TQWidget* , const TQString& , const TQString& _path = TQString::null );
00107
00108 };
00109
00110 #include <tqlabel.h>
00111
00112 class KonqDraggableLabel : public QLabel
00113 {
00114 Q_OBJECT
00115 public:
00116 KonqDraggableLabel( KonqMainWindow * mw, const TQString & text );
00117
00118 protected:
00119 void mousePressEvent( TQMouseEvent * ev );
00120 void mouseMoveEvent( TQMouseEvent * ev );
00121 void mouseReleaseEvent( TQMouseEvent * );
00122 void dragEnterEvent( TQDragEnterEvent *ev );
00123 void dropEvent( TQDropEvent* ev );
00124
00125 private slots:
00126 void delayedOpenURL();
00127
00128 private:
00129 TQPoint startDragPos;
00130 bool validDrag;
00131 KonqMainWindow * m_mw;
00132 KURL::List _savedLst;
00133 };
00134
00135 #endif