summaryrefslogtreecommitdiffstats
path: root/doc/html/chart-chartform_canvas-cpp.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/chart-chartform_canvas-cpp.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/chart-chartform_canvas-cpp.html')
-rw-r--r--doc/html/chart-chartform_canvas-cpp.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/chart-chartform_canvas-cpp.html b/doc/html/chart-chartform_canvas-cpp.html
index 47c20978f..2b219656d 100644
--- a/doc/html/chart-chartform_canvas-cpp.html
+++ b/doc/html/chart-chartform_canvas-cpp.html
@@ -35,8 +35,8 @@ body { background: #ffffff; color: black; }
<pre>#include "canvastext.h"
#include "chartform.h"
-#include &lt;<a href="qbrush-h.html">qbrush.h</a>&gt;
-#include &lt;<a href="qcanvas-h.html">qcanvas.h</a>&gt;
+#include &lt;<a href="qbrush-h.html">ntqbrush.h</a>&gt;
+#include &lt;<a href="qcanvas-h.html">ntqcanvas.h</a>&gt;
#include &lt;math.h&gt; // sin, cos
@@ -47,7 +47,7 @@ body { background: #ffffff; color: black; }
void <a name="f167"></a>ChartForm::drawElements()
{
<a href="qcanvasitemlist.html">TQCanvasItemList</a> list = m_canvas-&gt;allItems();
- for ( TQCanvasItemList::iterator it = list.<a href="qvaluelist.html#begin">begin</a>(); it != list.<a href="qvaluelist.html#end">end</a>(); ++it )
+ for ( TQCanvasItemList::iterator it = list.<a href="ntqvaluelist.html#begin">begin</a>(); it != list.<a href="ntqvaluelist.html#end">end</a>(); ++it )
delete *it;
// 360 * 16 for pies; TQt works with 16ths of degrees
@@ -117,15 +117,15 @@ void <a name="f168"></a>ChartForm::drawPieChart( const double scales[], double t
BrushStyle(m_elements[i].valuePattern()) ) );
arc-&gt;<a href="qcanvasitem.html#show">show</a>();
angle += extent;
- <a href="qstring.html">TQString</a> label = m_elements[i].label();
- if ( !label.<a href="qstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
+ <a href="ntqstring.html">TQString</a> label = m_elements[i].label();
+ if ( !label.<a href="ntqstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
label = valueLabel( label, m_elements[i].value(), total );
CanvasText *text = new CanvasText( i, label, m_font, m_canvas );
double proX = m_elements[i].proX( PIE );
double proY = m_elements[i].proY( PIE );
if ( proX &lt; 0 || proY &lt; 0 ) {
// Find the centre of the pie segment
- <a href="qrect.html">TQRect</a> rect = arc-&gt;<a href="qcanvaspolygonalitem.html#boundingRect">boundingRect</a>();
+ <a href="ntqrect.html">TQRect</a> rect = arc-&gt;<a href="qcanvaspolygonalitem.html#boundingRect">boundingRect</a>();
proX = ( rect.<a href="qcanvasrectangle.html#width">width</a>() / 2 ) + rect.<a href="qcanvasitem.html#x">x</a>();
proY = ( rect.<a href="qcanvasrectangle.html#height">height</a>() / 2 ) + rect.<a href="qcanvasitem.html#y">y</a>();
// Centre text over the centre of the pie segment
@@ -156,8 +156,8 @@ void <a name="f169"></a>ChartForm::drawVerticalBarChart(
double height = m_canvas-&gt;height();
int prowidth = int(width / count);
int x = 0;
- <a href="qpen.html">TQPen</a> pen;
- pen.<a href="qpen.html#setStyle">setStyle</a>( NoPen );
+ <a href="ntqpen.html">TQPen</a> pen;
+ pen.<a href="ntqpen.html#setStyle">setStyle</a>( NoPen );
for ( int i = 0; i &lt; MAX_ELEMENTS; ++i ) {
if ( m_elements[i].isValid() ) {
@@ -170,8 +170,8 @@ void <a name="f169"></a>ChartForm::drawVerticalBarChart(
rect-&gt;<a href="qcanvaspolygonalitem.html#setPen">setPen</a>( pen );
rect-&gt;<a href="qcanvasitem.html#setZ">setZ</a>( 0 );
rect-&gt;<a href="qcanvasitem.html#show">show</a>();
- <a href="qstring.html">TQString</a> label = m_elements[i].label();
- if ( !label.<a href="qstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
+ <a href="ntqstring.html">TQString</a> label = m_elements[i].label();
+ if ( !label.<a href="ntqstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
double proX = m_elements[i].proX( VERTICAL_BAR );
double proY = m_elements[i].proY( VERTICAL_BAR );
if ( proX &lt; 0 || proY &lt; 0 ) {
@@ -201,8 +201,8 @@ void <a name="f170"></a>ChartForm::drawHorizontalBarChart(
double height = m_canvas-&gt;height();
int proheight = int(height / count);
int y = 0;
- <a href="qpen.html">TQPen</a> pen;
- pen.<a href="qpen.html#setStyle">setStyle</a>( NoPen );
+ <a href="ntqpen.html">TQPen</a> pen;
+ pen.<a href="ntqpen.html#setStyle">setStyle</a>( NoPen );
for ( int i = 0; i &lt; MAX_ELEMENTS; ++i ) {
if ( m_elements[i].isValid() ) {
@@ -214,8 +214,8 @@ void <a name="f170"></a>ChartForm::drawHorizontalBarChart(
rect-&gt;<a href="qcanvaspolygonalitem.html#setPen">setPen</a>( pen );
rect-&gt;<a href="qcanvasitem.html#setZ">setZ</a>( 0 );
rect-&gt;<a href="qcanvasitem.html#show">show</a>();
- <a href="qstring.html">TQString</a> label = m_elements[i].label();
- if ( !label.<a href="qstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
+ <a href="ntqstring.html">TQString</a> label = m_elements[i].label();
+ if ( !label.<a href="ntqstring.html#isEmpty">isEmpty</a>() || m_addValues != NO ) {
double proX = m_elements[i].proX( HORIZONTAL_BAR );
double proY = m_elements[i].proY( HORIZONTAL_BAR );
if ( proX &lt; 0 || proY &lt; 0 ) {
@@ -239,21 +239,21 @@ void <a name="f170"></a>ChartForm::drawHorizontalBarChart(
TQString <a name="f171"></a>ChartForm::valueLabel(
- const <a href="qstring.html">TQString</a>&amp; label, double value, double total )
+ const <a href="ntqstring.html">TQString</a>&amp; label, double value, double total )
{
if ( m_addValues == NO )
return label;
- <a href="qstring.html">TQString</a> newLabel = label;
- if ( !label.<a href="qstring.html#isEmpty">isEmpty</a>() )
+ <a href="ntqstring.html">TQString</a> newLabel = label;
+ if ( !label.<a href="ntqstring.html#isEmpty">isEmpty</a>() )
if ( m_chartType == VERTICAL_BAR )
newLabel += '\n';
else
newLabel += ' ';
if ( m_addValues == YES )
- newLabel += TQString::<a href="qstring.html#number">number</a>( value, 'f', m_decimalPlaces );
+ newLabel += TQString::<a href="ntqstring.html#number">number</a>( value, 'f', m_decimalPlaces );
else if ( m_addValues == AS_PERCENTAGE )
- newLabel += TQString::<a href="qstring.html#number">number</a>( (value / total) * 100, 'f', m_decimalPlaces )
+ newLabel += TQString::<a href="ntqstring.html#number">number</a>( (value / total) * 100, 'f', m_decimalPlaces )
+ '%';
return newLabel;
}