diff options
Diffstat (limited to 'doc/html/fileiconview-example.html')
-rw-r--r-- | doc/html/fileiconview-example.html | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index 32e99f476..2116877b9 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -154,7 +154,7 @@ protected: <a href="ntqdir.html">TQDir</a> viewDir; int newFolderNum; - <a href="ntqsize.html">TQSize</a> sz; + <a href="tqsize.html">TQSize</a> sz; <a href="ntqpixmap.html">TQPixmap</a> pix; ViewMode vm; TQtFileIconViewItem *openItem; @@ -234,7 +234,7 @@ protected: #include <<a href="qdragobject-h.html">ntqdragobject.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qevent-h.html">ntqevent.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qwmatrix-h.html">ntqwmatrix.h</a>> @@ -996,35 +996,35 @@ void <a name="f319"></a>TQtFileIconView::itemTextWordWrap() void <a name="f320"></a>TQtFileIconView::slotRightPressed( <a href="tqiconviewitem.html">TQIconViewItem</a> *item ) { if ( !item ) { // right pressed on viewport - <a href="ntqpopupmenu.html">TQPopupMenu</a> menu( this ); - - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&Large view", this, TQ_SLOT( viewLarge() ) ); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&Small view", this, TQ_SLOT( viewSmall() ) ); - menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Text at the &bottom", this, TQ_SLOT( viewBottom() ) ); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Text at the &right", this, TQ_SLOT( viewRight() ) ); - menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange l&eft to right", this, TQ_SLOT( flowEast() ) ); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange t&op to bottom", this, TQ_SLOT( flowSouth() ) ); - menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&Truncate item text", this, TQ_SLOT( itemTextTruncate() ) ); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "&Wordwrap item text", this, TQ_SLOT( itemTextWordWrap() ) ); - menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Arrange items in &grid", this, TQ_SLOT( <a href="tqiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>() ) ); - menu.<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sort &ascending", this, TQ_SLOT( sortAscending() ) ); - menu.<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sort &descending", this, TQ_SLOT( sortDescending() ) ); + <a href="tqpopupmenu.html">TQPopupMenu</a> menu( this ); + + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "&Large view", this, TQ_SLOT( viewLarge() ) ); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "&Small view", this, TQ_SLOT( viewSmall() ) ); + menu.<a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Text at the &bottom", this, TQ_SLOT( viewBottom() ) ); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Text at the &right", this, TQ_SLOT( viewRight() ) ); + menu.<a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Arrange l&eft to right", this, TQ_SLOT( flowEast() ) ); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Arrange t&op to bottom", this, TQ_SLOT( flowSouth() ) ); + menu.<a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "&Truncate item text", this, TQ_SLOT( itemTextTruncate() ) ); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "&Wordwrap item text", this, TQ_SLOT( itemTextWordWrap() ) ); + menu.<a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Arrange items in &grid", this, TQ_SLOT( <a href="tqiconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>() ) ); + menu.<a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Sort &ascending", this, TQ_SLOT( sortAscending() ) ); + menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Sort &descending", this, TQ_SLOT( sortDescending() ) ); <a name="x875"></a> menu.<a href="tqwidget.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>() ); +<a name="x866"></a> menu.<a href="tqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ); } else { // on item - <a href="ntqpopupmenu.html">TQPopupMenu</a> menu( this ); + <a href="tqpopupmenu.html">TQPopupMenu</a> menu( this ); - 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" ); + int RENAME_ITEM = menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Rename Item" ); + int REMOVE_ITEM = menu.<a href="tqmenudata.html#insertItem">insertItem</a>( "Remove Item" ); menu.<a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); - int id = menu.<a href="ntqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ); + int id = menu.<a href="tqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ); if ( id == -1 ) return; @@ -1068,7 +1068,7 @@ void <a name="f321"></a>TQtFileIconView::setViewMode( ViewMode m ) #ifndef MAINWIN_H #define MAINWIN_H -#include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> class TQtFileIconView; class DirectoryView; @@ -1077,7 +1077,7 @@ class TQLabel; class TQComboBox; class TQToolButton; -class FileMainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> +class FileMainWindow : public <a href="tqmainwindow.html">TQMainWindow</a> { TQ_OBJECT @@ -1098,7 +1098,7 @@ protected: <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; + <a href="tqtoolbutton.html">TQToolButton</a> *upButton, *mkdirButton; protected slots: void directoryChanged( const <a href="tqstring.html">TQString</a> & ); @@ -1137,11 +1137,11 @@ protected slots: #include <<a href="qsplitter-h.html">ntqsplitter.h</a>> #include <<a href="qprogressbar-h.html">ntqprogressbar.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> -#include <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> -#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> +#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> #include <<a href="qcombobox-h.html">ntqcombobox.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> +#include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="qdir-h.html">ntqdir.h</a>> #include <<a href="qfileinfo-h.html">ntqfileinfo.h</a>> @@ -1186,7 +1186,7 @@ static const char* newfolder_xpm[] = { "........... "}; <a name="f324"></a>FileMainWindow::FileMainWindow() - : <a href="ntqmainwindow.html">TQMainWindow</a>() + : <a href="tqmainwindow.html">TQMainWindow</a>() { setup(); } @@ -1210,29 +1210,29 @@ void <a name="f325"></a>FileMainWindow::setup() fileview = new TQtFileIconView( "/", splitter ); <a name="x884"></a> fileview-><a href="tqiconview.html#setSelectionMode">setSelectionMode</a>( TQIconView::Extended ); - <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( splitter ); + <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( splitter ); - <a href="ntqtoolbar.html">TQToolBar</a> *toolbar = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "toolbar" ); - <a href="ntqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE ); + <a href="tqtoolbar.html">TQToolBar</a> *toolbar = new <a href="tqtoolbar.html">TQToolBar</a>( this, "toolbar" ); + <a href="tqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE ); (void)new <a href="ntqlabel.html">TQLabel</a>( <a href="tqobject.html#tr">tr</a>( " Path: " ), toolbar ); pathCombo = new <a href="ntqcombobox.html">TQComboBox</a>( TRUE, toolbar ); <a name="x880"></a> pathCombo-><a href="ntqcombobox.html#setAutoCompletion">setAutoCompletion</a>( TRUE ); -<a name="x896"></a> toolbar-><a href="ntqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo ); +<a name="x896"></a> toolbar-><a href="tqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo ); <a name="x877"></a> <a href="tqobject.html#connect">connect</a>( pathCombo, TQ_SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT ( changePath( const <a href="tqstring.html">TQString</a> & ) ) ); -<a name="x895"></a> toolbar-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); +<a name="x895"></a> toolbar-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); <a href="ntqpixmap.html">TQPixmap</a> pix; pix = TQPixmap( cdtoparent_xpm ); - upButton = new <a href="ntqtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="tqstring.html#TQString-null">TQString::null</a>, + upButton = new <a href="tqtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="tqstring.html#TQString-null">TQString::null</a>, this, TQ_SLOT( cdUp() ), toolbar, "cd up" ); pix = TQPixmap( newfolder_xpm ); - mkdirButton = new <a href="ntqtoolbutton.html">TQToolButton</a>( pix, "New Folder", TQString::null, + mkdirButton = new <a href="tqtoolbutton.html">TQToolButton</a>( pix, "New Folder", TQString::null, this, TQ_SLOT( newFolder() ), toolbar, "new folder" ); <a href="tqobject.html#connect">connect</a>( dirlist, TQ_SIGNAL( folderSelected( const <a href="tqstring.html">TQString</a> & ) ), @@ -1246,13 +1246,13 @@ void <a name="f325"></a>FileMainWindow::setup() <a href="tqobject.html#connect">connect</a>( fileview, TQ_SIGNAL( readDirDone() ), this, TQ_SLOT( slotReadDirDone() ) ); - <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE ); - <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE ); + <a href="tqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE ); + <a href="tqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE ); - label = new <a href="ntqlabel.html">TQLabel</a>( <a href="ntqmainwindow.html#statusBar">statusBar</a>() ); - <a href="ntqmainwindow.html#statusBar">statusBar</a>()->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>()->addWidget( progress, 1, TRUE ); + label = new <a href="ntqlabel.html">TQLabel</a>( <a href="tqmainwindow.html#statusBar">statusBar</a>() ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->addWidget( label, 2, TRUE ); + progress = new <a href="ntqprogressbar.html">TQProgressBar</a>( <a href="tqmainwindow.html#statusBar">statusBar</a>() ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->addWidget( progress, 1, TRUE ); <a href="tqobject.html#connect">connect</a>( fileview, TQ_SIGNAL( enableUp() ), this, TQ_SLOT( enableUp() ) ); |