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/canvas-chart-example.html | 58 +++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/html/canvas-chart-example.html') diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index 34a697ae0..d2a404977 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -69,7 +69,7 @@ SOURCES += element.cpp \ #include <ntqcolor.h> #include <ntqnamespace.h> -#include <ntqstring.h> +#include <tqstring.h> #include <tqvaluevector.h> class Element; @@ -91,7 +91,7 @@ public: Element( double value = INVALID, TQColor valueColor = TQt::gray, int valuePattern = TQt::SolidPattern, - const TQString& label = TQString::null, + const TQString& label = TQString::null, TQColor labelColor = TQt::black ) { init( value, valueColor, valuePattern, label, labelColor ); for ( int i = 0; i < MAX_PROPOINTS * 2; ++i ) @@ -104,21 +104,21 @@ public: double value() const { return m_value; } TQColor valueColor() const { return m_valueColor; } int valuePattern() const { return m_valuePattern; } - TQString label() const { return m_label; } + TQString label() const { return m_label; } TQColor labelColor() const { return m_labelColor; } double proX( int index ) const; double proY( int index ) const; void set( double value = INVALID, TQColor valueColor = TQt::gray, int valuePattern = TQt::SolidPattern, - const TQString& label = TQString::null, + const TQString& label = TQString::null, TQColor labelColor = TQt::black ) { init( value, valueColor, valuePattern, label, labelColor ); } void setValue( double value ) { m_value = value; } void setValueColor( TQColor valueColor ) { m_valueColor = valueColor; } void setValuePattern( int valuePattern ); - void setLabel( const TQString& label ) { m_label = label; } + void setLabel( const TQString& label ) { m_label = label; } void setLabelColor( TQColor labelColor ) { m_labelColor = labelColor; } void setProX( int index, double value ); void setProY( int index, double value ); @@ -133,12 +133,12 @@ public: private: void init( double value, TQColor valueColor, int valuePattern, - const TQString& label, TQColor labelColor ); + const TQString& label, TQColor labelColor ); double m_value; TQColor m_valueColor; int m_valuePattern; - TQString m_label; + TQString m_label; TQColor m_labelColor; double m_propoints[2 * MAX_PROPOINTS]; }; @@ -156,7 +156,7 @@ TQTextStream &operator>>( TQTextStreamntqmainwindow.h> -#include <ntqstringlist.h> +#include <tqstringlist.h> class CanvasView; @@ -177,7 +177,7 @@ public: enum ChartType { PIE, VERTICAL_BAR, HORIZONTAL_BAR }; enum AddValuesType { NO, YES, AS_PERCENTAGE }; - ChartForm( const TQString& filename ); + ChartForm( const TQString& filename ); ~ChartForm(); int chartType() { return m_chartType; } @@ -209,14 +209,14 @@ private slots: private: void init(); - void load( const TQString& filename ); + void load( const TQString& filename ); bool okToClear(); void drawPieChart( const double scales[], double total, int count ); void drawVerticalBarChart( const double scales[], double total, int count ); void drawHorizontalBarChart( const double scales[], double total, int count ); - TQString valueLabel( const TQString& label, double value, double total ); - void updateRecentFiles( const TQString& filename ); + TQString valueLabel( const TQString& label, double value, double total ); + void updateRecentFiles( const TQString& filename ); void updateRecentFilesMenu(); void setChartType( ChartType chartType ); @@ -226,8 +226,8 @@ private: TQAction *optionsVerticalBarChartAction; - TQString m_filename; - TQStringList m_recentFiles; + TQString m_filename; + TQStringList m_recentFiles; TQCanvas *m_canvas; CanvasView *m_canvasView; bool m_changed; @@ -280,11 +280,11 @@ private: #include "images/options_verticalbarchart.xpm" -const TQString WINDOWS_REGISTRY = "/Trolltech/TQtExamples"; -const TQString APP_KEY = "/Chart/"; +const TQString WINDOWS_REGISTRY = "/Trolltech/TQtExamples"; +const TQString APP_KEY = "/Chart/"; -ChartForm::ChartForm( const TQString& filename ) +ChartForm::ChartForm( const TQString& filename ) : TQMainWindow( 0, 0, WDestructiveClose ) { setIcon( TQPixmap( options_piechart ) ); @@ -448,9 +448,9 @@ const TQString APP_KEY = "/Chart/"; m_font.fromString( settings.readEntry( APP_KEY + "Font", m_font.toString() ) ); for ( int i = 0; i < MAX_RECENTFILES; ++i ) { - TQString filename = settings.readEntry( APP_KEY + "File" + - TQString::number( i + 1 ) ); - if ( !filename.isEmpty() ) + TQString filename = settings.readEntry( APP_KEY + "File" + + TQString::number( i + 1 ) ); + if ( !filename.isEmpty() ) m_recentFiles.push_back( filename ); } if ( m_recentFiles.count() ) @@ -472,7 +472,7 @@ const TQString APP_KEY = "/Chart/"; setCentralWidget( m_canvasView ); m_canvasView->show(); - if ( !filename.isEmpty() ) + if ( !filename.isEmpty() ) load( filename ); else { init(); @@ -540,10 +540,10 @@ void ChartForm::fileOpen() if ( !okToClear() ) return; - TQString filename = TQFileDialog::getOpenFileName( + TQString filename = TQFileDialog::getOpenFileName( TQString::null, "Charts (*.cht)", this, "file open", "Chart -- File Open" ); - if ( !filename.isEmpty() ) + if ( !filename.isEmpty() ) load( filename ); else statusBar()->message( "File Open abandoned", 2000 ); @@ -552,10 +552,10 @@ void ChartForm::fileOpen() void ChartForm::fileSaveAs() { - TQString filename = TQFileDialog::getSaveFileName( + TQString filename = TQFileDialog::getSaveFileName( TQString::null, "Charts (*.cht)", this, "file save as", "Chart -- File Save As" ); - if ( !filename.isEmpty() ) { + if ( !filename.isEmpty() ) { int answer = 0; if ( TQFile::exists( filename ) ) answer = TQMessageBox::warning( @@ -583,7 +583,7 @@ void ChartForm::fileOpenRecent( int index ) } -void ChartForm::updateRecentFiles( const TQString& filename ) +void ChartForm::updateRecentFiles( const TQString& filename ) { if ( m_recentFiles.find( filename ) != m_recentFiles.end() ) return; @@ -622,7 +622,7 @@ void ChartForm::fileQuit() bool ChartForm::okToClear() { if ( m_changed ) { - TQString msg; + TQString msg; if ( m_filename.isEmpty() ) msg = "Unnamed chart "; else @@ -787,10 +787,10 @@ int main( int argc, char *argv[] ) { TQApplication app( argc, argv ); - TQString filename; + TQString filename; if ( app.argc() > 1 ) { filename = app.argv()[1]; - if ( !filename.endsWith( ".cht" ) ) + if ( !filename.endsWith( ".cht" ) ) filename = TQString::null; } -- cgit v1.2.3