diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/canvas-chart-example.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/canvas-chart-example.html')
-rw-r--r-- | doc/html/canvas-chart-example.html | 58 |
1 files changed, 29 insertions, 29 deletions
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 <<a href="qcolor-h.html">ntqcolor.h</a>> #include <<a href="qnamespace-h.html">ntqnamespace.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> #include <<a href="tqvaluevector-h.html">tqvaluevector.h</a>> class Element; @@ -91,7 +91,7 @@ public: Element( double value = INVALID, TQColor valueColor = TQt::gray, int valuePattern = TQt::SolidPattern, - const <a href="ntqstring.html">TQString</a>& label = <a href="ntqstring.html#TQString-null">TQString::null</a>, + const <a href="tqstring.html">TQString</a>& label = <a href="tqstring.html#TQString-null">TQString::null</a>, <a href="ntqcolor.html">TQColor</a> 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; } <a href="ntqcolor.html">TQColor</a> valueColor() const { return m_valueColor; } int valuePattern() const { return m_valuePattern; } - <a href="ntqstring.html">TQString</a> label() const { return m_label; } + <a href="tqstring.html">TQString</a> label() const { return m_label; } <a href="ntqcolor.html">TQColor</a> 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 <a href="ntqstring.html">TQString</a>& label = TQString::null, + const <a href="tqstring.html">TQString</a>& label = TQString::null, <a href="ntqcolor.html">TQColor</a> labelColor = TQt::black ) { init( value, valueColor, valuePattern, label, labelColor ); } void setValue( double value ) { m_value = value; } void setValueColor( <a href="ntqcolor.html">TQColor</a> valueColor ) { m_valueColor = valueColor; } void setValuePattern( int valuePattern ); - void setLabel( const <a href="ntqstring.html">TQString</a>& label ) { m_label = label; } + void setLabel( const <a href="tqstring.html">TQString</a>& label ) { m_label = label; } void setLabelColor( <a href="ntqcolor.html">TQColor</a> 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 <a href="ntqstring.html">TQString</a>& label, TQColor labelColor ); + const <a href="tqstring.html">TQString</a>& label, TQColor labelColor ); double m_value; <a href="ntqcolor.html">TQColor</a> m_valueColor; int m_valuePattern; - <a href="ntqstring.html">TQString</a> m_label; + <a href="tqstring.html">TQString</a> m_label; <a href="ntqcolor.html">TQColor</a> m_labelColor; double m_propoints[2 * MAX_PROPOINTS]; }; @@ -156,7 +156,7 @@ TQTextStream &operator>>( <a href="ntqtextstream.html">TQTextStream</a #include "element.h" #include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> -#include <<a href="qstringlist-h.html">ntqstringlist.h</a>> +#include <<a href="tqstringlist-h.html">tqstringlist.h</a>> class CanvasView; @@ -177,7 +177,7 @@ public: enum ChartType { PIE, VERTICAL_BAR, HORIZONTAL_BAR }; enum AddValuesType { NO, YES, AS_PERCENTAGE }; - ChartForm( const <a href="ntqstring.html">TQString</a>& filename ); + ChartForm( const <a href="tqstring.html">TQString</a>& filename ); ~ChartForm(); int chartType() { return m_chartType; } @@ -209,14 +209,14 @@ private slots: private: void init(); - void load( const <a href="ntqstring.html">TQString</a>& filename ); + void load( const <a href="tqstring.html">TQString</a>& 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 ); - <a href="ntqstring.html">TQString</a> valueLabel( const <a href="ntqstring.html">TQString</a>& label, double value, double total ); - void updateRecentFiles( const <a href="ntqstring.html">TQString</a>& filename ); + <a href="tqstring.html">TQString</a> valueLabel( const <a href="tqstring.html">TQString</a>& label, double value, double total ); + void updateRecentFiles( const <a href="tqstring.html">TQString</a>& filename ); void updateRecentFilesMenu(); void setChartType( ChartType chartType ); @@ -226,8 +226,8 @@ private: <a href="ntqaction.html">TQAction</a> *optionsVerticalBarChartAction; - <a href="ntqstring.html">TQString</a> m_filename; - <a href="ntqstringlist.html">TQStringList</a> m_recentFiles; + <a href="tqstring.html">TQString</a> m_filename; + <a href="tqstringlist.html">TQStringList</a> m_recentFiles; <a href="tqcanvas.html">TQCanvas</a> *m_canvas; CanvasView *m_canvasView; bool m_changed; @@ -280,11 +280,11 @@ private: #include "images/options_verticalbarchart.xpm" -const <a href="ntqstring.html">TQString</a> WINDOWS_REGISTRY = "/Trolltech/TQtExamples"; -const <a href="ntqstring.html">TQString</a> APP_KEY = "/Chart/"; +const <a href="tqstring.html">TQString</a> WINDOWS_REGISTRY = "/Trolltech/TQtExamples"; +const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; -<a name="f596"></a>ChartForm::ChartForm( const <a href="ntqstring.html">TQString</a>& filename ) +<a name="f596"></a>ChartForm::ChartForm( const <a href="tqstring.html">TQString</a>& filename ) : <a href="ntqmainwindow.html">TQMainWindow</a>( 0, 0, WDestructiveClose ) { <a href="tqwidget.html#setIcon">setIcon</a>( TQPixmap( options_piechart ) ); @@ -448,9 +448,9 @@ const <a href="ntqstring.html">TQString</a> APP_KEY = "/Chart/"; m_font.fromString( settings.<a href="ntqsettings.html#readEntry">readEntry</a>( APP_KEY + "Font", m_font.toString() ) ); for ( int i = 0; i < MAX_RECENTFILES; ++i ) { - <a href="ntqstring.html">TQString</a> filename = settings.<a href="ntqsettings.html#readEntry">readEntry</a>( APP_KEY + "File" + -<a name="x2893"></a> TQString::<a href="ntqstring.html#number">number</a>( i + 1 ) ); -<a name="x2892"></a> if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + <a href="tqstring.html">TQString</a> filename = settings.<a href="ntqsettings.html#readEntry">readEntry</a>( APP_KEY + "File" + +<a name="x2893"></a> TQString::<a href="tqstring.html#number">number</a>( i + 1 ) ); +<a name="x2892"></a> if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) m_recentFiles.push_back( filename ); } if ( m_recentFiles.count() ) @@ -472,7 +472,7 @@ const <a href="ntqstring.html">TQString</a> APP_KEY = "/Chart/"; <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( m_canvasView ); m_canvasView-><a href="tqwidget.html#show">show</a>(); - if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( filename ); else { init(); @@ -540,10 +540,10 @@ void <a name="f599"></a>ChartForm::fileOpen() if ( !okToClear() ) return; - <a href="ntqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( + <a href="tqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, "Charts (*.cht)", this, "file open", "Chart -- File Open" ); - if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( filename ); else <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "File Open abandoned", 2000 ); @@ -552,10 +552,10 @@ void <a name="f599"></a>ChartForm::fileOpen() void <a name="f600"></a>ChartForm::fileSaveAs() { - <a href="ntqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( + <a href="tqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, "Charts (*.cht)", this, "file save as", "Chart -- File Save As" ); - if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) { + if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { int answer = 0; <a name="x2878"></a> if ( TQFile::<a href="ntqfile.html#exists">exists</a>( filename ) ) <a name="x2889"></a> answer = TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( @@ -583,7 +583,7 @@ void <a name="f601"></a>ChartForm::fileOpenRecent( int index ) } -void <a name="f602"></a>ChartForm::updateRecentFiles( const <a href="ntqstring.html">TQString</a>& filename ) +void <a name="f602"></a>ChartForm::updateRecentFiles( const <a href="tqstring.html">TQString</a>& filename ) { if ( m_recentFiles.find( filename ) != m_recentFiles.end() ) return; @@ -622,7 +622,7 @@ void <a name="f604"></a>ChartForm::fileQuit() bool <a name="f605"></a>ChartForm::okToClear() { if ( m_changed ) { - <a href="ntqstring.html">TQString</a> msg; + <a href="tqstring.html">TQString</a> msg; if ( m_filename.isEmpty() ) msg = "Unnamed chart "; else @@ -787,10 +787,10 @@ int main( int argc, char *argv[] ) { <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); - <a href="ntqstring.html">TQString</a> filename; + <a href="tqstring.html">TQString</a> filename; <a name="x2900"></a> if ( app.<a href="ntqapplication.html#argc">argc</a>() > 1 ) { <a name="x2901"></a> filename = app.<a href="ntqapplication.html#argv">argv</a>()[1]; -<a name="x2904"></a> if ( !filename.<a href="ntqstring.html#endsWith">endsWith</a>( ".cht" ) ) +<a name="x2904"></a> if ( !filename.<a href="tqstring.html#endsWith">endsWith</a>( ".cht" ) ) filename = TQString::null; } |