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 b4aec2ac8..419d410ff 100644 --- a/doc/html/grapher-nsplugin-example.html +++ b/doc/html/grapher-nsplugin-example.html @@ -79,7 +79,7 @@ Implementation: #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="qbuffer-h.html">ntqbuffer.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> #include <<a href="tqptrlist-h.html">tqptrlist.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> @@ -164,9 +164,9 @@ signals: private: GraphModel& model; - <a href="ntqmenubar.html">TQMenuBar</a> *menubar; + <a href="tqmenubar.html">TQMenuBar</a> *menubar; Style style; - <a href="ntqpopupmenu.html">TQPopupMenu</a>* stylemenu; + <a href="tqpopupmenu.html">TQPopupMenu</a>* stylemenu; int pieRotationTimer; int pieRotation; <a href="ntqpixmap.html">TQPixmap</a> pm; @@ -184,24 +184,24 @@ private slots: { // Create a menubar for the widget // - menubar = new <a href="ntqmenubar.html">TQMenuBar</a>( this ); - stylemenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>; -<a name="x2768"></a> stylemenu-><a href="ntqpopupmenu.html#setCheckable">setCheckable</a>(TRUE); + menubar = new <a href="tqmenubar.html">TQMenuBar</a>( this ); + stylemenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>; +<a name="x2768"></a> stylemenu-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>(TRUE); for ( Style s = Pie; styleName[s]; s = Style(s+1)) { - stylemenu-><a href="ntqmenudata.html#insertItem">insertItem</a>(styleName[s], s+100); + stylemenu-><a href="tqmenudata.html#insertItem">insertItem</a>(styleName[s], s+100); } -<a name="x2767"></a> <a href="tqobject.html#connect">connect</a>(stylemenu, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), +<a name="x2767"></a> <a href="tqobject.html#connect">connect</a>(stylemenu, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(setStyleFromMenu(int))); <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>(); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>("Style", stylemenu); + menubar-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); - <a href="ntqpopupmenu.html">TQPopupMenu</a>* help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>; - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About plugin...", this, TQ_SIGNAL(aboutPlugin()) ); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About data...", this, TQ_SIGNAL(aboutData()) ); - menubar-><a href="ntqmenudata.html#insertItem">insertItem</a>("Help", help); -<a name="x2745"></a> menubar-><a href="ntqmenubar.html#hide">hide</a>(); + <a href="tqpopupmenu.html">TQPopupMenu</a>* help = new <a href="tqpopupmenu.html">TQPopupMenu</a>; + help-><a href="tqmenudata.html#insertItem">insertItem</a>( "About plugin...", this, TQ_SIGNAL(aboutPlugin()) ); + help-><a href="tqmenudata.html#insertItem">insertItem</a>( "About data...", this, TQ_SIGNAL(aboutData()) ); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>("Help", help); +<a name="x2745"></a> menubar-><a href="tqmenubar.html#hide">hide</a>(); } Graph::~Graph() @@ -213,13 +213,13 @@ Graph::~Graph() if (style != s) { if (pieRotationTimer) <a href="tqobject.html#killTimer">killTimer</a>(pieRotationTimer); -<a name="x2749"></a> stylemenu-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>(100+style, FALSE); +<a name="x2749"></a> stylemenu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>(100+style, FALSE); style = s; if ( style == Pie ) pieRotationTimer = <a href="tqobject.html#startTimer">startTimer</a>( 80 ); else pieRotationTimer = 0; - stylemenu-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>(100+style, TRUE); + stylemenu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>(100+style, TRUE); <a href="tqwidget.html#update">update</a>(); } } @@ -241,12 +241,12 @@ void Graph::<a href="tqwidget.html#setStyle">setStyle</a>(const char* stext) <a name="x2753"></a>void Graph::<a href="qnpwidget.html#enterInstance">enterInstance</a>() { -<a name="x2746"></a> menubar-><a href="ntqmenubar.html#show">show</a>(); +<a name="x2746"></a> menubar-><a href="tqmenubar.html#show">show</a>(); } <a name="x2754"></a>void Graph::<a href="qnpwidget.html#leaveInstance">leaveInstance</a>() { - menubar-><a href="ntqmenubar.html#hide">hide</a>(); + menubar-><a href="tqmenubar.html#hide">hide</a>(); } void <a name="f565"></a>Graph::paintError(const char* e) |