diff options
Diffstat (limited to 'doc/html/canvas-chart-example.html')
-rw-r--r-- | doc/html/canvas-chart-example.html | 242 |
1 files changed, 121 insertions, 121 deletions
diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index 40379d951..16c2eb4bb 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -155,7 +155,7 @@ TQTextStream &operator>>( <a href="tqtextstream.html">TQTextStream</a> #include "element.h" -#include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> #include <<a href="tqstringlist-h.html">tqstringlist.h</a>> @@ -168,7 +168,7 @@ class TQPrinter; class TQString; -class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a> +class ChartForm: public <a href="tqmainwindow.html">TQMainWindow</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: @@ -184,7 +184,7 @@ public: void setChanged( bool changed = TRUE ) { m_changed = changed; } void drawElements(); - <a href="ntqpopupmenu.html">TQPopupMenu</a> *optionsMenu; // Why public? See canvasview.cpp + <a href="tqpopupmenu.html">TQPopupMenu</a> *optionsMenu; // Why public? See canvasview.cpp protected: virtual void closeEvent( <a href="qcloseevent.html">TQCloseEvent</a> * ); @@ -199,7 +199,7 @@ private slots: void filePrint(); void fileQuit(); void optionsSetData(); - void updateChartType( <a href="ntqaction.html">TQAction</a> *action ); + void updateChartType( <a href="tqaction.html">TQAction</a> *action ); void optionsSetFont(); void optionsSetOptions(); void helpHelp(); @@ -220,10 +220,10 @@ private: void updateRecentFilesMenu(); void setChartType( ChartType chartType ); - <a href="ntqpopupmenu.html">TQPopupMenu</a> *fileMenu; - <a href="ntqaction.html">TQAction</a> *optionsPieChartAction; - <a href="ntqaction.html">TQAction</a> *optionsHorizontalBarChartAction; - <a href="ntqaction.html">TQAction</a> *optionsVerticalBarChartAction; + <a href="tqpopupmenu.html">TQPopupMenu</a> *fileMenu; + <a href="tqaction.html">TQAction</a> *optionsPieChartAction; + <a href="tqaction.html">TQAction</a> *optionsHorizontalBarChartAction; + <a href="tqaction.html">TQAction</a> *optionsVerticalBarChartAction; <a href="tqstring.html">TQString</a> m_filename; @@ -249,24 +249,24 @@ private: #include "optionsform.h" #include "setdataform.h" -#include <<a href="qaction-h.html">ntqaction.h</a>> +#include <<a href="tqaction-h.html">tqaction.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qcombobox-h.html">ntqcombobox.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> #include <<a href="qfont-h.html">ntqfont.h</a>> #include <<a href="qfontdialog-h.html">ntqfontdialog.h</a>> -#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qprinter-h.html">ntqprinter.h</a>> #include <<a href="qradiobutton-h.html">ntqradiobutton.h</a>> #include <<a href="qsettings-h.html">ntqsettings.h</a>> #include <<a href="qspinbox-h.html">ntqspinbox.h</a>> -#include <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> -#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> -#include <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> +#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> +#include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include "images/file_new.xpm" #include "images/file_open.xpm" @@ -285,149 +285,149 @@ const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; <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="tqmainwindow.html">TQMainWindow</a>( 0, 0, WDestructiveClose ) { <a href="tqwidget.html#setIcon">setIcon</a>( TQPixmap( options_piechart ) ); - <a href="ntqaction.html">TQAction</a> *fileNewAction; - <a href="ntqaction.html">TQAction</a> *fileOpenAction; - <a href="ntqaction.html">TQAction</a> *fileSaveAction; - <a href="ntqaction.html">TQAction</a> *fileSaveAsAction; - <a href="ntqaction.html">TQAction</a> *fileSaveAsPixmapAction; - <a href="ntqaction.html">TQAction</a> *filePrintAction; - <a href="ntqaction.html">TQAction</a> *fileQuitAction; - <a href="ntqaction.html">TQAction</a> *optionsSetDataAction; - <a href="ntqaction.html">TQAction</a> *optionsSetFontAction; - <a href="ntqaction.html">TQAction</a> *optionsSetOptionsAction; - - fileNewAction = new <a href="ntqaction.html">TQAction</a>( + <a href="tqaction.html">TQAction</a> *fileNewAction; + <a href="tqaction.html">TQAction</a> *fileOpenAction; + <a href="tqaction.html">TQAction</a> *fileSaveAction; + <a href="tqaction.html">TQAction</a> *fileSaveAsAction; + <a href="tqaction.html">TQAction</a> *fileSaveAsPixmapAction; + <a href="tqaction.html">TQAction</a> *filePrintAction; + <a href="tqaction.html">TQAction</a> *fileQuitAction; + <a href="tqaction.html">TQAction</a> *optionsSetDataAction; + <a href="tqaction.html">TQAction</a> *optionsSetFontAction; + <a href="tqaction.html">TQAction</a> *optionsSetOptionsAction; + + fileNewAction = new <a href="tqaction.html">TQAction</a>( "New Chart", TQPixmap( file_new ), "&New", CTRL+Key_N, this, "new" ); -<a name="x2869"></a> <a href="tqobject.html#connect">connect</a>( fileNewAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileNew() ) ); +<a name="x2869"></a> <a href="tqobject.html#connect">connect</a>( fileNewAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileNew() ) ); - fileOpenAction = new <a href="ntqaction.html">TQAction</a>( + fileOpenAction = new <a href="tqaction.html">TQAction</a>( "Open Chart", TQPixmap( file_open ), "&Open...", CTRL+Key_O, this, "open" ); - <a href="tqobject.html#connect">connect</a>( fileOpenAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileOpen() ) ); + <a href="tqobject.html#connect">connect</a>( fileOpenAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileOpen() ) ); - fileSaveAction = new <a href="ntqaction.html">TQAction</a>( + fileSaveAction = new <a href="tqaction.html">TQAction</a>( "Save Chart", TQPixmap( file_save ), "&Save", CTRL+Key_S, this, "save" ); - <a href="tqobject.html#connect">connect</a>( fileSaveAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileSave() ) ); + <a href="tqobject.html#connect">connect</a>( fileSaveAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileSave() ) ); - fileSaveAsAction = new <a href="ntqaction.html">TQAction</a>( + fileSaveAsAction = new <a href="tqaction.html">TQAction</a>( "Save Chart As", TQPixmap( file_save ), "Save &As...", 0, this, "save as" ); - <a href="tqobject.html#connect">connect</a>( fileSaveAsAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( fileSaveAsAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileSaveAs() ) ); - fileSaveAsPixmapAction = new <a href="ntqaction.html">TQAction</a>( + fileSaveAsPixmapAction = new <a href="tqaction.html">TQAction</a>( "Save Chart As Bitmap", TQPixmap( file_save ), "Save As &Bitmap...", CTRL+Key_B, this, "save as bitmap" ); - <a href="tqobject.html#connect">connect</a>( fileSaveAsPixmapAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( fileSaveAsPixmapAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileSaveAsPixmap() ) ); - filePrintAction = new <a href="ntqaction.html">TQAction</a>( + filePrintAction = new <a href="tqaction.html">TQAction</a>( "Print Chart", TQPixmap( file_print ), "&Print Chart...", CTRL+Key_P, this, "print chart" ); - <a href="tqobject.html#connect">connect</a>( filePrintAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( filePrintAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( filePrint() ) ); - optionsSetDataAction = new <a href="ntqaction.html">TQAction</a>( + optionsSetDataAction = new <a href="tqaction.html">TQAction</a>( "Set Data", TQPixmap( options_setdata ), "Set &Data...", CTRL+Key_D, this, "set data" ); - <a href="tqobject.html#connect">connect</a>( optionsSetDataAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( optionsSetDataAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( optionsSetData() ) ); - <a href="qactiongroup.html">TQActionGroup</a> *chartGroup = new <a href="qactiongroup.html">TQActionGroup</a>( this ); // Connected later -<a name="x2874"></a> chartGroup-><a href="qactiongroup.html#setExclusive">setExclusive</a>( TRUE ); + <a href="tqactiongroup.html">TQActionGroup</a> *chartGroup = new <a href="tqactiongroup.html">TQActionGroup</a>( this ); // Connected later +<a name="x2874"></a> chartGroup-><a href="tqactiongroup.html#setExclusive">setExclusive</a>( TRUE ); - optionsPieChartAction = new <a href="ntqaction.html">TQAction</a>( + optionsPieChartAction = new <a href="tqaction.html">TQAction</a>( "Pie Chart", TQPixmap( options_piechart ), "&Pie Chart", CTRL+Key_I, chartGroup, "pie chart" ); -<a name="x2872"></a> optionsPieChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); +<a name="x2872"></a> optionsPieChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); - optionsHorizontalBarChartAction = new <a href="ntqaction.html">TQAction</a>( + optionsHorizontalBarChartAction = new <a href="tqaction.html">TQAction</a>( "Horizontal Bar Chart", TQPixmap( options_horizontalbarchart ), "&Horizontal Bar Chart", CTRL+Key_H, chartGroup, "horizontal bar chart" ); - optionsHorizontalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); - optionsVerticalBarChartAction = new <a href="ntqaction.html">TQAction</a>( + optionsVerticalBarChartAction = new <a href="tqaction.html">TQAction</a>( "Vertical Bar Chart", TQPixmap( options_verticalbarchart ), "&Vertical Bar Chart", CTRL+Key_V, chartGroup, "Vertical bar chart" ); - optionsVerticalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsVerticalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); - optionsSetFontAction = new <a href="ntqaction.html">TQAction</a>( + optionsSetFontAction = new <a href="tqaction.html">TQAction</a>( "Set Font", TQPixmap( options_setfont ), "Set &Font...", CTRL+Key_F, this, "set font" ); - <a href="tqobject.html#connect">connect</a>( optionsSetFontAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( optionsSetFontAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( optionsSetFont() ) ); - optionsSetOptionsAction = new <a href="ntqaction.html">TQAction</a>( + optionsSetOptionsAction = new <a href="tqaction.html">TQAction</a>( "Set Options", TQPixmap( options_setoptions ), "Set &Options...", 0, this, "set options" ); - <a href="tqobject.html#connect">connect</a>( optionsSetOptionsAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), + <a href="tqobject.html#connect">connect</a>( optionsSetOptionsAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( optionsSetOptions() ) ); - fileQuitAction = new <a href="ntqaction.html">TQAction</a>( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); - <a href="tqobject.html#connect">connect</a>( fileQuitAction, TQ_SIGNAL( <a href="ntqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileQuit() ) ); - - - <a href="ntqtoolbar.html">TQToolBar</a>* fileTools = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "file operations" ); -<a name="x2895"></a> fileTools-><a href="ntqtoolbar.html#setLabel">setLabel</a>( "File Operations" ); -<a name="x2870"></a> fileNewAction-><a href="ntqaction.html#addTo">addTo</a>( fileTools ); - fileOpenAction-><a href="ntqaction.html#addTo">addTo</a>( fileTools ); - fileSaveAction-><a href="ntqaction.html#addTo">addTo</a>( fileTools ); -<a name="x2894"></a> fileTools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); - filePrintAction-><a href="ntqaction.html#addTo">addTo</a>( fileTools ); - - <a href="ntqtoolbar.html">TQToolBar</a> *optionsTools = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "options operations" ); - optionsTools-><a href="ntqtoolbar.html#setLabel">setLabel</a>( "Options Operations" ); - optionsSetDataAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - optionsTools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); - optionsPieChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - optionsHorizontalBarChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - optionsVerticalBarChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - optionsTools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); - optionsSetFontAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - optionsTools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); - optionsSetOptionsAction-><a href="ntqaction.html#addTo">addTo</a>( optionsTools ); - - fileMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&File", fileMenu ); - fileNewAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileOpenAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileSaveAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileSaveAsAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - fileSaveAsPixmapAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - filePrintAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - fileMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - fileQuitAction-><a href="ntqaction.html#addTo">addTo</a>( fileMenu ); - - optionsMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Options", optionsMenu ); - optionsSetDataAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - optionsMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - optionsPieChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - optionsHorizontalBarChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - optionsVerticalBarChartAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - optionsMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - optionsSetFontAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - optionsMenu-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - optionsSetOptionsAction-><a href="ntqaction.html#addTo">addTo</a>( optionsMenu ); - - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertSeparator(); - - <a href="ntqpopupmenu.html">TQPopupMenu</a> *helpMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Help", helpMenu ); - helpMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Help", this, TQ_SLOT(helpHelp()), Key_F1 ); - helpMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&About", this, TQ_SLOT(helpAbout()) ); - helpMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About &TQt", this, TQ_SLOT(helpAboutTQt()) ); + fileQuitAction = new <a href="tqaction.html">TQAction</a>( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); + <a href="tqobject.html#connect">connect</a>( fileQuitAction, TQ_SIGNAL( <a href="tqaction.html#activated">activated</a>() ), this, TQ_SLOT( fileQuit() ) ); + + + <a href="tqtoolbar.html">TQToolBar</a>* fileTools = new <a href="tqtoolbar.html">TQToolBar</a>( this, "file operations" ); +<a name="x2895"></a> fileTools-><a href="tqtoolbar.html#setLabel">setLabel</a>( "File Operations" ); +<a name="x2870"></a> fileNewAction-><a href="tqaction.html#addTo">addTo</a>( fileTools ); + fileOpenAction-><a href="tqaction.html#addTo">addTo</a>( fileTools ); + fileSaveAction-><a href="tqaction.html#addTo">addTo</a>( fileTools ); +<a name="x2894"></a> fileTools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); + filePrintAction-><a href="tqaction.html#addTo">addTo</a>( fileTools ); + + <a href="tqtoolbar.html">TQToolBar</a> *optionsTools = new <a href="tqtoolbar.html">TQToolBar</a>( this, "options operations" ); + optionsTools-><a href="tqtoolbar.html#setLabel">setLabel</a>( "Options Operations" ); + optionsSetDataAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + optionsTools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); + optionsPieChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + optionsHorizontalBarChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + optionsVerticalBarChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + optionsTools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); + optionsSetFontAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + optionsTools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); + optionsSetOptionsAction-><a href="tqaction.html#addTo">addTo</a>( optionsTools ); + + fileMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&File", fileMenu ); + fileNewAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileOpenAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileSaveAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileSaveAsAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + fileSaveAsPixmapAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + filePrintAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + fileMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + fileQuitAction-><a href="tqaction.html#addTo">addTo</a>( fileMenu ); + + optionsMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Options", optionsMenu ); + optionsSetDataAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + optionsMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + optionsPieChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + optionsHorizontalBarChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + optionsVerticalBarChartAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + optionsMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + optionsSetFontAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + optionsMenu-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + optionsSetOptionsAction-><a href="tqaction.html#addTo">addTo</a>( optionsMenu ); + + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertSeparator(); + + <a href="tqpopupmenu.html">TQPopupMenu</a> *helpMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Help", helpMenu ); + helpMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Help", this, TQ_SLOT(helpHelp()), Key_F1 ); + helpMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&About", this, TQ_SLOT(helpAbout()) ); + helpMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "About &TQt", this, TQ_SLOT(helpAboutTQt()) ); m_printer = 0; @@ -459,7 +459,7 @@ const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; // Connect *after* we've set the chart type on so we don't call // drawElements() prematurely. -<a name="x2873"></a> <a href="tqobject.html#connect">connect</a>( chartGroup, TQ_SIGNAL( <a href="qactiongroup.html#selected">selected</a>(TQAction*) ), +<a name="x2873"></a> <a href="tqobject.html#connect">connect</a>( chartGroup, TQ_SIGNAL( <a href="tqactiongroup.html#selected">selected</a>(TQAction*) ), this, TQ_SLOT( updateChartType(TQAction*) ) ); <a href="tqwidget.html#resize">resize</a>( windowWidth, windowHeight ); @@ -469,7 +469,7 @@ const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; m_canvas = new <a href="tqcanvas.html">TQCanvas</a>( this ); <a name="x2876"></a> m_canvas-><a href="tqcanvas.html#resize">resize</a>( <a href="tqwidget.html#width">width</a>(), height() ); m_canvasView = new CanvasView( m_canvas, &m_elements, this ); - <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( m_canvasView ); + <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( m_canvasView ); m_canvasView-><a href="tqwidget.html#show">show</a>(); if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) @@ -484,7 +484,7 @@ const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; drawElements(); } - <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Ready", 2000 ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Ready", 2000 ); } @@ -546,7 +546,7 @@ void <a name="f599"></a>ChartForm::fileOpen() if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( filename ); else - <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "File Open abandoned", 2000 ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "File Open abandoned", 2000 ); } @@ -570,7 +570,7 @@ void <a name="f600"></a>ChartForm::fileSaveAs() return; } } - <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Saving abandoned", 2000 ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Saving abandoned", 2000 ); } @@ -599,10 +599,10 @@ void <a name="f602"></a>ChartForm::updateRecentFiles( const <a href="tqstring.ht void <a name="f603"></a>ChartForm::updateRecentFilesMenu() { for ( int i = 0; i < MAX_RECENTFILES; ++i ) { -<a name="x2882"></a> if ( fileMenu-><a href="ntqmenudata.html#findItem">findItem</a>( i ) ) -<a name="x2885"></a> fileMenu-><a href="ntqmenudata.html#removeItem">removeItem</a>( i ); +<a name="x2882"></a> if ( fileMenu-><a href="tqmenudata.html#findItem">findItem</a>( i ) ) +<a name="x2885"></a> fileMenu-><a href="tqmenudata.html#removeItem">removeItem</a>( i ); if ( i < int(m_recentFiles.count()) ) - fileMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( TQString( "&%1 %2" ). + fileMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( TQString( "&%1 %2" ). arg( i + 1 ).arg( m_recentFiles[i] ), this, TQ_SLOT( fileOpenRecent(int) ), 0, i ); @@ -682,19 +682,19 @@ void <a name="f608"></a>ChartForm::setChartType( ChartType chartType ) m_chartType = chartType; switch ( m_chartType ) { case PIE: -<a name="x2871"></a> optionsPieChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); +<a name="x2871"></a> optionsPieChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); break; case VERTICAL_BAR: - optionsVerticalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); + optionsVerticalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); break; case HORIZONTAL_BAR: - optionsHorizontalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); break; } } -void <a name="f609"></a>ChartForm::updateChartType( <a href="ntqaction.html">TQAction</a> *action ) +void <a name="f609"></a>ChartForm::updateChartType( <a href="tqaction.html">TQAction</a> *action ) { if ( action == optionsPieChartAction ) { m_chartType = PIE; @@ -757,7 +757,7 @@ void <a name="f611"></a>ChartForm::optionsSetOptions() void <a name="f612"></a>ChartForm::helpHelp() { - <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Help is not implemented yet", 2000 ); + <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( "Help is not implemented yet", 2000 ); } |