diff options
Diffstat (limited to 'doc/html/dirview-example.html')
-rw-r--r-- | doc/html/dirview-example.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index 5cd95fe78..f8c0fd5f8 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -53,7 +53,7 @@ Drag&Drop in a listview. #define DIRVIEW_H #include <<a href="qlistview-h.html">ntqlistview.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="qfileinfo-h.html">ntqfileinfo.h</a>> #include <<a href="qtimer-h.html">ntqtimer.h</a>> @@ -67,7 +67,7 @@ class TQDropEvent; class FileItem : public <a href="qlistviewitem.html">TQListViewItem</a> { public: - FileItem( <a href="qlistviewitem.html">TQListViewItem</a> *parent, const <a href="ntqstring.html">TQString</a> &s1, const <a href="ntqstring.html">TQString</a> &s2 ) + FileItem( <a href="qlistviewitem.html">TQListViewItem</a> *parent, const <a href="tqstring.html">TQString</a> &s1, const <a href="tqstring.html">TQString</a> &s2 ) : <a href="qlistviewitem.html">TQListViewItem</a>( parent, s1, s2 ), pix( 0 ) {} const <a href="ntqpixmap.html">TQPixmap</a> *pixmap( int i ) const; @@ -84,14 +84,14 @@ private: class Directory : public <a href="qlistviewitem.html">TQListViewItem</a> { public: - Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="ntqstring.html">TQString</a>& filename ); - Directory( Directory * parent, const <a href="ntqstring.html">TQString</a>& filename, const <a href="ntqstring.html">TQString</a> &col2 ) + Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>& filename ); + Directory( Directory * parent, const <a href="tqstring.html">TQString</a>& filename, const <a href="tqstring.html">TQString</a> &col2 ) : <a href="qlistviewitem.html">TQListViewItem</a>( parent, filename, col2 ), pix( 0 ) {} - Directory( Directory * parent, const <a href="ntqstring.html">TQString</a>& filename ); + Directory( Directory * parent, const <a href="tqstring.html">TQString</a>& filename ); - <a href="ntqstring.html">TQString</a> text( int column ) const; + <a href="tqstring.html">TQString</a> text( int column ) const; - <a href="ntqstring.html">TQString</a> fullName(); + <a href="tqstring.html">TQString</a> fullName(); void setOpen( bool ); void setup(); @@ -120,10 +120,10 @@ public: bool showDirsOnly() { return dirsOnly; } public slots: - void setDir( const <a href="ntqstring.html">TQString</a> & ); + void setDir( const <a href="tqstring.html">TQString</a> & ); signals: - void folderSelected( const <a href="ntqstring.html">TQString</a> & ); + void folderSelected( const <a href="tqstring.html">TQString</a> & ); protected slots: void slotFolderSelected( <a href="qlistviewitem.html">TQListViewItem</a> * ); @@ -139,7 +139,7 @@ protected: void contentsMouseReleaseEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e ); private: - <a href="ntqstring.html">TQString</a> fullPath(TQListViewItem* item); + <a href="tqstring.html">TQString</a> fullPath(TQListViewItem* item); bool dirsOnly; <a href="qlistviewitem.html">TQListViewItem</a> *oldCurrent; <a href="qlistviewitem.html">TQListViewItem</a> *dropItem; @@ -178,8 +178,8 @@ can be used in any other trees. #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qdragobject-h.html">ntqdragobject.h</a>> #include <<a href="qmime-h.html">ntqmime.h</a>> -#include <<a href="qstrlist-h.html">ntqstrlist.h</a>> -#include <<a href="qstringlist-h.html">ntqstringlist.h</a>> +#include <<a href="tqstrlist-h.html">tqstrlist.h</a>> +#include <<a href="tqstringlist-h.html">tqstringlist.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qheader-h.html">ntqheader.h</a>> @@ -307,7 +307,7 @@ TQPixmap *fileNormal = 0; * *****************************************************************************/ -<a name="f476"></a>Directory::Directory( Directory * parent, const <a href="ntqstring.html">TQString</a>& filename ) +<a name="f476"></a>Directory::Directory( Directory * parent, const <a href="tqstring.html">TQString</a>& filename ) : <a href="qlistviewitem.html">TQListViewItem</a>( parent ), f(filename), showDirsOnly( parent->showDirsOnly ), pix( 0 ) @@ -322,7 +322,7 @@ TQPixmap *fileNormal = 0; } -Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="ntqstring.html">TQString</a>& filename ) +Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>& filename ) : <a href="qlistviewitem.html">TQListViewItem</a>( parent ), f(filename), showDirsOnly( ( (DirectoryView*)parent )->showDirsOnly() ), pix( 0 ) @@ -357,7 +357,7 @@ Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="qlistviewitem.html#setPixmap">setPixmap</a>( folderClosed ); if ( o && !childCount() ) { - <a href="ntqstring.html">TQString</a> s( fullName() ); + <a href="tqstring.html">TQString</a> s( fullName() ); <a href="ntqdir.html">TQDir</a> thisDir( s ); <a name="x1667"></a> if ( !thisDir.<a href="ntqdir.html#isReadable">isReadable</a>() ) { readable = FALSE; @@ -404,11 +404,11 @@ Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const TQString <a name="f477"></a>Directory::fullName() { - <a href="ntqstring.html">TQString</a> s; + <a href="tqstring.html">TQString</a> s; if ( p ) { s = p->fullName(); -<a name="x1701"></a> s.<a href="ntqstring.html#append">append</a>( f.name() ); - s.<a href="ntqstring.html#append">append</a>( "/" ); +<a name="x1701"></a> s.<a href="tqstring.html#append">append</a>( f.name() ); + s.<a href="tqstring.html#append">append</a>( "/" ); } else { s = f.name(); } @@ -551,11 +551,11 @@ static const int autoopenTime = 750; <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-><a href="qdropevent.html#pos">pos</a>()) ); if ( item ) { - <a href="ntqstrlist.html">TQStrList</a> lst; + <a href="tqstrlist.html">TQStrList</a> lst; <a name="x1707"></a> TQUriDrag::<a href="quridrag.html#decode">decode</a>( e, lst ); - <a href="ntqstring.html">TQString</a> str; + <a href="tqstring.html">TQString</a> str; switch ( e-><a href="qdropevent.html#action">action</a>() ) { case TQDropEvent::Copy: @@ -578,7 +578,7 @@ static const int autoopenTime = 750; e-><a href="qdragmoveevent.html#accept">accept</a>(); <a name="x1699"></a> for ( uint i = 0; i < lst.<a href="tqptrlist.html#count">count</a>(); ++i ) { -<a name="x1709"></a><a name="x1697"></a><a name="x1664"></a> <a href="ntqstring.html">TQString</a> filename = TQDir::<a href="ntqdir.html#convertSeparators">convertSeparators</a>(TQUriDrag::<a href="quridrag.html#uriToLocalFile">uriToLocalFile</a>(lst.<a href="tqptrlist.html#at">at</a>(i))); +<a name="x1709"></a><a name="x1697"></a><a name="x1664"></a> <a href="tqstring.html">TQString</a> filename = TQDir::<a href="ntqdir.html#convertSeparators">convertSeparators</a>(TQUriDrag::<a href="quridrag.html#uriToLocalFile">uriToLocalFile</a>(lst.<a href="tqptrlist.html#at">at</a>(i))); str += filename + "\n"; } str += TQString( "\nTo\n\n %1" ) @@ -593,7 +593,7 @@ static const int autoopenTime = 750; TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item) { - <a href="ntqstring.html">TQString</a> fullpath = item-><a href="qlistviewitem.html#text">text</a>(0); + <a href="tqstring.html">TQString</a> fullpath = item-><a href="qlistviewitem.html#text">text</a>(0); <a name="x1688"></a> while ( (item=item-><a href="qlistviewitem.html#parent">parent</a>()) ) { if ( item-><a href="qlistviewitem.html#parent">parent</a>() ) fullpath = item-><a href="qlistviewitem.html#text">text</a>(0) + "/" + fullpath; @@ -601,7 +601,7 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item) fullpath = item-><a href="qlistviewitem.html#text">text</a>(0) + fullpath; } #ifdef TQ_WS_WIN -<a name="x1702"></a> if (fullpath.<a href="ntqstring.html#length">length</a>() > 2 && fullpath[1] != ':') { +<a name="x1702"></a> if (fullpath.<a href="tqstring.html#length">length</a>() > 2 && fullpath[1] != ':') { <a href="ntqdir.html">TQDir</a> dir(fullpath); <a name="x1665"></a> fullpath = dir.<a href="ntqdir.html#currentDirPath">currentDirPath</a>().left(2) + fullpath; } @@ -632,7 +632,7 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item) mousePressed = FALSE; <a href="qlistviewitem.html">TQListViewItem</a> *item = itemAt( contentsToViewport(presspos) ); if ( item ) { - <a href="ntqstring.html">TQString</a> source = fullPath(item); + <a href="tqstring.html">TQString</a> source = fullPath(item); <a name="x1674"></a> if ( TQFile::<a href="ntqfile.html#exists">exists</a>(source) ) { <a href="quridrag.html">TQUriDrag</a>* ud = new <a href="quridrag.html">TQUriDrag</a>(viewport()); <a name="x1708"></a> ud-><a href="quridrag.html#setFileNames">setFileNames</a>( source ); @@ -649,7 +649,7 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item) mousePressed = FALSE; } -void <a name="f482"></a>DirectoryView::setDir( const <a href="ntqstring.html">TQString</a> &s ) +void <a name="f482"></a>DirectoryView::setDir( const <a href="tqstring.html">TQString</a> &s ) { <a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( this ); ++it; @@ -657,7 +657,7 @@ void <a name="f482"></a>DirectoryView::setDir( const <a href="ntqstring.html">TQ it.<a href="qlistviewitemiterator.html#current">current</a>()->setOpen( FALSE ); } -<a name="x1703"></a> <a href="ntqstringlist.html">TQStringList</a> lst( TQStringList::<a href="ntqstringlist.html#split">split</a>( "/", s ) ); +<a name="x1703"></a> <a href="tqstringlist.html">TQStringList</a> lst( TQStringList::<a href="tqstringlist.html#split">split</a>( "/", s ) ); <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="qlistviewitem.html#firstChild">firstChild</a>(); <a name="x1698"></a> TQStringList::Iterator it2 = lst.<a href="tqvaluelist.html#begin">begin</a>(); <a name="x1700"></a> for ( ; it2 != lst.<a href="tqvaluelist.html#end">end</a>(); ++it2 ) { |