diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/qwerty-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r-- | doc/html/qwerty-example.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index 5d7cb59b1..a69de6000 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -48,16 +48,16 @@ body { background: #ffffff; color: black; } #ifndef TQWERTY_H #define TQWERTY_H -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qmenubar-h.html">ntqmenubar.h</a>> #include <<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>> #include <<a href="qprinter-h.html">ntqprinter.h</a>> -class Editor : public <a href="ntqwidget.html">TQWidget</a> +class Editor : public <a href="tqwidget.html">TQWidget</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - Editor( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" ); + Editor( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" ); ~Editor(); void load( const <a href="ntqstring.html">TQString</a>& fileName, int code=-1 ); @@ -129,8 +129,8 @@ static TQPtrList<TQTextCodec> *codecList = 0; enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; -<a name="f235"></a>Editor::Editor( <a href="ntqwidget.html">TQWidget</a> * parent , const char * name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name, WDestructiveClose ) +<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" ); @@ -152,7 +152,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; file-><a href="ntqmenudata.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="ntqwidget.html#close">close</a>()),ALT+Key_W ); + 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 ); <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)) ); @@ -167,7 +167,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; edit-><a href="ntqmenudata.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="ntqwidget.html#font">font</a>()), ALT+Key_T ); + edit-><a href="ntqmenudata.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" ); @@ -180,22 +180,22 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; // it change pixel size as the display DPI changes. // <a name="x367"></a> <a href="ntqfont.html">TQFont</a> unifont("unifont",16,50); unifont.<a href="ntqfont.html#setPixelSize">setPixelSize</a>(16); -<a name="x397"></a> e-><a href="ntqwidget.html#setFont">setFont</a>( unifont ); +<a name="x397"></a> e-><a href="tqwidget.html#setFont">setFont</a>( unifont ); - e-><a href="ntqwidget.html#setFocus">setFocus</a>(); + e-><a href="tqwidget.html#setFocus">setFocus</a>(); } Editor::~Editor() { } -<a name="x405"></a>void Editor::<a href="ntqwidget.html#font">font</a>() +<a name="x405"></a>void Editor::<a href="tqwidget.html#font">font</a>() { #ifndef TQT_NO_FONTDIALOG bool ok; <a name="x396"></a><a name="x368"></a> <a href="ntqfont.html">TQFont</a> f = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &ok, e-><a href="ntqtextedit.html#font">font</a>() ); if ( ok ) { - e-><a href="ntqwidget.html#setFont">setFont</a>( f ); + e-><a href="tqwidget.html#setFont">setFont</a>( f ); } #endif } @@ -233,10 +233,10 @@ void <a name="f237"></a>Editor::newDoc() Editor *ed = new Editor; if ( tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().width() < 450 || tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->size().height() < 450 ) { -<a name="x413"></a> ed-><a href="ntqwidget.html#showMaximized">showMaximized</a>(); +<a name="x413"></a> ed-><a href="tqwidget.html#showMaximized">showMaximized</a>(); } else { - ed-><a href="ntqwidget.html#resize">resize</a>( 400, 400 ); - ed-><a href="ntqwidget.html#show">show</a>(); + ed-><a href="tqwidget.html#resize">resize</a>( 400, 400 ); + ed-><a href="tqwidget.html#show">show</a>(); } } @@ -283,8 +283,8 @@ void Editor::load( const <a href="ntqstring.html">TQString</a>& fileName, in <a name="x362"></a> f.<a href="ntqfile.html#close">close</a>(); e-><a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE ); -<a name="x407"></a> e-><a href="ntqwidget.html#repaint">repaint</a>(); - <a href="ntqwidget.html#setCaption">setCaption</a>( fileName ); +<a name="x407"></a> e-><a href="tqwidget.html#repaint">repaint</a>(); + <a href="tqwidget.html#setCaption">setCaption</a>( fileName ); changed = FALSE; } @@ -369,7 +369,7 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="ntqstring.html">TQString< t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 ); <a name="x399"></a> t << e-><a href="ntqtextedit.html#text">text</a>(); f.<a href="ntqfile.html#close">close</a>(); - <a href="ntqwidget.html#setCaption">setCaption</a>( fileName ); + <a href="tqwidget.html#setCaption">setCaption</a>( fileName ); changed = FALSE; return TRUE; } @@ -406,13 +406,13 @@ void <a name="f244"></a>Editor::print() #endif } -void Editor::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) +void Editor::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) { if ( e && m ) - e-><a href="ntqwidget.html#setGeometry">setGeometry</a>( 0, m-><a href="ntqwidget.html#height">height</a>(), width(), height() - m-><a href="ntqwidget.html#height">height</a>() ); + e-><a href="tqwidget.html#setGeometry">setGeometry</a>( 0, m-><a href="tqwidget.html#height">height</a>(), width(), height() - m-><a href="tqwidget.html#height">height</a>() ); } -<a name="x404"></a>void Editor::<a href="ntqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a> *event ) +<a name="x404"></a>void Editor::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a> *event ) { <a name="x360"></a> event-><a href="qcloseevent.html#accept">accept</a>(); @@ -482,14 +482,14 @@ int main( int argc, char **argv ) int i; for ( i= argc <= 1 ? 0 : 1; i<argc; i++ ) { Editor *e = new Editor; - e-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - TQWERTY"); + e-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TQWERTY"); if ( i > 0 ) e->load( argv[i] ); if ( isSmall ) { -<a name="x422"></a> e-><a href="ntqwidget.html#showMaximized">showMaximized</a>(); +<a name="x422"></a> e-><a href="tqwidget.html#showMaximized">showMaximized</a>(); } else { - e-><a href="ntqwidget.html#resize">resize</a>( 400, 400 ); - e-><a href="ntqwidget.html#show">show</a>(); + e-><a href="tqwidget.html#resize">resize</a>( 400, 400 ); + e-><a href="tqwidget.html#show">show</a>(); } } <a name="x416"></a> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); |