summaryrefslogtreecommitdiffstats
path: root/doc/html/fileiconview-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/fileiconview-example.html')
-rw-r--r--doc/html/fileiconview-example.html564
1 files changed, 282 insertions, 282 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html
index 72eb6b69e..78a1a849c 100644
--- a/doc/html/fileiconview-example.html
+++ b/doc/html/fileiconview-example.html
@@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<p>
This example implements a simple and not fully functional file manager using
-a widget derived from <a href="qiconview.html">TQIconView</a> to display the current directory.
+a widget derived from <a href="ntqiconview.html">TQIconView</a> to display the current directory.
To display the directory tree the
widget written in the <a href="dirview-example.html">dirview</a> example is
used.
@@ -54,12 +54,12 @@ used.
#define TQTFILEICONVIEW_H
-#include &lt;<a href="qiconset-h.html">qiconset.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qfileinfo-h.html">qfileinfo.h</a>&gt;
-#include &lt;<a href="qdir-h.html">qdir.h</a>&gt;
-#include &lt;<a href="qtimer-h.html">qtimer.h</a>&gt;
-#include &lt;<a href="qiconview-h.html">qiconview.h</a>&gt;
+#include &lt;<a href="qiconset-h.html">ntqiconset.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="qfileinfo-h.html">ntqfileinfo.h</a>&gt;
+#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
+#include &lt;<a href="qtimer-h.html">ntqtimer.h</a>&gt;
+#include &lt;<a href="qiconview-h.html">ntqiconview.h</a>&gt;
class TQtFileIconView;
class TQDragObject;
@@ -76,15 +76,15 @@ class TQtFileIconDrag : public <a href="qicondrag.html">TQIconDrag</a>
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- TQtFileIconDrag( <a href="qwidget.html">TQWidget</a> * dragSource, const char* name = 0 );
+ TQtFileIconDrag( <a href="ntqwidget.html">TQWidget</a> * dragSource, const char* name = 0 );
const char* format( int i ) const;
<a href="qbytearray.html">TQByteArray</a> encodedData( const char* mime ) const;
static bool canDecode( <a href="qmimesource.html">TQMimeSource</a>* e );
- void append( const <a href="qicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="qrect.html">TQRect</a> &amp;pr, const <a href="qrect.html">TQRect</a> &amp;tr, const <a href="qstring.html">TQString</a> &amp;url );
+ void append( const <a href="qicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="ntqrect.html">TQRect</a> &amp;pr, const <a href="ntqrect.html">TQRect</a> &amp;tr, const <a href="ntqstring.html">TQString</a> &amp;url );
private:
- <a href="qstringlist.html">TQStringList</a> urls;
+ <a href="ntqstringlist.html">TQStringList</a> urls;
};
@@ -94,12 +94,12 @@ private:
*
*****************************************************************************/
class TQtFileIconViewItem;
-class TQtFileIconView : public <a href="qiconview.html">TQIconView</a>
+class TQtFileIconView : public <a href="ntqiconview.html">TQIconView</a>
{
Q_OBJECT
public:
- TQtFileIconView( const <a href="qstring.html">TQString</a> &amp;dir, TQWidget *parent = 0, const char *name = 0 );
+ TQtFileIconView( const <a href="ntqstring.html">TQString</a> &amp;dir, TQWidget *parent = 0, const char *name = 0 );
enum ViewMode { Large, Small };
@@ -110,13 +110,13 @@ public:
}
public slots:
- void setDirectory( const <a href="qstring.html">TQString</a> &amp;dir );
- void setDirectory( const <a href="qdir.html">TQDir</a> &amp;dir );
+ void setDirectory( const <a href="ntqstring.html">TQString</a> &amp;dir );
+ void setDirectory( const <a href="ntqdir.html">TQDir</a> &amp;dir );
void newDirectory();
- <a href="qdir.html">TQDir</a> currentDir();
+ <a href="ntqdir.html">TQDir</a> currentDir();
signals:
- void directoryChanged( const <a href="qstring.html">TQString</a> &amp; );
+ void directoryChanged( const <a href="ntqstring.html">TQString</a> &amp; );
void startReadDir( int dirs );
void readNextDir();
void readDirDone();
@@ -127,7 +127,7 @@ signals:
protected slots:
void itemDoubleClicked( <a href="qiconviewitem.html">TQIconViewItem</a> *i );
- void slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
+ void slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
void viewLarge();
void viewSmall();
@@ -140,22 +140,22 @@ protected slots:
void sortAscending();
void sortDescending();
void arrangeItemsInGrid() {
-<a name="x807"></a> TQIconView::<a href="qiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>( TRUE );
+<a name="x807"></a> TQIconView::<a href="ntqiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>( TRUE );
}
void slotRightPressed( <a href="qiconviewitem.html">TQIconViewItem</a> *item );
void openFolder();
protected:
- void readDir( const <a href="qdir.html">TQDir</a> &amp;dir );
+ void readDir( const <a href="ntqdir.html">TQDir</a> &amp;dir );
virtual TQDragObject *dragObject();
virtual void keyPressEvent( <a href="qkeyevent.html">TQKeyEvent</a> *e );
- <a href="qdir.html">TQDir</a> viewDir;
+ <a href="ntqdir.html">TQDir</a> viewDir;
int newFolderNum;
- <a href="qsize.html">TQSize</a> sz;
- <a href="qpixmap.html">TQPixmap</a> pix;
+ <a href="ntqsize.html">TQSize</a> sz;
+ <a href="ntqpixmap.html">TQPixmap</a> pix;
ViewMode vm;
TQtFileIconViewItem *openItem;
@@ -184,27 +184,27 @@ public:
ItemType type() const
{ return itemType; }
- <a href="qstring.html">TQString</a> filename() const { return itemFileName; }
+ <a href="ntqstring.html">TQString</a> filename() const { return itemFileName; }
virtual bool acceptDrop( const <a href="qmimesource.html">TQMimeSource</a> *e ) const;
- virtual void setText( const <a href="qstring.html">TQString</a> &amp;text );
+ virtual void setText( const <a href="ntqstring.html">TQString</a> &amp;text );
virtual TQPixmap *pixmap() const;
virtual void dragEntered();
virtual void dragLeft();
void viewModeChanged( TQtFileIconView::ViewMode m );
- void paintItem( <a href="qpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg );
+ void paintItem( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg );
protected:
- virtual void dropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
+ virtual void dropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; );
- <a href="qstring.html">TQString</a> itemFileName;
- <a href="qfileinfo.html">TQFileInfo</a> *itemFileInfo;
+ <a href="ntqstring.html">TQString</a> itemFileName;
+ <a href="ntqfileinfo.html">TQFileInfo</a> *itemFileInfo;
ItemType itemType;
bool checkSetText;
- <a href="qtimer.html">TQTimer</a> timer;
+ <a href="ntqtimer.html">TQTimer</a> timer;
TQtFileIconView::ViewMode vm;
};
@@ -226,18 +226,18 @@ protected:
*****************************************************************************/
#include "qfileiconview.h"
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
-#include &lt;<a href="qstringlist-h.html">qstringlist.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
-#include &lt;<a href="qmime-h.html">qmime.h</a>&gt;
-#include &lt;<a href="qstrlist-h.html">qstrlist.h</a>&gt;
-#include &lt;<a href="qdragobject-h.html">qdragobject.h</a>&gt;
-#include &lt;<a href="qmessagebox-h.html">qmessagebox.h</a>&gt;
-#include &lt;<a href="qevent-h.html">qevent.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">qpopupmenu.h</a>&gt;
-#include &lt;<a href="qcursor-h.html">qcursor.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qwmatrix-h.html">qwmatrix.h</a>&gt;
+#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="qstringlist-h.html">ntqstringlist.h</a>&gt;
+#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="qmime-h.html">ntqmime.h</a>&gt;
+#include &lt;<a href="qstrlist-h.html">ntqstrlist.h</a>&gt;
+#include &lt;<a href="qdragobject-h.html">ntqdragobject.h</a>&gt;
+#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
+#include &lt;<a href="qevent-h.html">ntqevent.h</a>&gt;
+#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="qcursor-h.html">ntqcursor.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qwmatrix-h.html">ntqwmatrix.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -469,7 +469,7 @@ static void cleanup()
*
*****************************************************************************/
-<a name="f301"></a>TQtFileIconDrag::TQtFileIconDrag( <a href="qwidget.html">TQWidget</a> * dragSource, const char* name )
+<a name="f301"></a>TQtFileIconDrag::TQtFileIconDrag( <a href="ntqwidget.html">TQWidget</a> * dragSource, const char* name )
: <a href="qicondrag.html">TQIconDrag</a>( dragSource, name )
{
}
@@ -490,9 +490,9 @@ static void cleanup()
if ( TQString( mime ) == "application/x-qiconlist" ) {
a = TQIconDrag::<a href="qicondrag.html#encodedData">encodedData</a>( mime );
} else if ( TQString( mime ) == "text/uri-list" ) {
- <a href="qstring.html">TQString</a> s = urls.join( "\r\n" );
-<a name="x870"></a><a name="x856"></a> a.<a href="qmemarray.html#resize">resize</a>( s.<a href="qstring.html#length">length</a>() );
-<a name="x869"></a><a name="x855"></a> memcpy( a.<a href="qmemarray.html#data">data</a>(), s.<a href="qstring.html#latin1">latin1</a>(), s.<a href="qstring.html#length">length</a>() );
+ <a href="ntqstring.html">TQString</a> s = urls.join( "\r\n" );
+<a name="x870"></a><a name="x856"></a> a.<a href="ntqmemarray.html#resize">resize</a>( s.<a href="ntqstring.html#length">length</a>() );
+<a name="x869"></a><a name="x855"></a> memcpy( a.<a href="ntqmemarray.html#data">data</a>(), s.<a href="ntqstring.html#latin1">latin1</a>(), s.<a href="ntqstring.html#length">length</a>() );
}
return a;
}
@@ -503,15 +503,15 @@ static void cleanup()
e-&gt;<a href="qdropevent.html#provides">provides</a>( "text/uri-list" );
}
-<a name="x829"></a>void TQtFileIconDrag::<a href="qicondrag.html#append">append</a>( const <a href="qicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="qrect.html">TQRect</a> &amp;pr,
- const <a href="qrect.html">TQRect</a> &amp;tr, const <a href="qstring.html">TQString</a> &amp;url )
+<a name="x829"></a>void TQtFileIconDrag::<a href="qicondrag.html#append">append</a>( const <a href="qicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="ntqrect.html">TQRect</a> &amp;pr,
+ const <a href="ntqrect.html">TQRect</a> &amp;tr, const <a href="ntqstring.html">TQString</a> &amp;url )
{
TQIconDrag::<a href="qicondrag.html#append">append</a>( item, pr, tr );
- <a href="qstring.html">TQString</a> ourUrl = url;
+ <a href="ntqstring.html">TQString</a> ourUrl = url;
#ifdef Q_WS_WIN
- if (ourUrl.<a href="qstring.html#length">length</a>() &gt; 2 &amp;&amp; ourUrl[1] != ':') {
- <a href="qdir.html">TQDir</a> dir(ourUrl);
-<a name="x810"></a> ourUrl = dir.<a href="qdir.html#absPath">absPath</a>();
+ if (ourUrl.<a href="ntqstring.html#length">length</a>() &gt; 2 &amp;&amp; ourUrl[1] != ':') {
+ <a href="ntqdir.html">TQDir</a> dir(ourUrl);
+<a name="x810"></a> ourUrl = dir.<a href="ntqdir.html#absPath">absPath</a>();
}
#endif
urls &lt;&lt; TQUriDrag::<a href="quridrag.html#localFileToUri">localFileToUri</a>(ourUrl);
@@ -524,36 +524,36 @@ static void cleanup()
*****************************************************************************/
<a name="f322"></a>TQtFileIconViewItem::TQtFileIconViewItem( TQtFileIconView *parent, TQFileInfo *fi )
-<a name="x824"></a><a name="x823"></a> : <a href="qiconviewitem.html">TQIconViewItem</a>( parent, fi-&gt;<a href="qfileinfo.html#fileName">fileName</a>() ), itemFileName( fi-&gt;<a href="qfileinfo.html#filePath">filePath</a>() ),
+<a name="x824"></a><a name="x823"></a> : <a href="qiconviewitem.html">TQIconViewItem</a>( parent, fi-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() ), itemFileName( fi-&gt;<a href="ntqfileinfo.html#filePath">filePath</a>() ),
itemFileInfo( fi ), checkSetText( FALSE )
{
vm = TQtFileIconView::Large;
-<a name="x825"></a> if ( itemFileInfo-&gt;<a href="qfileinfo.html#isDir">isDir</a>() )
+<a name="x825"></a> if ( itemFileInfo-&gt;<a href="ntqfileinfo.html#isDir">isDir</a>() )
itemType = Dir;
-<a name="x826"></a> else if ( itemFileInfo-&gt;<a href="qfileinfo.html#isFile">isFile</a>() )
+<a name="x826"></a> else if ( itemFileInfo-&gt;<a href="ntqfileinfo.html#isFile">isFile</a>() )
itemType = File;
-<a name="x827"></a> if ( itemFileInfo-&gt;<a href="qfileinfo.html#isSymLink">isSymLink</a>() )
+<a name="x827"></a> if ( itemFileInfo-&gt;<a href="ntqfileinfo.html#isSymLink">isSymLink</a>() )
itemType = Link;
viewModeChanged( ( (TQtFileIconView*)<a href="qiconviewitem.html#iconView">iconView</a>() )-&gt;viewMode() );
- if ( itemFileInfo-&gt;<a href="qfileinfo.html#fileName">fileName</a>() == "." ||
- itemFileInfo-&gt;<a href="qfileinfo.html#fileName">fileName</a>() == ".." )
+ if ( itemFileInfo-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() == "." ||
+ itemFileInfo-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() == ".." )
<a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( FALSE );
checkSetText = TRUE;
- TQObject::<a href="qobject.html#connect">connect</a>( &amp;timer, SIGNAL( timeout() ),
+ TQObject::<a href="ntqobject.html#connect">connect</a>( &amp;timer, SIGNAL( timeout() ),
<a href="qiconviewitem.html#iconView">iconView</a>(), SLOT( openFolder() ) );
}
-<a name="x842"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#paintItem">paintItem</a>( <a href="qpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg )
+<a name="x842"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#paintItem">paintItem</a>( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg )
{
- if ( itemFileInfo-&gt;<a href="qfileinfo.html#isSymLink">isSymLink</a>() ) {
-<a name="x861"></a> <a href="qfont.html">TQFont</a> f( p-&gt;<a href="qpainter.html#font">font</a>() );
-<a name="x828"></a> f.<a href="qfont.html#setItalic">setItalic</a>( TRUE );
- p-&gt;<a href="qpainter.html#setFont">setFont</a>( f );
+ if ( itemFileInfo-&gt;<a href="ntqfileinfo.html#isSymLink">isSymLink</a>() ) {
+<a name="x861"></a> <a href="ntqfont.html">TQFont</a> f( p-&gt;<a href="ntqpainter.html#font">font</a>() );
+<a name="x828"></a> f.<a href="ntqfont.html#setItalic">setItalic</a>( TRUE );
+ p-&gt;<a href="ntqpainter.html#setFont">setFont</a>( f );
}
TQIconViewItem::<a href="qiconviewitem.html#paintItem">paintItem</a>( p, cg );
@@ -605,16 +605,16 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
delete itemFileInfo;
}
-<a name="x850"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#setText">setText</a>( const <a href="qstring.html">TQString</a> &amp;text )
+<a name="x850"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#setText">setText</a>( const <a href="ntqstring.html">TQString</a> &amp;text )
{
if ( checkSetText ) {
- if ( text == "." || text == "." || text.<a href="qstring.html#isEmpty">isEmpty</a>() )
+ if ( text == "." || text == "." || text.<a href="ntqstring.html#isEmpty">isEmpty</a>() )
return;
-<a name="x821"></a> <a href="qdir.html">TQDir</a> dir( itemFileInfo-&gt;<a href="qfileinfo.html#dir">dir</a>() );
-<a name="x814"></a> if ( dir.<a href="qdir.html#rename">rename</a>( itemFileInfo-&gt;<a href="qfileinfo.html#fileName">fileName</a>(), text ) ) {
-<a name="x822"></a> itemFileName = itemFileInfo-&gt;<a href="qfileinfo.html#dirPath">dirPath</a>( TRUE ) + "/" + text;
+<a name="x821"></a> <a href="ntqdir.html">TQDir</a> dir( itemFileInfo-&gt;<a href="ntqfileinfo.html#dir">dir</a>() );
+<a name="x814"></a> if ( dir.<a href="ntqdir.html#rename">rename</a>( itemFileInfo-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>(), text ) ) {
+<a name="x822"></a> itemFileName = itemFileInfo-&gt;<a href="ntqfileinfo.html#dirPath">dirPath</a>( TRUE ) + "/" + text;
delete itemFileInfo;
- itemFileInfo = new <a href="qfileinfo.html">TQFileInfo</a>( itemFileName );
+ itemFileInfo = new <a href="ntqfileinfo.html">TQFileInfo</a>( itemFileName );
TQIconViewItem::<a href="qiconviewitem.html#setText">setText</a>( text );
}
} else {
@@ -631,7 +631,7 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
return FALSE;
}
-<a name="x839"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
+<a name="x839"></a>void TQtFileIconViewItem::<a href="qiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
{
timer.stop();
@@ -640,23 +640,23 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
return;
}
- <a href="qstringlist.html">TQStringList</a> lst;
+ <a href="ntqstringlist.html">TQStringList</a> lst;
<a name="x873"></a> TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
- <a href="qstring.html">TQString</a> str;
+ <a href="ntqstring.html">TQString</a> str;
<a name="x817"></a> if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy )
str = "Copy\n\n";
else
str = "Move\n\n";
-<a name="x874"></a> for ( uint i = 0; i &lt; lst.<a href="qvaluelist.html#count">count</a>(); ++i )
+<a name="x874"></a> for ( uint i = 0; i &lt; lst.<a href="ntqvaluelist.html#count">count</a>(); ++i )
str += TQString( " %1\n" ).arg( lst[i] );
str += TQString( "\n"
"To\n\n"
" %1" ).arg( filename() );
-<a name="x859"></a> TQMessageBox::<a href="qmessagebox.html#information">information</a>( iconView(), e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
+<a name="x859"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Move )
- TQMessageBox::<a href="qmessagebox.html#information">information</a>( iconView(), "Remove" , str, "Not Implemented" );
+ TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), "Remove" , str, "Not Implemented" );
<a name="x816"></a> e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
}
@@ -685,51 +685,51 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
*
*****************************************************************************/
-<a name="f302"></a>TQtFileIconView::TQtFileIconView( const <a href="qstring.html">TQString</a> &amp;dir, TQWidget *parent, const char *name )
- : <a href="qiconview.html">TQIconView</a>( parent, name ), viewDir( dir ), newFolderNum( 0 )
+<a name="f302"></a>TQtFileIconView::TQtFileIconView( const <a href="ntqstring.html">TQString</a> &amp;dir, TQWidget *parent, const char *name )
+ : <a href="ntqiconview.html">TQIconView</a>( parent, name ), viewDir( dir ), newFolderNum( 0 )
{
if ( !iconFolderLockedLarge ) {
- <a href="qapplication.html#qAddPostRoutine">qAddPostRoutine</a>( cleanup );
- <a href="qwmatrix.html">TQWMatrix</a> m;
-<a name="x876"></a> m.<a href="qwmatrix.html#scale">scale</a>( 0.6, 0.6 );
- <a href="qpixmap.html">TQPixmap</a> iconpix( folder_locked_icon );
- iconFolderLockedLarge = new <a href="qpixmap.html">TQPixmap</a>( folder_locked_icon );
-<a name="x863"></a> iconpix = iconpix.<a href="qpixmap.html#xForm">xForm</a>( m );
- iconFolderLockedSmall = new <a href="qpixmap.html">TQPixmap</a>( iconpix );
+ <a href="ntqapplication.html#qAddPostRoutine">qAddPostRoutine</a>( cleanup );
+ <a href="ntqwmatrix.html">TQWMatrix</a> m;
+<a name="x876"></a> m.<a href="ntqwmatrix.html#scale">scale</a>( 0.6, 0.6 );
+ <a href="ntqpixmap.html">TQPixmap</a> iconpix( folder_locked_icon );
+ iconFolderLockedLarge = new <a href="ntqpixmap.html">TQPixmap</a>( folder_locked_icon );
+<a name="x863"></a> iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m );
+ iconFolderLockedSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( folder_icon );
- iconFolderLarge = new <a href="qpixmap.html">TQPixmap</a>( folder_icon );
- iconpix = iconpix.<a href="qpixmap.html#xForm">xForm</a>( m );
- iconFolderSmall = new <a href="qpixmap.html">TQPixmap</a>( iconpix );
+ iconFolderLarge = new <a href="ntqpixmap.html">TQPixmap</a>( folder_icon );
+ iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m );
+ iconFolderSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( file_icon );
- iconFileLarge = new <a href="qpixmap.html">TQPixmap</a>( file_icon );
- iconpix = iconpix.<a href="qpixmap.html#xForm">xForm</a>( m );
- iconFileSmall = new <a href="qpixmap.html">TQPixmap</a>( iconpix );
+ iconFileLarge = new <a href="ntqpixmap.html">TQPixmap</a>( file_icon );
+ iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m );
+ iconFileSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( link_icon );
- iconLinkLarge = new <a href="qpixmap.html">TQPixmap</a>( link_icon );
- iconpix = iconpix.<a href="qpixmap.html#xForm">xForm</a>( m );
- iconLinkSmall = new <a href="qpixmap.html">TQPixmap</a>( iconpix );
+ iconLinkLarge = new <a href="ntqpixmap.html">TQPixmap</a>( link_icon );
+ iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m );
+ iconLinkSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix );
}
vm = Large;
- <a href="qiconview.html#setGridX">setGridX</a>( 75 );
- <a href="qiconview.html#setResizeMode">setResizeMode</a>( Adjust );
- <a href="qiconview.html#setWordWrapIconText">setWordWrapIconText</a>( FALSE );
+ <a href="ntqiconview.html#setGridX">setGridX</a>( 75 );
+ <a href="ntqiconview.html#setResizeMode">setResizeMode</a>( Adjust );
+ <a href="ntqiconview.html#setWordWrapIconText">setWordWrapIconText</a>( FALSE );
- <a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qiconview.html#doubleClicked">doubleClicked</a>( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ),
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqiconview.html#doubleClicked">doubleClicked</a>( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ),
this, SLOT( itemDoubleClicked( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ) );
- <a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qiconview.html#returnPressed">returnPressed</a>( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ),
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqiconview.html#returnPressed">returnPressed</a>( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ),
this, SLOT( itemDoubleClicked( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ) );
- <a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qiconview.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ),
- this, SLOT( slotDropped( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ) );
- <a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="qiconviewitem.html">TQIconViewItem</a> *, const <a href="qpoint.html">TQPoint</a> &amp; ) ),
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqiconview.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ),
+ this, SLOT( slotDropped( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ) );
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="qiconviewitem.html">TQIconViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a> &amp; ) ),
this, SLOT( slotRightPressed( <a href="qiconviewitem.html">TQIconViewItem</a> * ) ) );
- <a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff );
- <a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( Auto );
+ <a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff );
+ <a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( Auto );
- <a href="qiconview.html#setAutoArrange">setAutoArrange</a>( TRUE );
- <a href="qiconview.html#setSorting">setSorting</a>( TRUE );
+ <a href="ntqiconview.html#setAutoArrange">setAutoArrange</a>( TRUE );
+ <a href="ntqiconview.html#setSorting">setSorting</a>( TRUE );
openItem = 0;
}
@@ -746,13 +746,13 @@ void <a name="f303"></a>TQtFileIconView::openFolder()
setDirectory( openItem-&gt;itemFileName );
}
-void <a name="f304"></a>TQtFileIconView::setDirectory( const <a href="qstring.html">TQString</a> &amp;dir )
+void <a name="f304"></a>TQtFileIconView::setDirectory( const <a href="ntqstring.html">TQString</a> &amp;dir )
{
viewDir = TQDir( dir );
readDir( viewDir );
}
-void TQtFileIconView::setDirectory( const <a href="qdir.html">TQDir</a> &amp;dir )
+void TQtFileIconView::setDirectory( const <a href="ntqdir.html">TQDir</a> &amp;dir )
{
viewDir = dir;
readDir( viewDir );
@@ -760,22 +760,22 @@ void TQtFileIconView::setDirectory( const <a href="qdir.html">TQDir</a> &amp;dir
void <a name="f305"></a>TQtFileIconView::newDirectory()
{
- <a href="qiconview.html#setAutoArrange">setAutoArrange</a>( FALSE );
- <a href="qiconview.html#selectAll">selectAll</a>( FALSE );
+ <a href="ntqiconview.html#setAutoArrange">setAutoArrange</a>( FALSE );
+ <a href="ntqiconview.html#selectAll">selectAll</a>( FALSE );
if ( viewDir.mkdir( TQString( "New Folder %1" ).arg( ++newFolderNum ) ) ) {
- <a href="qfileinfo.html">TQFileInfo</a> *fi = new <a href="qfileinfo.html">TQFileInfo</a>( viewDir, TQString( "New Folder %1" ).arg( newFolderNum ) );
- TQtFileIconViewItem *item = new TQtFileIconViewItem( this, new <a href="qfileinfo.html">TQFileInfo</a>( *fi ) );
-<a name="x847"></a> item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( TQString( "000000%1" ).arg( fi-&gt;<a href="qfileinfo.html#fileName">fileName</a>() ) );
+ <a href="ntqfileinfo.html">TQFileInfo</a> *fi = new <a href="ntqfileinfo.html">TQFileInfo</a>( viewDir, TQString( "New Folder %1" ).arg( newFolderNum ) );
+ TQtFileIconViewItem *item = new TQtFileIconViewItem( this, new <a href="ntqfileinfo.html">TQFileInfo</a>( *fi ) );
+<a name="x847"></a> item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( TQString( "000000%1" ).arg( fi-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() ) );
delete fi;
- <a href="qscrollview.html#repaintContents">repaintContents</a>( <a href="qscrollview.html#contentsX">contentsX</a>(), contentsY(), contentsWidth(), contentsHeight(), FALSE );
- <a href="qiconview.html#ensureItemVisible">ensureItemVisible</a>( item );
+ <a href="ntqscrollview.html#repaintContents">repaintContents</a>( <a href="ntqscrollview.html#contentsX">contentsX</a>(), contentsY(), contentsWidth(), contentsHeight(), FALSE );
+ <a href="ntqiconview.html#ensureItemVisible">ensureItemVisible</a>( item );
<a name="x849"></a> item-&gt;<a href="qiconviewitem.html#setSelected">setSelected</a>( TRUE, TRUE );
- <a href="qiconview.html#setCurrentItem">setCurrentItem</a>( item );
- <a href="qiconview.html#repaintItem">repaintItem</a>( item );
-<a name="x808"></a> qApp-&gt;<a href="qapplication.html#processEvents">processEvents</a>();
+ <a href="ntqiconview.html#setCurrentItem">setCurrentItem</a>( item );
+ <a href="ntqiconview.html#repaintItem">repaintItem</a>( item );
+<a name="x808"></a> qApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
<a name="x845"></a> item-&gt;<a href="qiconviewitem.html#rename">rename</a>();
}
- <a href="qiconview.html#setAutoArrange">setAutoArrange</a>( TRUE );
+ <a href="ntqiconview.html#setAutoArrange">setAutoArrange</a>( TRUE );
}
TQDir <a name="f306"></a>TQtFileIconView::currentDir()
@@ -783,21 +783,21 @@ TQDir <a name="f306"></a>TQtFileIconView::currentDir()
return viewDir;
}
-static bool isRoot( const <a href="qstring.html">TQString</a> &amp;s )
+static bool isRoot( const <a href="ntqstring.html">TQString</a> &amp;s )
{
#if defined(Q_OS_UNIX)
if ( s == "/" )
return TRUE;
#elif defined(Q_OS_WIN32)
- <a href="qstring.html">TQString</a> p = s;
- if ( p.<a href="qstring.html#length">length</a>() == 3 &amp;&amp;
-<a name="x871"></a> p.<a href="qstring.html#right">right</a>( 2 ) == ":/" )
+ <a href="ntqstring.html">TQString</a> p = s;
+ if ( p.<a href="ntqstring.html#length">length</a>() == 3 &amp;&amp;
+<a name="x871"></a> p.<a href="ntqstring.html#right">right</a>( 2 ) == ":/" )
return TRUE;
if ( p[ 0 ] == '/' &amp;&amp; p[ 1 ] == '/' ) {
-<a name="x867"></a> int slashes = p.<a href="qstring.html#contains">contains</a>( '/' );
+<a name="x867"></a> int slashes = p.<a href="ntqstring.html#contains">contains</a>( '/' );
if ( slashes &lt;= 3 )
return TRUE;
- if ( slashes == 4 &amp;&amp; p[ (int)p.<a href="qstring.html#length">length</a>() - 1 ] == '/' )
+ if ( slashes == 4 &amp;&amp; p[ (int)p.<a href="ntqstring.html#length">length</a>() - 1 ] == '/' )
return TRUE;
}
#endif
@@ -805,39 +805,39 @@ static bool isRoot( const <a href="qstring.html">TQString</a> &amp;s )
return FALSE;
}
-void <a name="f307"></a>TQtFileIconView::readDir( const <a href="qdir.html">TQDir</a> &amp;dir )
+void <a name="f307"></a>TQtFileIconView::readDir( const <a href="ntqdir.html">TQDir</a> &amp;dir )
{
-<a name="x813"></a> if ( !dir.<a href="qdir.html#isReadable">isReadable</a>() )
+<a name="x813"></a> if ( !dir.<a href="ntqdir.html#isReadable">isReadable</a>() )
return;
- if ( isRoot( dir.<a href="qdir.html#absPath">absPath</a>() ) )
+ if ( isRoot( dir.<a href="ntqdir.html#absPath">absPath</a>() ) )
emit disableUp();
else
emit enableUp();
- <a href="qiconview.html#clear">clear</a>();
+ <a href="ntqiconview.html#clear">clear</a>();
- emit directoryChanged( dir.<a href="qdir.html#absPath">absPath</a>() );
+ emit directoryChanged( dir.<a href="ntqdir.html#absPath">absPath</a>() );
-<a name="x812"></a> const TQFileInfoList *filist = dir.<a href="qdir.html#entryInfoList">entryInfoList</a>( TQDir::DefaultFilter, TQDir::DirsFirst | TQDir::Name );
+<a name="x812"></a> const TQFileInfoList *filist = dir.<a href="ntqdir.html#entryInfoList">entryInfoList</a>( TQDir::DefaultFilter, TQDir::DirsFirst | TQDir::Name );
emit startReadDir( filist-&gt;count() );
TQFileInfoListIterator it( *filist );
- <a href="qfileinfo.html">TQFileInfo</a> *fi;
+ <a href="ntqfileinfo.html">TQFileInfo</a> *fi;
bool allowRename = FALSE, allowRenameSet = FALSE;
while ( ( fi = it.current() ) != 0 ) {
++it;
- if ( fi &amp;&amp; fi-&gt;<a href="qfileinfo.html#fileName">fileName</a>() == ".." &amp;&amp; ( fi-&gt;<a href="qfileinfo.html#dirPath">dirPath</a>() == "/" || fi-&gt;<a href="qfileinfo.html#dirPath">dirPath</a>().isEmpty() ) )
+ if ( fi &amp;&amp; fi-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() == ".." &amp;&amp; ( fi-&gt;<a href="ntqfileinfo.html#dirPath">dirPath</a>() == "/" || fi-&gt;<a href="ntqfileinfo.html#dirPath">dirPath</a>().isEmpty() ) )
continue;
emit readNextDir();
- TQtFileIconViewItem *item = new TQtFileIconViewItem( this, new <a href="qfileinfo.html">TQFileInfo</a>( *fi ) );
- if ( fi-&gt;<a href="qfileinfo.html#isDir">isDir</a>() )
- item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( TQString( "000000%1" ).arg( fi-&gt;<a href="qfileinfo.html#fileName">fileName</a>() ) );
+ TQtFileIconViewItem *item = new TQtFileIconViewItem( this, new <a href="ntqfileinfo.html">TQFileInfo</a>( *fi ) );
+ if ( fi-&gt;<a href="ntqfileinfo.html#isDir">isDir</a>() )
+ item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( TQString( "000000%1" ).arg( fi-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() ) );
else
- item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( fi-&gt;<a href="qfileinfo.html#fileName">fileName</a>() );
+ item-&gt;<a href="qiconviewitem.html#setKey">setKey</a>( fi-&gt;<a href="ntqfileinfo.html#fileName">fileName</a>() );
if ( !allowRenameSet ) {
-<a name="x820"></a> if ( !TQFileInfo( fi-&gt;<a href="qfileinfo.html#absFilePath">absFilePath</a>() ).isWritable() ||
+<a name="x820"></a> if ( !TQFileInfo( fi-&gt;<a href="ntqfileinfo.html#absFilePath">absFilePath</a>() ).isWritable() ||
<a name="x851"></a> item-&gt;<a href="qiconviewitem.html#text">text</a>() == "." || item-&gt;<a href="qiconviewitem.html#text">text</a>() == ".." )
allowRename = FALSE;
else
@@ -850,7 +850,7 @@ void <a name="f307"></a>TQtFileIconView::readDir( const <a href="qdir.html">TQDi
<a name="x848"></a> item-&gt;<a href="qiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( allowRename );
}
- if ( !TQFileInfo( dir.<a href="qdir.html#absPath">absPath</a>() ).isWritable() )
+ if ( !TQFileInfo( dir.<a href="ntqdir.html#absPath">absPath</a>() ).isWritable() )
emit disableMkdir();
else
emit enableMkdir();
@@ -872,26 +872,26 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="qiconviewit
}
}
-<a name="x834"></a>TQDragObject *TQtFileIconView::<a href="qiconview.html#dragObject">dragObject</a>()
+<a name="x834"></a>TQDragObject *TQtFileIconView::<a href="ntqiconview.html#dragObject">dragObject</a>()
{
if ( !currentItem() )
return 0;
-<a name="x809"></a> <a href="qpoint.html">TQPoint</a> orig = <a href="qscrollview.html#viewportToContents">viewportToContents</a>( <a href="qscrollview.html#viewport">viewport</a>()-&gt;mapFromGlobal( TQCursor::<a href="qcursor.html#pos">pos</a>() ) );
- TQtFileIconDrag *drag = new TQtFileIconDrag( <a href="qscrollview.html#viewport">viewport</a>() );
-<a name="x815"></a> drag-&gt;<a href="qdragobject.html#setPixmap">setPixmap</a>( *currentItem()-&gt;pixmap(),
- TQPoint( <a href="qiconview.html#currentItem">currentItem</a>()-&gt;pixmapRect().width() / 2, currentItem()-&gt;pixmapRect().height() / 2 ) );
- for ( TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="qiconview.html#firstItem">firstItem</a>(); item;
+<a name="x809"></a> <a href="ntqpoint.html">TQPoint</a> orig = <a href="ntqscrollview.html#viewportToContents">viewportToContents</a>( <a href="ntqscrollview.html#viewport">viewport</a>()-&gt;mapFromGlobal( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ) );
+ TQtFileIconDrag *drag = new TQtFileIconDrag( <a href="ntqscrollview.html#viewport">viewport</a>() );
+<a name="x815"></a> drag-&gt;<a href="ntqdragobject.html#setPixmap">setPixmap</a>( *currentItem()-&gt;pixmap(),
+ TQPoint( <a href="ntqiconview.html#currentItem">currentItem</a>()-&gt;pixmapRect().width() / 2, currentItem()-&gt;pixmapRect().height() / 2 ) );
+ for ( TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="ntqiconview.html#firstItem">firstItem</a>(); item;
<a name="x841"></a> item = (TQtFileIconViewItem*)item-&gt;<a href="qiconviewitem.html#nextItem">nextItem</a>() ) {
<a name="x840"></a> if ( item-&gt;<a href="qiconviewitem.html#isSelected">isSelected</a>() ) {
<a href="qicondragitem.html">TQIconDragItem</a> id;
<a name="x833"></a> id.<a href="qicondragitem.html#setData">setData</a>( TQCString( item-&gt;filename() ) );
drag-&gt;<a href="qicondrag.html#append">append</a>( id,
-<a name="x864"></a><a name="x844"></a> TQRect( item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="qpoint.html#x">x</a>(),
-<a name="x865"></a> item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="qpoint.html#y">y</a>(),
+<a name="x864"></a><a name="x844"></a> TQRect( item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(),
+<a name="x865"></a> item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(),
item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>().width(), item-&gt;<a href="qiconviewitem.html#pixmapRect">pixmapRect</a>().height() ),
-<a name="x852"></a> TQRect( item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="qpoint.html#x">x</a>(),
- item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="qpoint.html#y">y</a>(),
+<a name="x852"></a> TQRect( item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(),
+ item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(),
item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>().width(), item-&gt;<a href="qiconviewitem.html#textRect">textRect</a>().height() ),
TQString( item-&gt;filename() ) );
}
@@ -900,16 +900,16 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="qiconviewit
return drag;
}
-<a name="x835"></a>void TQtFileIconView::<a href="qwidget.html#keyPressEvent">keyPressEvent</a>( <a href="qkeyevent.html">TQKeyEvent</a> *e )
+<a name="x835"></a>void TQtFileIconView::<a href="ntqwidget.html#keyPressEvent">keyPressEvent</a>( <a href="qkeyevent.html">TQKeyEvent</a> *e )
{
<a name="x853"></a> if ( e-&gt;<a href="qkeyevent.html#key">key</a>() == Key_N &amp;&amp;
<a name="x854"></a> ( e-&gt;<a href="qkeyevent.html#state">state</a>() &amp; ControlButton ) )
newDirectory();
else
- TQIconView::<a href="qwidget.html#keyPressEvent">keyPressEvent</a>( e );
+ TQIconView::<a href="ntqwidget.html#keyPressEvent">keyPressEvent</a>( e );
}
-void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="qvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
+void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="ntqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; )
{
if ( openItem )
openItem-&gt;timer.stop();
@@ -918,23 +918,23 @@ void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">
return;
}
- <a href="qstringlist.html">TQStringList</a> lst;
+ <a href="ntqstringlist.html">TQStringList</a> lst;
TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst );
- <a href="qstring.html">TQString</a> str;
+ <a href="ntqstring.html">TQString</a> str;
if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy )
str = "Copy\n\n";
else
str = "Move\n\n";
- for ( uint i = 0; i &lt; lst.<a href="qvaluelist.html#count">count</a>(); ++i )
-<a name="x811"></a> str += TQString( " %1\n" ).arg( TQDir::<a href="qdir.html#convertSeparators">convertSeparators</a>(lst[i]) );
+ for ( uint i = 0; i &lt; lst.<a href="ntqvaluelist.html#count">count</a>(); ++i )
+<a name="x811"></a> str += TQString( " %1\n" ).arg( TQDir::<a href="ntqdir.html#convertSeparators">convertSeparators</a>(lst[i]) );
str += TQString( "\n"
"To\n\n"
" %1" ).arg( viewDir.absPath() );
- TQMessageBox::<a href="qmessagebox.html#information">information</a>( this, e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
+ TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" );
if ( e-&gt;<a href="qdropevent.html#action">action</a>() == TQDropEvent::Move )
-<a name="x872"></a> TQMessageBox::<a href="qmessagebox.html#information">information</a>( this, "Remove" , TQDir::convertSeparators(lst.<a href="qstringlist.html#join">join</a>("\n")), "Not Implemented" );
+<a name="x872"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Remove" , TQDir::convertSeparators(lst.<a href="ntqstringlist.html#join">join</a>("\n")), "Not Implemented" );
e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
openItem = 0;
}
@@ -951,80 +951,80 @@ void <a name="f311"></a>TQtFileIconView::viewSmall()
void <a name="f312"></a>TQtFileIconView::viewBottom()
{
- <a href="qiconview.html#setItemTextPos">setItemTextPos</a>( Bottom );
+ <a href="ntqiconview.html#setItemTextPos">setItemTextPos</a>( Bottom );
}
void <a name="f313"></a>TQtFileIconView::viewRight()
{
- <a href="qiconview.html#setItemTextPos">setItemTextPos</a>( Right );
+ <a href="ntqiconview.html#setItemTextPos">setItemTextPos</a>( Right );
}
void <a name="f314"></a>TQtFileIconView::flowEast()
{
- <a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff );
- <a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( Auto );
- <a href="qiconview.html#setArrangement">setArrangement</a>( LeftToRight );
+ <a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff );
+ <a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( Auto );
+ <a href="ntqiconview.html#setArrangement">setArrangement</a>( LeftToRight );
}
void <a name="f315"></a>TQtFileIconView::flowSouth()
{
- <a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( AlwaysOff );
- <a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( Auto );
- <a href="qiconview.html#setArrangement">setArrangement</a>( TopToBottom );
+ <a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>( AlwaysOff );
+ <a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( Auto );
+ <a href="ntqiconview.html#setArrangement">setArrangement</a>( TopToBottom );
}
void <a name="f316"></a>TQtFileIconView::sortAscending()
{
- <a href="qiconview.html#sort">sort</a>( TRUE );
+ <a href="ntqiconview.html#sort">sort</a>( TRUE );
}
void <a name="f317"></a>TQtFileIconView::sortDescending()
{
- <a href="qiconview.html#sort">sort</a>( FALSE );
+ <a href="ntqiconview.html#sort">sort</a>( FALSE );
}
void <a name="f318"></a>TQtFileIconView::itemTextTruncate()
{
- <a href="qiconview.html#setWordWrapIconText">setWordWrapIconText</a>( FALSE );
+ <a href="ntqiconview.html#setWordWrapIconText">setWordWrapIconText</a>( FALSE );
}
void <a name="f319"></a>TQtFileIconView::itemTextWordWrap()
{
- <a href="qiconview.html#setWordWrapIconText">setWordWrapIconText</a>( TRUE );
+ <a href="ntqiconview.html#setWordWrapIconText">setWordWrapIconText</a>( TRUE );
}
void <a name="f320"></a>TQtFileIconView::slotRightPressed( <a href="qiconviewitem.html">TQIconViewItem</a> *item )
{
if ( !item ) { // right pressed on viewport
- <a href="qpopupmenu.html">TQPopupMenu</a> menu( this );
-
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Large view", this, SLOT( viewLarge() ) );
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Small view", this, SLOT( viewSmall() ) );
- menu.<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Text at the &amp;bottom", this, SLOT( viewBottom() ) );
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Text at the &amp;right", this, SLOT( viewRight() ) );
- menu.<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Arrange l&amp;eft to right", this, SLOT( flowEast() ) );
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Arrange t&amp;op to bottom", this, SLOT( flowSouth() ) );
- menu.<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Truncate item text", this, SLOT( itemTextTruncate() ) );
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Wordwrap item text", this, SLOT( itemTextWordWrap() ) );
- menu.<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Arrange items in &amp;grid", this, SLOT( <a href="qiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>() ) );
- menu.<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Sort &amp;ascending", this, SLOT( sortAscending() ) );
- menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Sort &amp;descending", this, SLOT( sortDescending() ) );
-
-<a name="x875"></a> menu.<a href="qwidget.html#setMouseTracking">setMouseTracking</a>( TRUE );
-<a name="x866"></a> menu.<a href="qpopupmenu.html#exec">exec</a>( TQCursor::<a href="qcursor.html#pos">pos</a>() );
+ <a href="ntqpopupmenu.html">TQPopupMenu</a> menu( this );
+
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Large view", this, SLOT( viewLarge() ) );
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Small view", this, SLOT( viewSmall() ) );
+ menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Text at the &amp;bottom", this, SLOT( viewBottom() ) );
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Text at the &amp;right", this, SLOT( viewRight() ) );
+ menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange l&amp;eft to right", this, SLOT( flowEast() ) );
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange t&amp;op to bottom", this, SLOT( flowSouth() ) );
+ menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Truncate item text", this, SLOT( itemTextTruncate() ) );
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Wordwrap item text", this, SLOT( itemTextWordWrap() ) );
+ menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange items in &amp;grid", this, SLOT( <a href="ntqiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>() ) );
+ menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sort &amp;ascending", this, SLOT( sortAscending() ) );
+ menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sort &amp;descending", this, SLOT( sortDescending() ) );
+
+<a name="x875"></a> menu.<a href="ntqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE );
+<a name="x866"></a> menu.<a href="ntqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() );
} else { // on item
- <a href="qpopupmenu.html">TQPopupMenu</a> menu( this );
+ <a href="ntqpopupmenu.html">TQPopupMenu</a> menu( this );
- int RENAME_ITEM = menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Rename Item" );
- int REMOVE_ITEM = menu.<a href="qmenudata.html#insertItem">insertItem</a>( "Remove Item" );
+ int RENAME_ITEM = menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Rename Item" );
+ int REMOVE_ITEM = menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Remove Item" );
- menu.<a href="qwidget.html#setMouseTracking">setMouseTracking</a>( TRUE );
- int id = menu.<a href="qpopupmenu.html#exec">exec</a>( TQCursor::<a href="qcursor.html#pos">pos</a>() );
+ menu.<a href="ntqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE );
+ int id = menu.<a href="ntqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() );
if ( id == -1 )
return;
@@ -1033,7 +1033,7 @@ void <a name="f320"></a>TQtFileIconView::slotRightPressed( <a href="qiconviewite
item-&gt;<a href="qiconviewitem.html#rename">rename</a>();
} else if ( id == REMOVE_ITEM ) {
delete item;
- TQMessageBox::<a href="qmessagebox.html#information">information</a>( this, "Not implemented!", "Deleting files not implemented yet,\n"
+ TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Not implemented!", "Deleting files not implemented yet,\n"
"The item has only been removed from the view! " );
}
}
@@ -1045,11 +1045,11 @@ void <a name="f321"></a>TQtFileIconView::setViewMode( ViewMode m )
return;
vm = m;
- TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="qiconview.html#firstItem">firstItem</a>();
+ TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="ntqiconview.html#firstItem">firstItem</a>();
for ( ; item; item = (TQtFileIconViewItem*)item-&gt;<a href="qiconviewitem.html#nextItem">nextItem</a>() )
item-&gt;viewModeChanged( vm );
- <a href="qiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>();
+ <a href="ntqiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>();
}
</pre>
@@ -1068,7 +1068,7 @@ void <a name="f321"></a>TQtFileIconView::setViewMode( ViewMode m )
#ifndef MAINWIN_H
#define MAINWIN_H
-#include &lt;<a href="qmainwindow-h.html">qmainwindow.h</a>&gt;
+#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
class TQtFileIconView;
class DirectoryView;
@@ -1077,7 +1077,7 @@ class TQLabel;
class TQComboBox;
class TQToolButton;
-class FileMainWindow : public <a href="qmainwindow.html">TQMainWindow</a>
+class FileMainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{
Q_OBJECT
@@ -1095,19 +1095,19 @@ protected:
TQtFileIconView *fileview;
DirectoryView *dirlist;
- <a href="qprogressbar.html">TQProgressBar</a> *progress;
- <a href="qlabel.html">TQLabel</a> *label;
- <a href="qcombobox.html">TQComboBox</a> *pathCombo;
- <a href="qtoolbutton.html">TQToolButton</a> *upButton, *mkdirButton;
+ <a href="ntqprogressbar.html">TQProgressBar</a> *progress;
+ <a href="ntqlabel.html">TQLabel</a> *label;
+ <a href="ntqcombobox.html">TQComboBox</a> *pathCombo;
+ <a href="ntqtoolbutton.html">TQToolButton</a> *upButton, *mkdirButton;
protected slots:
- void directoryChanged( const <a href="qstring.html">TQString</a> &amp; );
+ void directoryChanged( const <a href="ntqstring.html">TQString</a> &amp; );
void slotStartReadDir( int dirs );
void slotReadNextDir();
void slotReadDirDone();
void cdUp();
void newFolder();
- void changePath( const <a href="qstring.html">TQString</a> &amp;path );
+ void changePath( const <a href="ntqstring.html">TQString</a> &amp;path );
void enableUp();
void disableUp();
void enableMkdir();
@@ -1134,16 +1134,16 @@ protected slots:
#include "qfileiconview.h"
#include "../dirview/dirview.h"
-#include &lt;<a href="qsplitter-h.html">qsplitter.h</a>&gt;
-#include &lt;<a href="qprogressbar-h.html">qprogressbar.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qstatusbar-h.html">qstatusbar.h</a>&gt;
-#include &lt;<a href="qtoolbar-h.html">qtoolbar.h</a>&gt;
-#include &lt;<a href="qcombobox-h.html">qcombobox.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
-#include &lt;<a href="qtoolbutton-h.html">qtoolbutton.h</a>&gt;
-#include &lt;<a href="qdir-h.html">qdir.h</a>&gt;
-#include &lt;<a href="qfileinfo-h.html">qfileinfo.h</a>&gt;
+#include &lt;<a href="qsplitter-h.html">ntqsplitter.h</a>&gt;
+#include &lt;<a href="qprogressbar-h.html">ntqprogressbar.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="qtoolbar-h.html">ntqtoolbar.h</a>&gt;
+#include &lt;<a href="qcombobox-h.html">ntqcombobox.h</a>&gt;
+#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>&gt;
+#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
+#include &lt;<a href="qfileinfo-h.html">ntqfileinfo.h</a>&gt;
static const char* cdtoparent_xpm[]={
"15 13 3 1",
@@ -1186,134 +1186,134 @@ static const char* newfolder_xpm[] = {
"........... "};
<a name="f324"></a>FileMainWindow::FileMainWindow()
- : <a href="qmainwindow.html">TQMainWindow</a>()
+ : <a href="ntqmainwindow.html">TQMainWindow</a>()
{
setup();
}
-void FileMainWindow::<a href="qwidget.html#show">show</a>()
+void FileMainWindow::<a href="ntqwidget.html#show">show</a>()
{
- TQMainWindow::<a href="qwidget.html#show">show</a>();
+ TQMainWindow::<a href="ntqwidget.html#show">show</a>();
}
void <a name="f325"></a>FileMainWindow::setup()
{
- <a href="qsplitter.html">TQSplitter</a> *splitter = new <a href="qsplitter.html">TQSplitter</a>( this );
+ <a href="ntqsplitter.html">TQSplitter</a> *splitter = new <a href="ntqsplitter.html">TQSplitter</a>( this );
dirlist = new DirectoryView( splitter, "dirlist", TRUE );
-<a name="x886"></a> dirlist-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Name" );
- dirlist-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Type" );
+<a name="x886"></a> dirlist-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Name" );
+ dirlist-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Type" );
Directory *root = new Directory( dirlist, "/" );
<a name="x887"></a> root-&gt;<a href="qlistviewitem.html#setOpen">setOpen</a>( TRUE );
-<a name="x894"></a> splitter-&gt;<a href="qsplitter.html#setResizeMode">setResizeMode</a>( dirlist, TQSplitter::KeepSize );
+<a name="x894"></a> splitter-&gt;<a href="ntqsplitter.html#setResizeMode">setResizeMode</a>( dirlist, TQSplitter::KeepSize );
fileview = new TQtFileIconView( "/", splitter );
-<a name="x884"></a> fileview-&gt;<a href="qiconview.html#setSelectionMode">setSelectionMode</a>( TQIconView::Extended );
+<a name="x884"></a> fileview-&gt;<a href="ntqiconview.html#setSelectionMode">setSelectionMode</a>( TQIconView::Extended );
- <a href="qmainwindow.html#setCentralWidget">setCentralWidget</a>( splitter );
+ <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( splitter );
- <a href="qtoolbar.html">TQToolBar</a> *toolbar = new <a href="qtoolbar.html">TQToolBar</a>( this, "toolbar" );
- <a href="qmainwindow.html#setRightJustification">setRightJustification</a>( TRUE );
+ <a href="ntqtoolbar.html">TQToolBar</a> *toolbar = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "toolbar" );
+ <a href="ntqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE );
- (void)new <a href="qlabel.html">TQLabel</a>( <a href="qobject.html#tr">tr</a>( " Path: " ), toolbar );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( <a href="ntqobject.html#tr">tr</a>( " Path: " ), toolbar );
- pathCombo = new <a href="qcombobox.html">TQComboBox</a>( TRUE, toolbar );
-<a name="x880"></a> pathCombo-&gt;<a href="qcombobox.html#setAutoCompletion">setAutoCompletion</a>( TRUE );
-<a name="x896"></a> toolbar-&gt;<a href="qtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo );
-<a name="x877"></a> <a href="qobject.html#connect">connect</a>( pathCombo, SIGNAL( <a href="qcombobox.html#activated">activated</a>( const <a href="qstring.html">TQString</a> &amp; ) ),
- this, SLOT ( changePath( const <a href="qstring.html">TQString</a> &amp; ) ) );
+ pathCombo = new <a href="ntqcombobox.html">TQComboBox</a>( TRUE, toolbar );
+<a name="x880"></a> pathCombo-&gt;<a href="ntqcombobox.html#setAutoCompletion">setAutoCompletion</a>( TRUE );
+<a name="x896"></a> toolbar-&gt;<a href="ntqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo );
+<a name="x877"></a> <a href="ntqobject.html#connect">connect</a>( pathCombo, SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="ntqstring.html">TQString</a> &amp; ) ),
+ this, SLOT ( changePath( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
-<a name="x895"></a> toolbar-&gt;<a href="qtoolbar.html#addSeparator">addSeparator</a>();
+<a name="x895"></a> toolbar-&gt;<a href="ntqtoolbar.html#addSeparator">addSeparator</a>();
- <a href="qpixmap.html">TQPixmap</a> pix;
+ <a href="ntqpixmap.html">TQPixmap</a> pix;
pix = TQPixmap( cdtoparent_xpm );
- upButton = new <a href="qtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="qstring.html#TQString-null">TQString::null</a>,
+ upButton = new <a href="ntqtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="ntqstring.html#TQString-null">TQString::null</a>,
this, SLOT( cdUp() ), toolbar, "cd up" );
pix = TQPixmap( newfolder_xpm );
- mkdirButton = new <a href="qtoolbutton.html">TQToolButton</a>( pix, "New Folder", TQString::null,
+ mkdirButton = new <a href="ntqtoolbutton.html">TQToolButton</a>( pix, "New Folder", TQString::null,
this, SLOT( newFolder() ), toolbar, "new folder" );
- <a href="qobject.html#connect">connect</a>( dirlist, SIGNAL( folderSelected( const <a href="qstring.html">TQString</a> &amp; ) ),
- fileview, SLOT ( setDirectory( const <a href="qstring.html">TQString</a> &amp; ) ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( directoryChanged( const <a href="qstring.html">TQString</a> &amp; ) ),
- this, SLOT( directoryChanged( const <a href="qstring.html">TQString</a> &amp; ) ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( startReadDir( int ) ),
+ <a href="ntqobject.html#connect">connect</a>( dirlist, SIGNAL( folderSelected( const <a href="ntqstring.html">TQString</a> &amp; ) ),
+ fileview, SLOT ( setDirectory( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( directoryChanged( const <a href="ntqstring.html">TQString</a> &amp; ) ),
+ this, SLOT( directoryChanged( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( startReadDir( int ) ),
this, SLOT( slotStartReadDir( int ) ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( readNextDir() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( readNextDir() ),
this, SLOT( slotReadNextDir() ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( readDirDone() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( readDirDone() ),
this, SLOT( slotReadDirDone() ) );
- <a href="qmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE );
- <a href="qmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE );
+ <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE );
+ <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE );
- label = new <a href="qlabel.html">TQLabel</a>( <a href="qmainwindow.html#statusBar">statusBar</a>() );
- <a href="qmainwindow.html#statusBar">statusBar</a>()-&gt;addWidget( label, 2, TRUE );
- progress = new <a href="qprogressbar.html">TQProgressBar</a>( <a href="qmainwindow.html#statusBar">statusBar</a>() );
- <a href="qmainwindow.html#statusBar">statusBar</a>()-&gt;addWidget( progress, 1, TRUE );
+ label = new <a href="ntqlabel.html">TQLabel</a>( <a href="ntqmainwindow.html#statusBar">statusBar</a>() );
+ <a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;addWidget( label, 2, TRUE );
+ progress = new <a href="ntqprogressbar.html">TQProgressBar</a>( <a href="ntqmainwindow.html#statusBar">statusBar</a>() );
+ <a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;addWidget( progress, 1, TRUE );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( enableUp() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( enableUp() ),
this, SLOT( enableUp() ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( disableUp() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( disableUp() ),
this, SLOT( disableUp() ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( enableMkdir() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( enableMkdir() ),
this, SLOT( enableMkdir() ) );
- <a href="qobject.html#connect">connect</a>( fileview, SIGNAL( disableMkdir() ),
+ <a href="ntqobject.html#connect">connect</a>( fileview, SIGNAL( disableMkdir() ),
this, SLOT( disableMkdir() ) );
}
void <a name="f326"></a>FileMainWindow::setPathCombo()
{
- <a href="qstring.html">TQString</a> dir = <a href="qwidget.html#caption">caption</a>();
+ <a href="ntqstring.html">TQString</a> dir = <a href="ntqwidget.html#caption">caption</a>();
int i = 0;
bool found = FALSE;
-<a name="x878"></a> for ( i = 0; i &lt; pathCombo-&gt;<a href="qcombobox.html#count">count</a>(); ++i ) {
-<a name="x882"></a> if ( pathCombo-&gt;<a href="qcombobox.html#text">text</a>( i ) == dir) {
+<a name="x878"></a> for ( i = 0; i &lt; pathCombo-&gt;<a href="ntqcombobox.html#count">count</a>(); ++i ) {
+<a name="x882"></a> if ( pathCombo-&gt;<a href="ntqcombobox.html#text">text</a>( i ) == dir) {
found = TRUE;
break;
}
}
if ( found )
-<a name="x881"></a> pathCombo-&gt;<a href="qcombobox.html#setCurrentItem">setCurrentItem</a>( i );
+<a name="x881"></a> pathCombo-&gt;<a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( i );
else {
-<a name="x879"></a> pathCombo-&gt;<a href="qcombobox.html#insertItem">insertItem</a>( dir );
- pathCombo-&gt;<a href="qcombobox.html#setCurrentItem">setCurrentItem</a>( pathCombo-&gt;<a href="qcombobox.html#count">count</a>() - 1 );
+<a name="x879"></a> pathCombo-&gt;<a href="ntqcombobox.html#insertItem">insertItem</a>( dir );
+ pathCombo-&gt;<a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( pathCombo-&gt;<a href="ntqcombobox.html#count">count</a>() - 1 );
}
}
-void <a name="f327"></a>FileMainWindow::directoryChanged( const <a href="qstring.html">TQString</a> &amp;dir )
+void <a name="f327"></a>FileMainWindow::directoryChanged( const <a href="ntqstring.html">TQString</a> &amp;dir )
{
- <a href="qwidget.html#setCaption">setCaption</a>( dir );
+ <a href="ntqwidget.html#setCaption">setCaption</a>( dir );
setPathCombo();
}
void <a name="f328"></a>FileMainWindow::slotStartReadDir( int dirs )
{
- label-&gt;<a href="qlabel.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>( " Reading Directory..." ) );
-<a name="x890"></a> progress-&gt;<a href="qprogressbar.html#reset">reset</a>();
-<a name="x892"></a> progress-&gt;<a href="qprogressbar.html#setTotalSteps">setTotalSteps</a>( dirs );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>( " Reading Directory..." ) );
+<a name="x890"></a> progress-&gt;<a href="ntqprogressbar.html#reset">reset</a>();
+<a name="x892"></a> progress-&gt;<a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( dirs );
}
void <a name="f329"></a>FileMainWindow::slotReadNextDir()
{
-<a name="x889"></a> int p = progress-&gt;<a href="qprogressbar.html#progress">progress</a>();
-<a name="x891"></a> progress-&gt;<a href="qprogressbar.html#setProgress">setProgress</a>( ++p );
+<a name="x889"></a> int p = progress-&gt;<a href="ntqprogressbar.html#progress">progress</a>();
+<a name="x891"></a> progress-&gt;<a href="ntqprogressbar.html#setProgress">setProgress</a>( ++p );
}
void <a name="f330"></a>FileMainWindow::slotReadDirDone()
{
- label-&gt;<a href="qlabel.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>( " Reading Directory Done." ) );
-<a name="x893"></a> progress-&gt;<a href="qprogressbar.html#setProgress">setProgress</a>( progress-&gt;<a href="qprogressbar.html#totalSteps">totalSteps</a>() );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>( " Reading Directory Done." ) );
+<a name="x893"></a> progress-&gt;<a href="ntqprogressbar.html#setProgress">setProgress</a>( progress-&gt;<a href="ntqprogressbar.html#totalSteps">totalSteps</a>() );
}
void <a name="f331"></a>FileMainWindow::cdUp()
{
- <a href="qdir.html">TQDir</a> dir = fileview-&gt;currentDir();
-<a name="x883"></a> dir.<a href="qdir.html#cd">cd</a>( ".." );
+ <a href="ntqdir.html">TQDir</a> dir = fileview-&gt;currentDir();
+<a name="x883"></a> dir.<a href="ntqdir.html#cd">cd</a>( ".." );
fileview-&gt;setDirectory( dir );
}
@@ -1322,7 +1322,7 @@ void <a name="f332"></a>FileMainWindow::newFolder()
fileview-&gt;newDirectory();
}
-void <a name="f333"></a>FileMainWindow::changePath( const <a href="qstring.html">TQString</a> &amp;path )
+void <a name="f333"></a>FileMainWindow::changePath( const <a href="ntqstring.html">TQString</a> &amp;path )
{
if ( TQFileInfo( path ).exists() )
fileview-&gt;setDirectory( path );
@@ -1332,22 +1332,22 @@ void <a name="f333"></a>FileMainWindow::changePath( const <a href="qstring.html"
void <a name="f334"></a>FileMainWindow::enableUp()
{
-<a name="x897"></a> upButton-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
+<a name="x897"></a> upButton-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
}
void <a name="f335"></a>FileMainWindow::disableUp()
{
- upButton-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ upButton-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
void <a name="f336"></a>FileMainWindow::enableMkdir()
{
- mkdirButton-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
+ mkdirButton-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
}
void <a name="f337"></a>FileMainWindow::disableMkdir()
{
- mkdirButton-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ mkdirButton-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
</pre>
@@ -1366,19 +1366,19 @@ void <a name="f337"></a>FileMainWindow::disableMkdir()
#include "mainwindow.h"
#include "qfileiconview.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
FileMainWindow mw;
- mw.<a href="qwidget.html#resize">resize</a>( 680, 480 );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;mw );
+ mw.<a href="ntqwidget.html#resize">resize</a>( 680, 480 );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;mw );
mw.fileView()-&gt;setDirectory( "/" );
-<a name="x900"></a> mw.<a href="qwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+<a name="x900"></a> mw.<a href="ntqwidget.html#show">show</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>