summaryrefslogtreecommitdiffstats
path: root/doc/html/showimg-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-02 21:37:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-06 11:24:55 +0900
commit7552c6d73043b1040139033f6864db48ae5446cf (patch)
treef90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/html/showimg-example.html
parentc113da2069b66130f67a0f27c699e1cec83588a5 (diff)
downloadtqt3-7552c6d73043b1040139033f6864db48ae5446cf.tar.gz
tqt3-7552c6d73043b1040139033f6864db48ae5446cf.zip
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/showimg-example.html')
-rw-r--r--doc/html/showimg-example.html216
1 files changed, 108 insertions, 108 deletions
diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html
index d85855c75..394a3edf8 100644
--- a/doc/html/showimg-example.html
+++ b/doc/html/showimg-example.html
@@ -84,12 +84,12 @@ private:
<a href="ntqpixmap.html">TQPixmap</a> pm; // the converted pixmap
<a href="ntqpixmap.html">TQPixmap</a> pmScaled; // the scaled pixmap
- <a href="ntqmenubar.html">TQMenuBar</a> *menubar;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *file;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *saveimage;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *savepixmap;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *edit;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *options;
+ <a href="tqmenubar.html">TQMenuBar</a> *menubar;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *file;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *saveimage;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *savepixmap;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *edit;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *options;
<a href="tqwidget.html">TQWidget</a> *helpmsg;
<a href="ntqlabel.html">TQLabel</a> *status;
@@ -147,10 +147,10 @@ private slots:
#include "showimg.h"
#include "imagetexteditor.h"
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
@@ -175,74 +175,74 @@ private slots:
clicky = -1;
alloc_context = 0;
- menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this);
-<a name="x1326"></a> menubar-&gt;<a href="ntqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
+ menubar = new <a href="tqmenubar.html">TQMenuBar</a>(this);
+<a name="x1326"></a> menubar-&gt;<a href="tqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
<a name="x1323"></a> <a href="tqstrlist.html">TQStrList</a> fmt = TQImage::<a href="tqimage.html#outputFormats">outputFormats</a>();
- saveimage = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
- savepixmap = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ saveimage = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
+ savepixmap = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a name="x1344"></a><a name="x1343"></a> for (const char* f = fmt.<a href="tqptrlist.html#first">first</a>(); f; f = fmt.<a href="tqptrlist.html#next">next</a>()) {
-<a name="x1327"></a> saveimage-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( f );
- savepixmap-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( f );
+<a name="x1327"></a> saveimage-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( f );
+ savepixmap-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( f );
}
-<a name="x1341"></a> <a href="tqobject.html#connect">connect</a>( saveimage, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveImage(int)) );
- <a href="tqobject.html#connect">connect</a>( savepixmap, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(savePixmap(int)) );
-
- file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;New window", this, TQ_SLOT(newWindow()), CTRL+Key_N );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(openFile()), CTRL+Key_O );
- si = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage );
- sp = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap );
-<a name="x1328"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
-
- edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Copy", this, TQ_SLOT(copy()), CTRL+Key_C);
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Paste", this, TQ_SLOT(paste()), CTRL+Key_V);
- edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H);
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V);
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R);
- edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Text...", this, TQ_SLOT(editText()));
- edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- t1 = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;1 bit", this, TQ_SLOT(to1Bit()) );
- t8 = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;8 bit", this, TQ_SLOT(to8Bit()) );
- t32 = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;32 bit", this, TQ_SLOT(to32Bit()) );
-
- options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
- ac = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "AutoColor" );
- co = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "ColorOnly" );
- mo = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "MonoOnly" );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- fd = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "DiffuseDither" );
- bd = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "OrderedDither" );
- td = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "ThresholdDither" );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- ta = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "ThresholdAlphaDither" );
- ba = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "OrderedAlphaDither" );
- fa = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "DiffuseAlphaDither" );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- ad = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "PreferDither" );
- dd = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "AvoidDither" );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- ss = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Smooth scaling" );
- cc = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Use color context" );
+<a name="x1341"></a> <a href="tqobject.html#connect">connect</a>( saveimage, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveImage(int)) );
+ <a href="tqobject.html#connect">connect</a>( savepixmap, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(savePixmap(int)) );
+
+ file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;New window", this, TQ_SLOT(newWindow()), CTRL+Key_N );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(openFile()), CTRL+Key_O );
+ si = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage );
+ sp = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap );
+<a name="x1328"></a> file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
+
+ edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Copy", this, TQ_SLOT(copy()), CTRL+Key_C);
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Paste", this, TQ_SLOT(paste()), CTRL+Key_V);
+ edit-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H);
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V);
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R);
+ edit-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Text...", this, TQ_SLOT(editText()));
+ edit-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ t1 = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;1 bit", this, TQ_SLOT(to1Bit()) );
+ t8 = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;8 bit", this, TQ_SLOT(to8Bit()) );
+ t32 = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &amp;32 bit", this, TQ_SLOT(to32Bit()) );
+
+ options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
+ ac = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "AutoColor" );
+ co = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "ColorOnly" );
+ mo = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "MonoOnly" );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ fd = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "DiffuseDither" );
+ bd = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "OrderedDither" );
+ td = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "ThresholdDither" );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ ta = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "ThresholdAlphaDither" );
+ ba = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "OrderedAlphaDither" );
+ fa = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "DiffuseAlphaDither" );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ ad = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "PreferDither" );
+ dd = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "AvoidDither" );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ ss = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Smooth scaling" );
+ cc = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Use color context" );
<a name="x1309"></a> if ( TQApplication::<a href="ntqapplication.html#colorSpec">colorSpec</a>() == TQApplication::ManyColor )
-<a name="x1331"></a> options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( cc, FALSE );
-<a name="x1342"></a> options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+<a name="x1331"></a> options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( cc, FALSE );
+<a name="x1342"></a> options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
setMenuItemFlags();
- menubar-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ menubar-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Help", help );
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Help!", this, TQ_SLOT(giveHelp()), CTRL+Key_H );
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Help", help );
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Help!", this, TQ_SLOT(giveHelp()), CTRL+Key_H );
- <a href="tqobject.html#connect">connect</a>( options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(doOption(int)) );
+ <a href="tqobject.html#connect">connect</a>( options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(doOption(int)) );
status = new <a href="ntqlabel.html">TQLabel</a>(this);
status-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken );
@@ -268,15 +268,15 @@ void <a name="f406"></a>ImageViewer::doOption(int item)
{
if ( item == ss || item == cc ) {
// Toggle
-<a name="x1329"></a> bool newbool = !options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(item);
-<a name="x1330"></a> options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>(item, newbool);
+<a name="x1329"></a> bool newbool = !options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>(item);
+<a name="x1330"></a> options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>(item, newbool);
// And reconvert...
reconvertImage();
<a href="tqwidget.html#repaint">repaint</a>(image.hasAlphaBuffer()); // show image in widget
return;
}
- if ( options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( item ) ) return; // They are all radio buttons
+ if ( options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>( item ) ) return; // They are all radio buttons
int ocf = conversion_flags;
@@ -319,45 +319,45 @@ void <a name="f407"></a>ImageViewer::setMenuItemFlags()
{
// File
bool valid_image = pm.size() != TQSize( 0, 0 );
- file-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( si, valid_image );
- file-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( sp, valid_image );
+ file-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( si, valid_image );
+ file-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( sp, valid_image );
// Edit
- edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t1, image.depth() != 1 );
- edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t8, image.depth() != 8 );
- edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t32, image.depth() != 32 );
+ edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t1, image.depth() != 1 );
+ edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t8, image.depth() != 8 );
+ edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t32, image.depth() != 32 );
// Options
bool may_need_color_dithering =
!valid_image
|| image.depth() == 32 &amp;&amp; TQPixmap::<a href="ntqpixmap.html#defaultDepth">defaultDepth</a>() &lt; 24;
bool may_need_dithering = may_need_color_dithering
- || image.depth() &gt; 1 &amp;&amp; options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(mo)
+ || image.depth() &gt; 1 &amp;&amp; options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>(mo)
|| image.depth() &gt; 1 &amp;&amp; TQPixmap::<a href="ntqpixmap.html#defaultDepth">defaultDepth</a>() == 1;
bool has_alpha_mask = !valid_image || image.hasAlphaBuffer();
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( fd, may_need_dithering );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( bd, may_need_dithering );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( td, may_need_dithering );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( fd, may_need_dithering );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( bd, may_need_dithering );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( td, may_need_dithering );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ta, has_alpha_mask );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( fa, has_alpha_mask );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ba, has_alpha_mask );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ta, has_alpha_mask );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( fa, has_alpha_mask );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ba, has_alpha_mask );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ad, may_need_color_dithering );
- options-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( dd, may_need_color_dithering );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ad, may_need_color_dithering );
+ options-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( dd, may_need_color_dithering );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ac, (conversion_flags &amp; ColorMode_Mask) == AutoColor );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( co, (conversion_flags &amp; ColorMode_Mask) == ColorOnly );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( mo, (conversion_flags &amp; ColorMode_Mask) == MonoOnly );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( fd, (conversion_flags &amp; Dither_Mask) == DiffuseDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( bd, (conversion_flags &amp; Dither_Mask) == OrderedDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td, (conversion_flags &amp; Dither_Mask) == ThresholdDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ta, (conversion_flags &amp; AlphaDither_Mask) == ThresholdAlphaDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( fa, (conversion_flags &amp; AlphaDither_Mask) == DiffuseAlphaDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ba, (conversion_flags &amp; AlphaDither_Mask) == OrderedAlphaDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ad, (conversion_flags &amp; DitherMode_Mask) == PreferDither );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dd, (conversion_flags &amp; DitherMode_Mask) == AvoidDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ac, (conversion_flags &amp; ColorMode_Mask) == AutoColor );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( co, (conversion_flags &amp; ColorMode_Mask) == ColorOnly );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( mo, (conversion_flags &amp; ColorMode_Mask) == MonoOnly );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( fd, (conversion_flags &amp; Dither_Mask) == DiffuseDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( bd, (conversion_flags &amp; Dither_Mask) == OrderedDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td, (conversion_flags &amp; Dither_Mask) == ThresholdDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ta, (conversion_flags &amp; AlphaDither_Mask) == ThresholdAlphaDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( fa, (conversion_flags &amp; AlphaDither_Mask) == DiffuseAlphaDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ba, (conversion_flags &amp; AlphaDither_Mask) == OrderedAlphaDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ad, (conversion_flags &amp; DitherMode_Mask) == PreferDither );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dd, (conversion_flags &amp; DitherMode_Mask) == AvoidDither );
}
void <a name="f408"></a>ImageViewer::updateStatus()
@@ -425,7 +425,7 @@ void <a name="f408"></a>ImageViewer::updateStatus()
*/
void <a name="f409"></a>ImageViewer::saveImage( int item )
{
-<a name="x1332"></a> const char* fmt = saveimage-&gt;<a href="ntqmenudata.html#text">text</a>(item);
+<a name="x1332"></a> const char* fmt = saveimage-&gt;<a href="tqmenudata.html#text">text</a>(item);
<a name="x1319"></a> <a href="tqstring.html">TQString</a> savefilename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(TQString::null, <a href="tqstring.html#TQString-null">TQString::null</a>,
this, filename);
if ( !savefilename.<a href="tqstring.html#isEmpty">isEmpty</a>() )
@@ -438,7 +438,7 @@ void <a name="f409"></a>ImageViewer::saveImage( int item )
*/
void <a name="f410"></a>ImageViewer::savePixmap( int item )
{
- const char* fmt = savepixmap-&gt;<a href="ntqmenudata.html#text">text</a>(item);
+ const char* fmt = savepixmap-&gt;<a href="tqmenudata.html#text">text</a>(item);
<a href="tqstring.html">TQString</a> savefilename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(TQString::null,
TQString::null, this, filename);
if ( !savefilename.<a href="tqstring.html#isEmpty">isEmpty</a>() )
@@ -450,7 +450,7 @@ void <a name="f410"></a>ImageViewer::savePixmap( int item )
void <a name="f411"></a>ImageViewer::newWindow()
{
ImageViewer* that = new ImageViewer(0, "new window", WDestructiveClose);
- that-&gt;options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( that-&gt;cc, useColorContext() );
+ that-&gt;options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( that-&gt;cc, useColorContext() );
that-&gt;<a href="tqwidget.html#show">show</a>();
}
@@ -501,7 +501,7 @@ bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQ
h *= multiply;
}
-<a name="x1347"></a><a name="x1325"></a> h += menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-&gt;<a href="tqwidget.html#height">height</a>();
+<a name="x1347"></a><a name="x1325"></a> h += menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-&gt;<a href="tqwidget.html#height">height</a>();
<a href="tqwidget.html#resize">resize</a>( w, h ); // we resize to fit image
} else {
pm.resize(0,0); // couldn't load image
@@ -528,7 +528,7 @@ bool <a name="f414"></a>ImageViewer::reconvertImage()
<a name="x1314"></a> alloc_context = TQColor::<a href="ntqcolor.html#enterAllocContext">enterAllocContext</a>();
// Clear the image to hide flickering palette
<a href="ntqpainter.html">TQPainter</a> painter(this);
-<a name="x1338"></a> painter.<a href="ntqpainter.html#eraseRect">eraseRect</a>(0, menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ), width(), height());
+<a name="x1338"></a> painter.<a href="ntqpainter.html#eraseRect">eraseRect</a>(0, menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ), width(), height());
}
TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time
@@ -553,12 +553,12 @@ bool <a name="f414"></a>ImageViewer::reconvertImage()
bool <a name="f415"></a>ImageViewer::smooth() const
{
- return options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(ss);
+ return options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>(ss);
}
bool <a name="f416"></a>ImageViewer::useColorContext() const
{
- return options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(cc);
+ return options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>(cc);
}
/*
@@ -568,7 +568,7 @@ bool <a name="f416"></a>ImageViewer::useColorContext() const
void <a name="f417"></a>ImageViewer::scale()
{
- int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
+ int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
if ( image.isNull() ) return;
@@ -603,7 +603,7 @@ void <a name="f417"></a>ImageViewer::scale()
if ( pm.size() == TQSize( 0, 0 ) ) // we couldn't load the image
return;
- int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
+ int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
if ( <a href="tqwidget.html#width">width</a>() != pmScaled.width() || h != pmScaled.height())
{ // if new size,
scale(); // scale pmScaled to window
@@ -616,9 +616,9 @@ void <a name="f417"></a>ImageViewer::scale()
bool <a name="f418"></a>ImageViewer::convertEvent( <a href="qmouseevent.html">TQMouseEvent</a>* e, int&amp; x, int&amp; y)
{
if ( pm.size() != TQSize( 0, 0 ) ) {
- int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
+ int h = <a href="tqwidget.html#height">height</a>() - menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-&gt;<a href="tqwidget.html#height">height</a>();
<a name="x1335"></a> int nx = e-&gt;<a href="qmouseevent.html#x">x</a>() * image.width() / width();
-<a name="x1336"></a> int ny = (e-&gt;<a href="qmouseevent.html#y">y</a>()-menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() )) * image.height() / h;
+<a name="x1336"></a> int ny = (e-&gt;<a href="qmouseevent.html#y">y</a>()-menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() )) * image.height() / h;
if (nx != x || ny != y ) {
x = nx;
y = ny;
@@ -666,7 +666,7 @@ void ImageViewer::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qp
if ( pm.size() != TQSize( 0, 0 ) ) { // is an image loaded?
<a href="ntqpainter.html">TQPainter</a> painter(this);
<a name="x1340"></a><a name="x1339"></a> painter.<a href="ntqpainter.html#setClipRect">setClipRect</a>(e-&gt;<a href="qpaintevent.html#rect">rect</a>());
-<a name="x1337"></a> painter.<a href="ntqpainter.html#drawPixmap">drawPixmap</a>(0, menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ), pmScaled);
+<a name="x1337"></a> painter.<a href="ntqpainter.html#drawPixmap">drawPixmap</a>(0, menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ), pmScaled);
}
}
@@ -771,7 +771,7 @@ void <a name="f426"></a>ImageViewer::setImage(const <a href="tqimage.html">TQIma
h *= multiply;
}
- h += menubar-&gt;<a href="ntqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-&gt;<a href="tqwidget.html#height">height</a>();
+ h += menubar-&gt;<a href="tqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-&gt;<a href="tqwidget.html#height">height</a>();
<a href="tqwidget.html#resize">resize</a>( w, h ); // we resize to fit image
reconvertImage();