diff options
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r-- | doc/html/qwerty-example.html | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index fe1c4459a..be9a4dbda 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -49,7 +49,7 @@ body { background: #ffffff; color: black; } #define TQWERTY_H #include <<a href="tqwidget-h.html">tqwidget.h</a>> -#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>> #include <<a href="qprinter-h.html">ntqprinter.h</a>> @@ -83,13 +83,13 @@ private slots: private: bool saveAs( const <a href="tqstring.html">TQString</a>& fileName, int code=-1 ); void rebuildCodecList(); - <a href="ntqmenubar.html">TQMenuBar</a> *m; + <a href="tqmenubar.html">TQMenuBar</a> *m; <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *e; #ifndef TQT_NO_PRINTER <a href="ntqprinter.html">TQPrinter</a> printer; #endif - <a href="ntqpopupmenu.html">TQPopupMenu</a> *save_as; - <a href="ntqpopupmenu.html">TQPopupMenu</a> *open_as; + <a href="tqpopupmenu.html">TQPopupMenu</a> *save_as; + <a href="tqpopupmenu.html">TQPopupMenu</a> *open_as; bool changed; }; @@ -112,7 +112,7 @@ private: #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> @@ -132,42 +132,42 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; <a name="f235"></a>Editor::Editor( <a href="tqwidget.html">TQWidget</a> * parent , const char * name ) : <a href="tqwidget.html">TQWidget</a>( parent, name, WDestructiveClose ) { - m = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" ); + m = new <a href="tqmenubar.html">TQMenuBar</a>( this, "menu" ); - <a href="ntqpopupmenu.html">TQPopupMenu</a> * file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); + <a href="tqpopupmenu.html">TQPopupMenu</a> * file = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file ); -<a name="x371"></a> m-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&File", file ); - - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(newDoc()), ALT+Key_N ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(load()), ALT+Key_O ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Save...", this, TQ_SLOT(save()), ALT+Key_S ); -<a name="x372"></a> file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - open_as = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Open &As", open_as ); - save_as = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Sa&ve As", save_as ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Add &Encoding", this, TQ_SLOT(addEncoding()) ); +<a name="x371"></a> m-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", file ); + + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(newDoc()), ALT+Key_N ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(load()), ALT+Key_O ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Save...", this, TQ_SLOT(save()), ALT+Key_S ); +<a name="x372"></a> file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + open_as = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Open &As", open_as ); + save_as = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Sa&ve As", save_as ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Add &Encoding", this, TQ_SLOT(addEncoding()) ); #ifndef TQT_NO_PRINTER - file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print...", this, TQ_SLOT(print()), ALT+Key_P ); + file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Print...", this, TQ_SLOT(print()), ALT+Key_P ); #endif - file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W ); -<a name="x358"></a> file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q ); + file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W ); +<a name="x358"></a> file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q ); -<a name="x386"></a> <a href="tqobject.html#connect">connect</a>( save_as, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveAsEncoding(int)) ); - <a href="tqobject.html#connect">connect</a>( open_as, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(openAsEncoding(int)) ); +<a name="x386"></a> <a href="tqobject.html#connect">connect</a>( save_as, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveAsEncoding(int)) ); + <a href="tqobject.html#connect">connect</a>( open_as, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(openAsEncoding(int)) ); rebuildCodecList(); - <a href="ntqpopupmenu.html">TQPopupMenu</a> * edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); + <a href="tqpopupmenu.html">TQPopupMenu</a> * edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>(); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit ); - m-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); + m-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "To &Uppercase", this, TQ_SLOT(toUpper()), ALT+Key_U ); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "To &Lowercase", this, TQ_SLOT(toLower()), ALT+Key_L ); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "To &Uppercase", this, TQ_SLOT(toUpper()), ALT+Key_U ); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "To &Lowercase", this, TQ_SLOT(toLower()), ALT+Key_L ); #ifndef TQT_NO_FONTDIALOG - edit-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Select Font" , this, TQ_SLOT(<a href="tqwidget.html#font">font</a>()), ALT+Key_T ); + edit-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Select Font" , this, TQ_SLOT(<a href="tqwidget.html#font">font</a>()), ALT+Key_T ); #endif changed = FALSE; e = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" ); @@ -212,19 +212,19 @@ void <a name="f236"></a>Editor::rebuildCodecList() <a name="x387"></a> codecList-><a href="tqptrlist.html#append">append</a>( codec ); <a name="x389"></a> int n = codecList-><a href="tqptrlist.html#count">count</a>(); for (int pm=0; pm<2; pm++) { - <a href="ntqpopupmenu.html">TQPopupMenu</a>* menu = pm ? open_as : save_as; -<a name="x370"></a> menu-><a href="ntqmenudata.html#clear">clear</a>(); + <a href="tqpopupmenu.html">TQPopupMenu</a>* menu = pm ? open_as : save_as; +<a name="x370"></a> menu-><a href="tqmenudata.html#clear">clear</a>(); <a href="tqstring.html">TQString</a> local = "Local ("; <a name="x393"></a> local += TQTextCodec::<a href="tqtextcodec.html#codecForLocale">codecForLocale</a>()->name(); local += ")"; - menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( local, Local ); - menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Unicode", Uni ); - menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Latin1", Lat1 ); - menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Microsoft Unicode", MBug ); + menu-><a href="tqmenudata.html#insertItem">insertItem</a>( local, Local ); + menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "Unicode", Uni ); + menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "Latin1", Lat1 ); + menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "Microsoft Unicode", MBug ); if ( pm ) - menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "[guess]", Guess ); + menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "[guess]", Guess ); for ( i = 0; i < n; i++ ) -<a name="x388"></a> menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( codecList-><a href="tqptrlist.html#at">at</a>(i)->name(), Codec + i ); +<a name="x388"></a> menu-><a href="tqmenudata.html#insertItem">insertItem</a>( codecList-><a href="tqptrlist.html#at">at</a>(i)->name(), Codec + i ); } } |