summaryrefslogtreecommitdiffstats
path: root/doc/html/showimg-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/showimg-example.html')
-rw-r--r--doc/html/showimg-example.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html
index 5d5884269..d85855c75 100644
--- a/doc/html/showimg-example.html
+++ b/doc/html/showimg-example.html
@@ -64,7 +64,7 @@ class ImageViewer : public <a href="tqwidget.html">TQWidget</a>
public:
ImageViewer( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0, int wFlags=0 );
~ImageViewer();
- bool loadImage( const <a href="ntqstring.html">TQString</a>&amp; );
+ bool loadImage( const <a href="tqstring.html">TQString</a>&amp; );
protected:
void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * );
void resizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> * );
@@ -79,7 +79,7 @@ private:
bool useColorContext() const;
int alloc_context;
bool convertEvent( <a href="qmouseevent.html">TQMouseEvent</a>* e, int&amp; x, int&amp; y );
- <a href="ntqstring.html">TQString</a> filename;
+ <a href="tqstring.html">TQString</a> filename;
<a href="tqimage.html">TQImage</a> image; // the loaded image
<a href="ntqpixmap.html">TQPixmap</a> pm; // the converted pixmap
<a href="ntqpixmap.html">TQPixmap</a> pmScaled; // the scaled pixmap
@@ -178,7 +178,7 @@ private slots:
menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this);
<a name="x1326"></a> menubar-&gt;<a href="ntqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
-<a name="x1323"></a> <a href="ntqstrlist.html">TQStrList</a> fmt = TQImage::<a href="tqimage.html#outputFormats">outputFormats</a>();
+<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 );
<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>()) {
@@ -368,8 +368,8 @@ void <a name="f408"></a>ImageViewer::updateStatus()
else
status-&gt;<a href="ntqlabel.html#setText">setText</a>("No image - select Open from File menu.");
} else {
- <a href="ntqstring.html">TQString</a> message, moremsg;
- message.<a href="ntqstring.html#sprintf">sprintf</a>("%dx%d", image.width(), image.height());
+ <a href="tqstring.html">TQString</a> message, moremsg;
+ message.<a href="tqstring.html#sprintf">sprintf</a>("%dx%d", image.width(), image.height());
if ( pm.size() != pmScaled.size() ) {
moremsg.sprintf(" [%dx%d]", pmScaled.width(),
pmScaled.height());
@@ -426,9 +426,9 @@ 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="x1319"></a> <a href="ntqstring.html">TQString</a> savefilename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(TQString::null, <a href="ntqstring.html#TQString-null">TQString::null</a>,
+<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="ntqstring.html#isEmpty">isEmpty</a>() )
+ if ( !savefilename.<a href="tqstring.html#isEmpty">isEmpty</a>() )
if ( !image.save( savefilename, fmt ) )
<a name="x1333"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( this, "Save failed", "Error saving file" );
}
@@ -439,9 +439,9 @@ 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);
- <a href="ntqstring.html">TQString</a> savefilename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(TQString::null,
+ <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="ntqstring.html#isEmpty">isEmpty</a>() )
+ if ( !savefilename.<a href="tqstring.html#isEmpty">isEmpty</a>() )
if ( !pmScaled.save( savefilename, fmt ) )
TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( this, "Save failed", "Error saving file" );
}
@@ -459,10 +459,10 @@ void <a name="f411"></a>ImageViewer::newWindow()
*/
void <a name="f412"></a>ImageViewer::openFile()
{
-<a name="x1318"></a> <a href="ntqstring.html">TQString</a> newfilename = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null,
+<a name="x1318"></a> <a href="tqstring.html">TQString</a> newfilename = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null,
TQString::null,
this );
- if ( !newfilename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) {
+ if ( !newfilename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) {
loadImage( newfilename ) ;
<a href="tqwidget.html#repaint">repaint</a>(); // show image in widget
}
@@ -477,7 +477,7 @@ void <a name="f412"></a>ImageViewer::openFile()
Returns TRUE if the image was successfully loaded.
*/
-bool <a name="f413"></a>ImageViewer::loadImage( const <a href="ntqstring.html">TQString</a>&amp; fileName )
+bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQString</a>&amp; fileName )
{
filename = fileName;
bool ok = FALSE;
@@ -677,7 +677,7 @@ void ImageViewer::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qp
void <a name="f419"></a>ImageViewer::giveHelp()
{
if (!helpmsg) {
- <a href="ntqstring.html">TQString</a> helptext =
+ <a href="tqstring.html">TQString</a> helptext =
"&lt;b&gt;Usage:&lt;/b&gt; &lt;tt&gt;showimg [-m] &lt;i&gt;filename ...&lt;/i&gt;&lt;/tt&gt;"
"&lt;blockquote&gt;"
"&lt;tt&gt;-m&lt;/tt&gt; - use &lt;i&gt;ManyColor&lt;/i&gt; color spec"