summaryrefslogtreecommitdiffstats
path: root/doc/html/qwerty-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r--doc/html/qwerty-example.html78
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 &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
@@ -83,13 +83,13 @@ private slots:
private:
bool saveAs( const <a href="tqstring.html">TQString</a>&amp; 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 &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
@@ -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-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
-
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, TQ_SLOT(newDoc()), ALT+Key_N );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(load()), ALT+Key_O );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Save...", this, TQ_SLOT(save()), ALT+Key_S );
-<a name="x372"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- open_as = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Open &amp;As", open_as );
- save_as = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sa&amp;ve As", save_as );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Add &amp;Encoding", this, TQ_SLOT(addEncoding()) );
+<a name="x371"></a> m-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
+
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, TQ_SLOT(newDoc()), ALT+Key_N );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(load()), ALT+Key_O );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Save...", this, TQ_SLOT(save()), ALT+Key_S );
+<a name="x372"></a> file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ open_as = new <a href="tqpopupmenu.html">TQPopupMenu</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Open &amp;As", open_as );
+ save_as = new <a href="tqpopupmenu.html">TQPopupMenu</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Sa&amp;ve As", save_as );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Add &amp;Encoding", this, TQ_SLOT(addEncoding()) );
#ifndef TQT_NO_PRINTER
- file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print...", this, TQ_SLOT(print()), ALT+Key_P );
+ file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Print...", this, TQ_SLOT(print()), ALT+Key_P );
#endif
- file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W );
-<a name="x358"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q );
+ file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W );
+<a name="x358"></a> file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;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-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
+ m-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "To &amp;Uppercase", this, TQ_SLOT(toUpper()), ALT+Key_U );
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "To &amp;Lowercase", this, TQ_SLOT(toLower()), ALT+Key_L );
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "To &amp;Uppercase", this, TQ_SLOT(toUpper()), ALT+Key_U );
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "To &amp;Lowercase", this, TQ_SLOT(toLower()), ALT+Key_L );
#ifndef TQT_NO_FONTDIALOG
- edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Select Font" , this, TQ_SLOT(<a href="tqwidget.html#font">font</a>()), ALT+Key_T );
+ edit-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;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-&gt;<a href="tqptrlist.html#append">append</a>( codec );
<a name="x389"></a> int n = codecList-&gt;<a href="tqptrlist.html#count">count</a>();
for (int pm=0; pm&lt;2; pm++) {
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* menu = pm ? open_as : save_as;
-<a name="x370"></a> menu-&gt;<a href="ntqmenudata.html#clear">clear</a>();
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* menu = pm ? open_as : save_as;
+<a name="x370"></a> menu-&gt;<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>()-&gt;name();
local += ")";
- menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( local, Local );
- menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Unicode", Uni );
- menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Latin1", Lat1 );
- menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Microsoft Unicode", MBug );
+ menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( local, Local );
+ menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Unicode", Uni );
+ menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Latin1", Lat1 );
+ menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Microsoft Unicode", MBug );
if ( pm )
- menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "[guess]", Guess );
+ menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "[guess]", Guess );
for ( i = 0; i &lt; n; i++ )
-<a name="x388"></a> menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(i)-&gt;name(), Codec + i );
+<a name="x388"></a> menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( codecList-&gt;<a href="tqptrlist.html#at">at</a>(i)-&gt;name(), Codec + i );
}
}