Bring filenew, fileopen, fileprint, filequickprint, filesave, filesaveas, fileclose, editclear, editcopy, editcut, editdelete, editpaste, folder_new, and gohome icons into XDG compliance

pull/1/head
Timothy Pearson 10 years ago
parent f6a4cc6674
commit 117b166ca6

@ -89,7 +89,7 @@ stylesheet. This makes it possible to embed images. See
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>";
<a name="x2104"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "fileopen",
<a name="x2104"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "document-open",
<a name="x2102"></a> fileOpenAction-&gt;<a href="ntqaction.html#iconSet">iconSet</a>().pixmap() );
<a name="x2103"></a> fileOpenAction-&gt;<a href="ntqaction.html#setWhatsThis">setWhatsThis</a>( fileOpenText );
</pre>

@ -152,7 +152,7 @@ private:
"Click this button to open a &lt;em&gt;new file&lt;/em&gt;. &lt;br&gt;"
"You can also select the &lt;b&gt;Open&lt;/b&gt; command "
"from the &lt;b&gt;File&lt;/b&gt; menu.&lt;/p&gt;";
<a name="x1140"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "fileopen",
<a name="x1140"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "document-open",
<a name="x1125"></a> fileOpenAction-&gt;<a href="ntqaction.html#iconSet">iconSet</a>().pixmap() );
<a name="x1126"></a> fileOpenAction-&gt;<a href="ntqaction.html#setWhatsThis">setWhatsThis</a>( fileOpenText );

@ -161,7 +161,7 @@ private:
<a name="x1591"></a> TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( fileOpen, fileOpenText );
<a name="x1558"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "fileopen", openIcon );
<a name="x1558"></a> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "document-open", openIcon );
const char * fileSaveText = "&lt;p&gt;Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"

@ -232,10 +232,10 @@ function, as its mouse interface is unusual.
</pre>
<p> With the above line we add the "What's This?" help-text to the
<em>fileOpen</em> button...
<p> <pre> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "fileopen", openIcon );
<p> <pre> TQMimeSourceFactory::<a href="qmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "document-open", openIcon );
</pre>
<p> ... and tell the rich-text engine that when a help-text (like the one
saved in <em>fileOpenText</em>) requests an image named "fileopen", the <em>openIcon</em> pixmap is used.
saved in <em>fileOpenText</em>) requests an image named "document-open", the <em>openIcon</em> pixmap is used.
<p> <pre> const char * fileSaveText = "&lt;p&gt;Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
"You can also select the &lt;b&gt;Save&lt;/b&gt; command "

@ -57,7 +57,7 @@ ApplicationWindow::ApplicationWindow()
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>";
TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen",
TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open",
fileOpenAction->iconSet().pixmap() );
fileOpenAction->setWhatsThis( fileOpenText );

@ -67,7 +67,7 @@ ApplicationWindow::ApplicationWindow()
TQWhatsThis::add( fileOpen, fileOpenText );
TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", openIcon );
const char * fileSaveText = "<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"

@ -123,14 +123,14 @@ void MainWindowWizardBase::accept()
TQtMsgHandler oldMsgHandler = qInstallMsgHandler( devNull );
getPixmap( "filenew", pix );
getPixmap( "document-new", pix );
TQAction *fileNewAction = dfw->createAction( tr( "New" ), pix, tr( "&New" ), CTRL + Key_N, 0, "fileNewAction" );
actions.insert( tr( "New" ), fileNewAction );
getPixmap( "fileopen", pix );
getPixmap( "document-open", pix );
TQAction *fileOpenAction = dfw->createAction( tr( "Open" ), pix, tr( "&Open..." ), CTRL + Key_O, 0, "fileOpenAction" );
actions.insert( tr( "Open" ), fileOpenAction );
getPixmap( "filesave", pix );
getPixmap( "document-save", pix );
TQAction *fileSaveAction = dfw->createAction( tr( "Save" ), pix, tr( "&Save" ), CTRL + Key_S, 0, "fileSaveAction" );
actions.insert( tr( "Save" ), fileSaveAction );
TQAction *fileSaveAsAction = dfw->createAction( tr( "Save As" ), TQIconSet(), tr( "Save &As..." ), 0, 0, "fileSaveAsAction" );
@ -147,13 +147,13 @@ void MainWindowWizardBase::accept()
getPixmap( "redo", pix );
TQAction *editRedoAction = dfw->createAction( tr( "Redo" ), pix, tr( "&Redo" ), CTRL + Key_Y, 0, "editRedoAction" );
actions.insert( tr( "Redo" ), editRedoAction );
getPixmap( "editcut", pix );
getPixmap( "edit-cut", pix );
TQAction *editCutAction = dfw->createAction( tr( "Cut" ), pix, tr( "Cu&t" ), CTRL + Key_X, 0, "editCutAction" );
actions.insert( tr( "Cut" ), editCutAction );
getPixmap( "editcopy", pix );
getPixmap( "edit-copy", pix );
TQAction *editCopyAction = dfw->createAction( tr( "Copy" ), pix, tr( "&Copy" ), CTRL + Key_C, 0, "editCopyAction" );
actions.insert( tr( "Copy" ), editCopyAction );
getPixmap( "editpaste", pix );
getPixmap( "edit-paste", pix );
TQAction *editPasteAction = dfw->createAction( tr( "Paste" ), pix, tr( "&Paste" ), CTRL + Key_V, 0, "editPasteAction" );
actions.insert( tr( "Paste" ), editPasteAction );
getPixmap( "searchfind", pix );

Loading…
Cancel
Save