diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-02 21:37:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-06 11:24:55 +0900 |
commit | 7552c6d73043b1040139033f6864db48ae5446cf (patch) | |
tree | f90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/html/showimg-example.html | |
parent | c113da2069b66130f67a0f27c699e1cec83588a5 (diff) | |
download | tqt3-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.html | 216 |
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 <<a href="qmenubar-h.html">ntqmenubar.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> @@ -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-><a href="ntqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle ); + menubar = new <a href="tqmenubar.html">TQMenuBar</a>(this); +<a name="x1326"></a> menubar-><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-><a href="ntqmenudata.html#insertItem">insertItem</a>( f ); - savepixmap-><a href="ntqmenudata.html#insertItem">insertItem</a>( f ); +<a name="x1327"></a> saveimage-><a href="tqmenudata.html#insertItem">insertItem</a>( f ); + savepixmap-><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-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&File", file ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New window", this, TQ_SLOT(newWindow()), CTRL+Key_N ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(openFile()), CTRL+Key_O ); - si = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage ); - sp = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap ); -<a name="x1328"></a> file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); - - edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); - menubar-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Copy", this, TQ_SLOT(copy()), CTRL+Key_C); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Paste", this, TQ_SLOT(paste()), CTRL+Key_V); - edit-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R); - edit-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Text...", this, TQ_SLOT(editText())); - edit-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - t1 = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &1 bit", this, TQ_SLOT(to1Bit()) ); - t8 = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &8 bit", this, TQ_SLOT(to8Bit()) ); - t32 = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Convert to &32 bit", this, TQ_SLOT(to32Bit()) ); - - options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); - menubar-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Options", options ); - ac = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "AutoColor" ); - co = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "ColorOnly" ); - mo = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "MonoOnly" ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - fd = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "DiffuseDither" ); - bd = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "OrderedDither" ); - td = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "ThresholdDither" ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - ta = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "ThresholdAlphaDither" ); - ba = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "OrderedAlphaDither" ); - fa = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "DiffuseAlphaDither" ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - ad = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "PreferDither" ); - dd = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "AvoidDither" ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - ss = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Smooth scaling" ); - cc = options-><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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", file ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&New window", this, TQ_SLOT(newWindow()), CTRL+Key_N ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(openFile()), CTRL+Key_O ); + si = file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage ); + sp = file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap ); +<a name="x1328"></a> file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); + + edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar ); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Copy", this, TQ_SLOT(copy()), CTRL+Key_C); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Paste", this, TQ_SLOT(paste()), CTRL+Key_V); + edit-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R); + edit-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>("&Text...", this, TQ_SLOT(editText())); + edit-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + t1 = edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &1 bit", this, TQ_SLOT(to1Bit()) ); + t8 = edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &8 bit", this, TQ_SLOT(to8Bit()) ); + t32 = edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "Convert to &32 bit", this, TQ_SLOT(to32Bit()) ); + + options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar ); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Options", options ); + ac = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "AutoColor" ); + co = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "ColorOnly" ); + mo = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "MonoOnly" ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + fd = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "DiffuseDither" ); + bd = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "OrderedDither" ); + td = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "ThresholdDither" ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + ta = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "ThresholdAlphaDither" ); + ba = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "OrderedAlphaDither" ); + fa = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "DiffuseAlphaDither" ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + ad = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "PreferDither" ); + dd = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "AvoidDither" ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + ss = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Smooth scaling" ); + cc = options-><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-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( cc, FALSE ); -<a name="x1342"></a> options-><a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); +<a name="x1331"></a> options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( cc, FALSE ); +<a name="x1342"></a> options-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); setMenuItemFlags(); - menubar-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); + menubar-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); - <a href="ntqpopupmenu.html">TQPopupMenu</a>* help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); - menubar-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Help", help ); - help-><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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Help", help ); + help-><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-><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-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(item); -<a name="x1330"></a> options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>(item, newbool); +<a name="x1329"></a> bool newbool = !options-><a href="tqmenudata.html#isItemChecked">isItemChecked</a>(item); +<a name="x1330"></a> options-><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-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( item ) ) return; // They are all radio buttons + if ( options-><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-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( si, valid_image ); - file-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( sp, valid_image ); + file-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( si, valid_image ); + file-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( sp, valid_image ); // Edit - edit-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t1, image.depth() != 1 ); - edit-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t8, image.depth() != 8 ); - edit-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( t32, image.depth() != 32 ); + edit-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t1, image.depth() != 1 ); + edit-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t8, image.depth() != 8 ); + edit-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( t32, image.depth() != 32 ); // Options bool may_need_color_dithering = !valid_image || image.depth() == 32 && TQPixmap::<a href="ntqpixmap.html#defaultDepth">defaultDepth</a>() < 24; bool may_need_dithering = may_need_color_dithering - || image.depth() > 1 && options-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(mo) + || image.depth() > 1 && options-><a href="tqmenudata.html#isItemChecked">isItemChecked</a>(mo) || image.depth() > 1 && TQPixmap::<a href="ntqpixmap.html#defaultDepth">defaultDepth</a>() == 1; bool has_alpha_mask = !valid_image || image.hasAlphaBuffer(); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( fd, may_need_dithering ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( bd, may_need_dithering ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( td, may_need_dithering ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( fd, may_need_dithering ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( bd, may_need_dithering ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( td, may_need_dithering ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ta, has_alpha_mask ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( fa, has_alpha_mask ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ba, has_alpha_mask ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ta, has_alpha_mask ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( fa, has_alpha_mask ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ba, has_alpha_mask ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( ad, may_need_color_dithering ); - options-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( dd, may_need_color_dithering ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( ad, may_need_color_dithering ); + options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( dd, may_need_color_dithering ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ac, (conversion_flags & ColorMode_Mask) == AutoColor ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( co, (conversion_flags & ColorMode_Mask) == ColorOnly ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( mo, (conversion_flags & ColorMode_Mask) == MonoOnly ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( fd, (conversion_flags & Dither_Mask) == DiffuseDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( bd, (conversion_flags & Dither_Mask) == OrderedDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td, (conversion_flags & Dither_Mask) == ThresholdDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ta, (conversion_flags & AlphaDither_Mask) == ThresholdAlphaDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( fa, (conversion_flags & AlphaDither_Mask) == DiffuseAlphaDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ba, (conversion_flags & AlphaDither_Mask) == OrderedAlphaDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ad, (conversion_flags & DitherMode_Mask) == PreferDither ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dd, (conversion_flags & DitherMode_Mask) == AvoidDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ac, (conversion_flags & ColorMode_Mask) == AutoColor ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( co, (conversion_flags & ColorMode_Mask) == ColorOnly ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( mo, (conversion_flags & ColorMode_Mask) == MonoOnly ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( fd, (conversion_flags & Dither_Mask) == DiffuseDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( bd, (conversion_flags & Dither_Mask) == OrderedDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td, (conversion_flags & Dither_Mask) == ThresholdDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ta, (conversion_flags & AlphaDither_Mask) == ThresholdAlphaDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( fa, (conversion_flags & AlphaDither_Mask) == DiffuseAlphaDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ba, (conversion_flags & AlphaDither_Mask) == OrderedAlphaDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ad, (conversion_flags & DitherMode_Mask) == PreferDither ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dd, (conversion_flags & 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-><a href="ntqmenudata.html#text">text</a>(item); +<a name="x1332"></a> const char* fmt = saveimage-><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-><a href="ntqmenudata.html#text">text</a>(item); + const char* fmt = savepixmap-><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->options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( that->cc, useColorContext() ); + that->options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( that->cc, useColorContext() ); that-><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-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-><a href="tqwidget.html#height">height</a>(); +<a name="x1347"></a><a name="x1325"></a> h += menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-><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-><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-><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-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(ss); + return options-><a href="tqmenudata.html#isItemChecked">isItemChecked</a>(ss); } bool <a name="f416"></a>ImageViewer::useColorContext() const { - return options-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>(cc); + return options-><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-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><a href="tqwidget.html#height">height</a>(); + int h = <a href="tqwidget.html#height">height</a>() - menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><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-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><a href="tqwidget.html#height">height</a>(); + int h = <a href="tqwidget.html#height">height</a>() - menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><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& x, int& y) { if ( pm.size() != TQSize( 0, 0 ) ) { - int h = <a href="tqwidget.html#height">height</a>() - menubar-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><a href="tqwidget.html#height">height</a>(); + int h = <a href="tqwidget.html#height">height</a>() - menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ) - status-><a href="tqwidget.html#height">height</a>(); <a name="x1335"></a> int nx = e-><a href="qmouseevent.html#x">x</a>() * image.width() / width(); -<a name="x1336"></a> int ny = (e-><a href="qmouseevent.html#y">y</a>()-menubar-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() )) * image.height() / h; +<a name="x1336"></a> int ny = (e-><a href="qmouseevent.html#y">y</a>()-menubar-><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-><a href="qpaintevent.html#rect">rect</a>()); -<a name="x1337"></a> painter.<a href="ntqpainter.html#drawPixmap">drawPixmap</a>(0, menubar-><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-><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-><a href="ntqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-><a href="tqwidget.html#height">height</a>(); + h += menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>(w) + status-><a href="tqwidget.html#height">height</a>(); <a href="tqwidget.html#resize">resize</a>( w, h ); // we resize to fit image reconvertImage(); |