From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/showimg-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/showimg-example.html') 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 TQWidget public: ImageViewer( TQWidget *parent=0, const char *name=0, int wFlags=0 ); ~ImageViewer(); - bool loadImage( const TQString& ); + bool loadImage( const TQString& ); protected: void paintEvent( TQPaintEvent * ); void resizeEvent( TQResizeEvent * ); @@ -79,7 +79,7 @@ private: bool useColorContext() const; int alloc_context; bool convertEvent( TQMouseEvent* e, int& x, int& y ); - TQString filename; + TQString filename; TQImage image; // the loaded image TQPixmap pm; // the converted pixmap TQPixmap pmScaled; // the scaled pixmap @@ -178,7 +178,7 @@ private slots: menubar = new TQMenuBar(this); menubar->setSeparator( TQMenuBar::InWindowsStyle ); - TQStrList fmt = TQImage::outputFormats(); + TQStrList fmt = TQImage::outputFormats(); saveimage = new TQPopupMenu( menubar ); savepixmap = new TQPopupMenu( menubar ); for (const char* f = fmt.first(); f; f = fmt.next()) { @@ -368,8 +368,8 @@ void ImageViewer::updateStatus() else status->setText("No image - select Open from File menu."); } else { - TQString message, moremsg; - message.sprintf("%dx%d", image.width(), image.height()); + TQString message, moremsg; + message.sprintf("%dx%d", image.width(), image.height()); if ( pm.size() != pmScaled.size() ) { moremsg.sprintf(" [%dx%d]", pmScaled.width(), pmScaled.height()); @@ -426,9 +426,9 @@ void ImageViewer::updateStatus() void ImageViewer::saveImage( int item ) { const char* fmt = saveimage->text(item); - TQString savefilename = TQFileDialog::getSaveFileName(TQString::null, TQString::null, + TQString savefilename = TQFileDialog::getSaveFileName(TQString::null, TQString::null, this, filename); - if ( !savefilename.isEmpty() ) + if ( !savefilename.isEmpty() ) if ( !image.save( savefilename, fmt ) ) TQMessageBox::warning( this, "Save failed", "Error saving file" ); } @@ -439,9 +439,9 @@ void ImageViewer::saveImage( int item ) void ImageViewer::savePixmap( int item ) { const char* fmt = savepixmap->text(item); - TQString savefilename = TQFileDialog::getSaveFileName(TQString::null, + TQString savefilename = TQFileDialog::getSaveFileName(TQString::null, TQString::null, this, filename); - if ( !savefilename.isEmpty() ) + if ( !savefilename.isEmpty() ) if ( !pmScaled.save( savefilename, fmt ) ) TQMessageBox::warning( this, "Save failed", "Error saving file" ); } @@ -459,10 +459,10 @@ void ImageViewer::newWindow() */ void ImageViewer::openFile() { - TQString newfilename = TQFileDialog::getOpenFileName( TQString::null, + TQString newfilename = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this ); - if ( !newfilename.isEmpty() ) { + if ( !newfilename.isEmpty() ) { loadImage( newfilename ) ; repaint(); // show image in widget } @@ -477,7 +477,7 @@ void ImageViewer::openFile() Returns TRUE if the image was successfully loaded. */ -bool ImageViewer::loadImage( const TQString& fileName ) +bool ImageViewer::loadImage( const TQString& fileName ) { filename = fileName; bool ok = FALSE; @@ -677,7 +677,7 @@ void ImageViewer::paintEvent( ImageViewer::giveHelp() { if (!helpmsg) { - TQString helptext = + TQString helptext = "<b>Usage:</b> <tt>showimg [-m] <i>filename ...</i></tt>" "<blockquote>" "<tt>-m</tt> - use <i>ManyColor</i> color spec" -- cgit v1.2.3