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.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html
index bc63cc7b..a4619fe8 100644
--- a/doc/html/fileiconview-example.html
+++ b/doc/html/fileiconview-example.html
@@ -81,7 +81,7 @@ public:
const char* format( int i ) const;
<a href="tqbytearray.html">TQByteArray</a> encodedData( const char* mime ) const;
static bool canDecode( <a href="tqmimesource.html">TQMimeSource</a>* e );
- void append( const <a href="tqicondragitem.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="tqstring.html">TQString</a> &amp;url );
+ void append( const <a href="tqicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="tqrect.html">TQRect</a> &amp;pr, const <a href="tqrect.html">TQRect</a> &amp;tr, const <a href="tqstring.html">TQString</a> &amp;url );
private:
<a href="tqstringlist.html">TQStringList</a> urls;
@@ -155,7 +155,7 @@ protected:
<a href="tqdir.html">TQDir</a> viewDir;
int newFolderNum;
<a href="tqsize.html">TQSize</a> sz;
- <a href="ntqpixmap.html">TQPixmap</a> pix;
+ <a href="tqpixmap.html">TQPixmap</a> pix;
ViewMode vm;
TQtFileIconViewItem *openItem;
@@ -228,7 +228,7 @@ protected:
#include "tqfileiconview.h"
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="tqmime-h.html">tqmime.h</a>&gt;
#include &lt;<a href="tqstrlist-h.html">tqstrlist.h</a>&gt;
#include &lt;<a href="tqdragobject-h.html">tqdragobject.h</a>&gt;
@@ -237,7 +237,7 @@ protected:
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.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;<a href="tqwmatrix-h.html">tqwmatrix.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -503,8 +503,8 @@ static void cleanup()
e-&gt;<a href="tqdropevent.html#provides">provides</a>( "text/uri-list" );
}
-<a name="x829"></a>void TQtFileIconDrag::<a href="tqicondrag.html#append">append</a>( const <a href="tqicondragitem.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="tqstring.html">TQString</a> &amp;url )
+<a name="x829"></a>void TQtFileIconDrag::<a href="tqicondrag.html#append">append</a>( const <a href="tqicondragitem.html">TQIconDragItem</a> &amp;item, const <a href="tqrect.html">TQRect</a> &amp;pr,
+ const <a href="tqrect.html">TQRect</a> &amp;tr, const <a href="tqstring.html">TQString</a> &amp;url )
{
TQIconDrag::<a href="tqicondrag.html#append">append</a>( item, pr, tr );
<a href="tqstring.html">TQString</a> ourUrl = url;
@@ -690,24 +690,24 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
{
if ( !iconFolderLockedLarge ) {
<a href="ntqapplication.html#qAddPostRoutine">tqAddPostRoutine</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 );
+ <a href="tqwmatrix.html">TQWMatrix</a> m;
+<a name="x876"></a> m.<a href="tqwmatrix.html#scale">scale</a>( 0.6, 0.6 );
+ <a href="tqpixmap.html">TQPixmap</a> iconpix( folder_locked_icon );
+ iconFolderLockedLarge = new <a href="tqpixmap.html">TQPixmap</a>( folder_locked_icon );
+<a name="x863"></a> iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m );
+ iconFolderLockedSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( folder_icon );
- 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 );
+ iconFolderLarge = new <a href="tqpixmap.html">TQPixmap</a>( folder_icon );
+ iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m );
+ iconFolderSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( file_icon );
- 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 );
+ iconFileLarge = new <a href="tqpixmap.html">TQPixmap</a>( file_icon );
+ iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m );
+ iconFileSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix );
iconpix = TQPixmap( link_icon );
- 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 );
+ iconLinkLarge = new <a href="tqpixmap.html">TQPixmap</a>( link_icon );
+ iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m );
+ iconLinkSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix );
}
vm = Large;
@@ -722,7 +722,7 @@ TQtFileIconViewItem::~TQtFileIconViewItem()
this, TQ_SLOT( itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) );
<a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#dropped">dropped</a>( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ),
this, TQ_SLOT( slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a>&lt;TQIconDragItem&gt; &amp; ) ) );
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a> &amp; ) ),
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> *, const <a href="tqpoint.html">TQPoint</a> &amp; ) ),
this, TQ_SLOT( slotRightPressed( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) );
<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff );
@@ -877,7 +877,7 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi
if ( !currentItem() )
return 0;
-<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>() ) );
+<a name="x809"></a> <a href="tqpoint.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="tqdragobject.html#setPixmap">setPixmap</a>( *currentItem()-&gt;pixmap(),
TQPoint( <a href="tqiconview.html#currentItem">currentItem</a>()-&gt;pixmapRect().width() / 2, currentItem()-&gt;pixmapRect().height() / 2 ) );
@@ -887,11 +887,11 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi
<a href="tqicondragitem.html">TQIconDragItem</a> id;
<a name="x833"></a> id.<a href="tqicondragitem.html#setData">setData</a>( TQCString( item-&gt;filename() ) );
drag-&gt;<a href="tqicondrag.html#append">append</a>( id,
-<a name="x864"></a><a name="x844"></a> TQRect( item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(),
-<a name="x865"></a> item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(),
+<a name="x864"></a><a name="x844"></a> TQRect( item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="tqpoint.html#x">x</a>(),
+<a name="x865"></a> item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="tqpoint.html#y">y</a>(),
item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>().width(), item-&gt;<a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>().height() ),
-<a name="x852"></a> TQRect( item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(),
- item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(),
+<a name="x852"></a> TQRect( item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="tqpoint.html#x">x</a>(),
+ item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="tqpoint.html#y">y</a>(),
item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>().width(), item-&gt;<a href="tqiconviewitem.html#textRect">textRect</a>().height() ),
TQString( item-&gt;filename() ) );
}
@@ -1140,7 +1140,7 @@ protected slots:
#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="tqtoolbar-h.html">tqtoolbar.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="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>&gt;
#include &lt;<a href="tqdir-h.html">tqdir.h</a>&gt;
#include &lt;<a href="tqfileinfo-h.html">tqfileinfo.h</a>&gt;
@@ -1225,7 +1225,7 @@ void <a name="f325"></a>FileMainWindow::setup()
<a name="x895"></a> toolbar-&gt;<a href="tqtoolbar.html#addSeparator">addSeparator</a>();
- <a href="ntqpixmap.html">TQPixmap</a> pix;
+ <a href="tqpixmap.html">TQPixmap</a> pix;
pix = TQPixmap( cdtoparent_xpm );
upButton = new <a href="tqtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="tqstring.html#TQString-null">TQString::null</a>,