summaryrefslogtreecommitdiffstats
path: root/doc/html/dirview-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/dirview-example.html')
-rw-r--r--doc/html/dirview-example.html66
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html
index 8a04e9cef..b48f054c5 100644
--- a/doc/html/dirview-example.html
+++ b/doc/html/dirview-example.html
@@ -130,10 +130,10 @@ protected slots:
void openFolder();
protected:
- void contentsDragEnterEvent( <a href="qdragenterevent.html">TQDragEnterEvent</a> *e );
- void contentsDragMoveEvent( <a href="qdragmoveevent.html">TQDragMoveEvent</a> *e );
- void contentsDragLeaveEvent( <a href="qdragleaveevent.html">TQDragLeaveEvent</a> *e );
- void contentsDropEvent( <a href="qdropevent.html">TQDropEvent</a> *e );
+ void contentsDragEnterEvent( <a href="tqdragenterevent.html">TQDragEnterEvent</a> *e );
+ void contentsDragMoveEvent( <a href="tqdragmoveevent.html">TQDragMoveEvent</a> *e );
+ void contentsDragLeaveEvent( <a href="tqdragleaveevent.html">TQDragLeaveEvent</a> *e );
+ void contentsDropEvent( <a href="tqdropevent.html">TQDropEvent</a> *e );
void contentsMouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e );
void contentsMousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e );
void contentsMouseReleaseEvent( <a href="qmouseevent.html">TQMouseEvent</a> *e );
@@ -176,8 +176,8 @@ can be used in any other trees.
#include &lt;<a href="qevent-h.html">ntqevent.h</a>&gt;
#include &lt;<a href="qpoint-h.html">ntqpoint.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-#include &lt;<a href="qdragobject-h.html">ntqdragobject.h</a>&gt;
-#include &lt;<a href="qmime-h.html">ntqmime.h</a>&gt;
+#include &lt;<a href="tqdragobject-h.html">tqdragobject.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="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
@@ -477,16 +477,16 @@ void <a name="f480"></a>DirectoryView::openFolder()
static const int autoopenTime = 750;
-<a name="x1679"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragEnterEvent">contentsDragEnterEvent</a>( <a href="qdragenterevent.html">TQDragEnterEvent</a> *e )
+<a name="x1679"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragEnterEvent">contentsDragEnterEvent</a>( <a href="tqdragenterevent.html">TQDragEnterEvent</a> *e )
{
if ( !TQUriDrag::canDecode(e) ) {
-<a name="x1669"></a> e-&gt;<a href="qdragmoveevent.html#ignore">ignore</a>();
+<a name="x1669"></a> e-&gt;<a href="tqdragmoveevent.html#ignore">ignore</a>();
return;
}
oldCurrent = <a href="ntqlistview.html#currentItem">currentItem</a>();
-<a name="x1673"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="qdropevent.html#pos">pos</a>()) );
+<a name="x1673"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
if ( i ) {
dropItem = i;
<a name="x1704"></a> autoopen_timer-&gt;<a href="tqtimer.html#start">start</a>( autoopenTime );
@@ -494,10 +494,10 @@ static const int autoopenTime = 750;
}
-<a name="x1681"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragMoveEvent">contentsDragMoveEvent</a>( <a href="qdragmoveevent.html">TQDragMoveEvent</a> *e )
+<a name="x1681"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragMoveEvent">contentsDragMoveEvent</a>( <a href="tqdragmoveevent.html">TQDragMoveEvent</a> *e )
{
if ( !TQUriDrag::canDecode(e) ) {
- e-&gt;<a href="qdragmoveevent.html#ignore">ignore</a>();
+ e-&gt;<a href="tqdragmoveevent.html#ignore">ignore</a>();
return;
}
@@ -505,32 +505,32 @@ static const int autoopenTime = 750;
<a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( vp );
if ( i ) {
<a href="ntqlistview.html#setSelected">setSelected</a>( i, TRUE );
-<a name="x1668"></a> e-&gt;<a href="qdragmoveevent.html#accept">accept</a>();
+<a name="x1668"></a> e-&gt;<a href="tqdragmoveevent.html#accept">accept</a>();
if ( i != dropItem ) {
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
dropItem = i;
autoopen_timer-&gt;<a href="tqtimer.html#start">start</a>( autoopenTime );
}
-<a name="x1672"></a> switch ( e-&gt;<a href="qdropevent.html#action">action</a>() ) {
+<a name="x1672"></a> switch ( e-&gt;<a href="tqdropevent.html#action">action</a>() ) {
case TQDropEvent::Copy:
break;
case TQDropEvent::Move:
-<a name="x1671"></a> e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+<a name="x1671"></a> e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
break;
case TQDropEvent::Link:
- e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+ e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
break;
default:
;
}
} else {
- e-&gt;<a href="qdragmoveevent.html#ignore">ignore</a>();
+ e-&gt;<a href="tqdragmoveevent.html#ignore">ignore</a>();
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
dropItem = 0;
}
}
-<a name="x1680"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragLeaveEvent">contentsDragLeaveEvent</a>( <a href="qdragleaveevent.html">TQDragLeaveEvent</a> * )
+<a name="x1680"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragLeaveEvent">contentsDragLeaveEvent</a>( <a href="tqdragleaveevent.html">TQDragLeaveEvent</a> * )
{
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
dropItem = 0;
@@ -539,35 +539,35 @@ static const int autoopenTime = 750;
<a href="ntqlistview.html#setSelected">setSelected</a>( oldCurrent, TRUE );
}
-<a name="x1682"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDropEvent">contentsDropEvent</a>( <a href="qdropevent.html">TQDropEvent</a> *e )
+<a name="x1682"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDropEvent">contentsDropEvent</a>( <a href="tqdropevent.html">TQDropEvent</a> *e )
{
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
if ( !TQUriDrag::canDecode(e) ) {
- e-&gt;<a href="qdragmoveevent.html#ignore">ignore</a>();
+ e-&gt;<a href="tqdragmoveevent.html#ignore">ignore</a>();
return;
}
- <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="qdropevent.html#pos">pos</a>()) );
+ <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
if ( item ) {
<a href="tqstrlist.html">TQStrList</a> lst;
-<a name="x1707"></a> TQUriDrag::<a href="quridrag.html#decode">decode</a>( e, lst );
+<a name="x1707"></a> TQUriDrag::<a href="tquridrag.html#decode">decode</a>( e, lst );
<a href="tqstring.html">TQString</a> str;
- switch ( e-&gt;<a href="qdropevent.html#action">action</a>() ) {
+ switch ( e-&gt;<a href="tqdropevent.html#action">action</a>() ) {
case TQDropEvent::Copy:
str = "Copy";
break;
case TQDropEvent::Move:
str = "Move";
- e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+ e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
break;
case TQDropEvent::Link:
str = "Link";
- e-&gt;<a href="qdropevent.html#acceptAction">acceptAction</a>();
+ e-&gt;<a href="tqdropevent.html#acceptAction">acceptAction</a>();
break;
default:
str = "Unknown";
@@ -575,10 +575,10 @@ static const int autoopenTime = 750;
str += "\n\n";
- e-&gt;<a href="qdragmoveevent.html#accept">accept</a>();
+ e-&gt;<a href="tqdragmoveevent.html#accept">accept</a>();
<a name="x1699"></a> for ( uint i = 0; i &lt; lst.<a href="tqptrlist.html#count">count</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)));
+<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="tquridrag.html#uriToLocalFile">uriToLocalFile</a>(lst.<a href="tqptrlist.html#at">at</a>(i)));
str += filename + "\n";
}
str += TQString( "\nTo\n\n %1" )
@@ -586,7 +586,7 @@ static const int autoopenTime = 750;
<a name="x1695"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Drop target", str, "Not implemented" );
} else
- e-&gt;<a href="qdragmoveevent.html#ignore">ignore</a>();
+ e-&gt;<a href="tqdragmoveevent.html#ignore">ignore</a>();
}
@@ -613,14 +613,14 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
<a name="x1684"></a>void DirectoryView::<a href="ntqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
{
TQListView::<a href="ntqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>(e);
- <a href="ntqpoint.html">TQPoint</a> p( contentsToViewport( e-&gt;<a href="qdropevent.html#pos">pos</a>() ) );
+ <a href="ntqpoint.html">TQPoint</a> p( contentsToViewport( e-&gt;<a href="tqdropevent.html#pos">pos</a>() ) );
<a href="qlistviewitem.html">TQListViewItem</a> *i = itemAt( p );
if ( i ) {
// if the user clicked into the root decoration of the item, don't try to start a drag!
<a name="x1696"></a> if ( p.<a href="ntqpoint.html#x">x</a>() &gt; header()-&gt;cellPos( header()-&gt;mapToActual( 0 ) ) +
<a name="x1686"></a> treeStepSize() * ( i-&gt;<a href="qlistviewitem.html#depth">depth</a>() + ( rootIsDecorated() ? 1 : 0) ) + itemMargin() ||
p.<a href="ntqpoint.html#x">x</a>() &lt; header()-&gt;cellPos( header()-&gt;mapToActual( 0 ) ) ) {
- presspos = e-&gt;<a href="qdropevent.html#pos">pos</a>();
+ presspos = e-&gt;<a href="tqdropevent.html#pos">pos</a>();
mousePressed = TRUE;
}
}
@@ -628,15 +628,15 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
<a name="x1683"></a>void DirectoryView::<a href="ntqlistview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
{
- if ( mousePressed &amp;&amp; ( presspos - e-&gt;<a href="qdropevent.html#pos">pos</a>() ).manhattanLength() &gt; TQApplication::<a href="ntqapplication.html#startDragDistance">startDragDistance</a>() ) {
+ if ( mousePressed &amp;&amp; ( presspos - e-&gt;<a href="tqdropevent.html#pos">pos</a>() ).manhattanLength() &gt; TQApplication::<a href="ntqapplication.html#startDragDistance">startDragDistance</a>() ) {
mousePressed = FALSE;
<a href="qlistviewitem.html">TQListViewItem</a> *item = itemAt( contentsToViewport(presspos) );
if ( 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-&gt;<a href="quridrag.html#setFileNames">setFileNames</a>( source );
-<a name="x1670"></a> if ( ud-&gt;<a href="ntqdragobject.html#drag">drag</a>() )
+ <a href="tquridrag.html">TQUriDrag</a>* ud = new <a href="tquridrag.html">TQUriDrag</a>(viewport());
+<a name="x1708"></a> ud-&gt;<a href="tquridrag.html#setFileNames">setFileNames</a>( source );
+<a name="x1670"></a> if ( ud-&gt;<a href="tqdragobject.html#drag">drag</a>() )
TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Drag source",
TQString("Delete ") + TQDir::convertSeparators(source), "Not implemented" );
}