diff options
Diffstat (limited to 'doc/html/grapher-nsplugin-example.html')
-rw-r--r-- | doc/html/grapher-nsplugin-example.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/grapher-nsplugin-example.html b/doc/html/grapher-nsplugin-example.html index 8e17debec..e6b8e862b 100644 --- a/doc/html/grapher-nsplugin-example.html +++ b/doc/html/grapher-nsplugin-example.html @@ -178,7 +178,7 @@ private slots: <a name="f564"></a>Graph::Graph( GraphModel& mdl ) : model(mdl), - <a href="ntqwidget.html#style">style</a>(Bar), + <a href="tqwidget.html#style">style</a>(Bar), pieRotationTimer(0), pieRotation(0) { @@ -192,7 +192,7 @@ private slots: } <a name="x2767"></a> <a href="tqobject.html#connect">connect</a>(stylemenu, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(setStyleFromMenu(int))); - <a href="ntqwidget.html#setStyle">setStyle</a>(Pie); + <a href="tqwidget.html#setStyle">setStyle</a>(Pie); menubar-><a href="ntqmenudata.html#insertItem">insertItem</a>("Style", stylemenu); menubar-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); @@ -208,7 +208,7 @@ Graph::~Graph() { } -<a name="x2778"></a>void Graph::<a href="ntqwidget.html#setStyle">setStyle</a>(Style s) +<a name="x2778"></a>void Graph::<a href="tqwidget.html#setStyle">setStyle</a>(Style s) { if (style != s) { if (pieRotationTimer) @@ -220,7 +220,7 @@ Graph::~Graph() else pieRotationTimer = 0; stylemenu-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>(100+style, TRUE); - <a href="ntqwidget.html#update">update</a>(); + <a href="tqwidget.html#update">update</a>(); } } @@ -229,11 +229,11 @@ Graph::~Graph() pieRotation = ( pieRotation + 6 ) % 360; repaint(FALSE); } -void Graph::<a href="ntqwidget.html#setStyle">setStyle</a>(const char* stext) +void Graph::<a href="tqwidget.html#setStyle">setStyle</a>(const char* stext) { for ( Style s = Pie; styleName[s]; s = Style(s+1) ) { if ( <a href="ntqcstring.html#qstricmp">tqstricmp</a>(stext,styleName[s])==0 ) { - <a href="ntqwidget.html#setStyle">setStyle</a>(s); + <a href="tqwidget.html#setStyle">setStyle</a>(s); return; } } @@ -252,7 +252,7 @@ void Graph::<a href="ntqwidget.html#setStyle">setStyle</a>(const char* stext) void <a name="f565"></a>Graph::paintError(const char* e) { <a href="ntqpainter.html">TQPainter</a> p(this); - int w = <a href="ntqwidget.html#width">width</a>(); + int w = <a href="tqwidget.html#width">width</a>(); <a name="x2760"></a> p.<a href="ntqpainter.html#drawText">drawText</a>(w/8, 0, w-w/4, height(), AlignCenter|WordBreak, e); } @@ -273,8 +273,8 @@ void <a name="f566"></a>Graph::paintBar(TQPaintEvent* event) if (rowdata[0].dbl > max) max = rowdata[0].dbl; } - const uint w = <a href="ntqwidget.html#width">width</a>(); - const uint h = <a href="ntqwidget.html#height">height</a>(); + const uint w = <a href="tqwidget.html#width">width</a>(); + const uint h = <a href="tqwidget.html#height">height</a>(); <a href="ntqpainter.html">TQPainter</a> p(this); @@ -284,7 +284,7 @@ void <a name="f566"></a>Graph::paintBar(TQPaintEvent* event) // More pixels than data int x = 0; int i = 0; - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm=<a href="ntqwidget.html#fontMetrics">fontMetrics</a>(); + <a href="ntqfontmetrics.html">TQFontMetrics</a> fm=<a href="tqwidget.html#fontMetrics">fontMetrics</a>(); <a name="x2741"></a> int fh = fm.<a href="ntqfontmetrics.html#height">height</a>(); for (GraphModel::Datum* rowdata = data.<a href="ntqptrlist.html#first">first</a>(); @@ -356,16 +356,16 @@ void <a name="f567"></a>Graph::paintPie(TQPaintEvent* event) int apos = (pieRotation-90)*16; - const int w = <a href="ntqwidget.html#width">width</a>(); - const int h = <a href="ntqwidget.html#height">height</a>(); + const int w = <a href="tqwidget.html#width">width</a>(); + const int h = <a href="tqwidget.html#height">height</a>(); const int xd = w - w/5; const int yd = h - h/5; -<a name="x2766"></a> pm.<a href="ntqpixmap.html#resize">resize</a>(<a href="ntqwidget.html#width">width</a>(),height()); -<a name="x2765"></a> pm.<a href="ntqpixmap.html#fill">fill</a>(<a href="ntqwidget.html#backgroundColor">backgroundColor</a>()); +<a name="x2766"></a> pm.<a href="ntqpixmap.html#resize">resize</a>(<a href="tqwidget.html#width">width</a>(),height()); +<a name="x2765"></a> pm.<a href="ntqpixmap.html#fill">fill</a>(<a href="tqwidget.html#backgroundColor">backgroundColor</a>()); <a href="ntqpainter.html">TQPainter</a> p(&pm); -<a name="x2763"></a> p.<a href="ntqpainter.html#setFont">setFont</a>(<a href="ntqwidget.html#font">font</a>()); +<a name="x2763"></a> p.<a href="ntqpainter.html#setFont">setFont</a>(<a href="tqwidget.html#font">font</a>()); p.<a href="ntqpainter.html#setClipRect">setClipRect</a>(event->rect()); @@ -414,7 +414,7 @@ void <a name="f568"></a>Graph::paintWait(TQPaintEvent*) p.<a href="ntqpainter.html#drawText">drawText</a>(rect(), AlignCenter, "Loading..."); } -void Graph::<a href="ntqwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* event) +void Graph::<a href="tqwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* event) { if (!model.nCols()) { paintWait(event); @@ -525,12 +525,12 @@ int <a name="f573"></a>Grapher::nCols() const // FONTFAMILY and FONTSIZE choose the font // const char* style = <a href="qnpinstance.html#arg">arg</a>("GRAPHSTYLE"); - if ( style ) graph-><a href="ntqwidget.html#setStyle">setStyle</a>(style); + if ( style ) graph-><a href="tqwidget.html#setStyle">setStyle</a>(style); const char* fontfamily = <a href="qnpinstance.html#arg">arg</a>("FONTFAMILY"); const char* fontsize = <a href="qnpinstance.html#arg">arg</a>("FONTSIZE"); -<a name="x2775"></a> int ptsize = fontsize ? atoi(fontsize) : graph-><a href="ntqwidget.html#font">font</a>().pointSize(); - if (fontfamily) graph-><a href="ntqwidget.html#setFont">setFont</a>(TQFont(fontfamily, ptsize)); +<a name="x2775"></a> int ptsize = fontsize ? atoi(fontsize) : graph-><a href="tqwidget.html#font">font</a>().pointSize(); + if (fontfamily) graph-><a href="tqwidget.html#setFont">setFont</a>(TQFont(fontfamily, ptsize)); <a href="tqobject.html#connect">connect</a>(graph, TQ_SIGNAL(aboutPlugin()), this, TQ_SLOT(aboutPlugin())); <a href="tqobject.html#connect">connect</a>(graph, TQ_SIGNAL(aboutData()), this, TQ_SLOT(aboutData())); |