diff options
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r-- | doc/html/qwerty-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index 09d52e78e..15e5a9509 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -60,7 +60,7 @@ public: 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 ); + void load( const <a href="tqstring.html">TQString</a>& fileName, int code=-1 ); public slots: void newDoc(); @@ -81,7 +81,7 @@ private slots: void textChanged(); private: - bool saveAs( const <a href="ntqstring.html">TQString</a>& fileName, int code=-1 ); + bool saveAs( const <a href="tqstring.html">TQString</a>& fileName, int code=-1 ); void rebuildCodecList(); <a href="ntqmenubar.html">TQMenuBar</a> *m; <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *e; @@ -214,7 +214,7 @@ void <a name="f236"></a>Editor::rebuildCodecList() 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="ntqstring.html">TQString</a> local = "Local ("; + <a href="tqstring.html">TQString</a> local = "Local ("; <a name="x393"></a> local += TQTextCodec::<a href="ntqtextcodec.html#codecForLocale">codecForLocale</a>()->name(); local += ")"; menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( local, Local ); @@ -244,13 +244,13 @@ void <a name="f237"></a>Editor::newDoc() void <a name="f238"></a>Editor::load() { #ifndef TQT_NO_FILEDIALOG -<a name="x365"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="ntqstring.html#TQString-null">TQString::null</a>, TQString::null, this ); -<a name="x390"></a> if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) +<a name="x365"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this ); +<a name="x390"></a> if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( fn, -1 ); #endif } -void Editor::load( const <a href="ntqstring.html">TQString</a>& fileName, int code ) +void Editor::load( const <a href="tqstring.html">TQString</a>& fileName, int code ) { <a href="ntqfile.html">TQFile</a> f( fileName ); <a name="x363"></a> if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) @@ -293,8 +293,8 @@ void <a name="f239"></a>Editor::openAsEncoding( int code ) { #ifndef TQT_NO_FILEDIALOG //storing filename (proper save) is left as an exercise... - <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) (void) load( fn, code ); #endif } @@ -303,8 +303,8 @@ bool <a name="f240"></a>Editor::save() { #ifndef TQT_NO_FILEDIALOG //storing filename (proper save) is left as an exercise... -<a name="x366"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) +<a name="x366"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) return saveAs( fn ); return FALSE; #endif @@ -314,8 +314,8 @@ void <a name="f241"></a>Editor::saveAsEncoding( int code ) { #ifndef TQT_NO_FILEDIALOG //storing filename (proper save) is left as an exercise... - <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) (void) saveAs( fn, code ); #endif } @@ -323,8 +323,8 @@ void <a name="f241"></a>Editor::saveAsEncoding( int code ) void <a name="f242"></a>Editor::addEncoding() { #ifndef TQT_NO_FILEDIALOG - <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, "*.map", this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) { + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, "*.map", this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { <a href="ntqfile.html">TQFile</a> f(fn); if (f.<a href="ntqfile.html#open">open</a>(IO_ReadOnly)) { <a name="x394"></a> if (TQTextCodec::<a href="ntqtextcodec.html#loadCharmap">loadCharmap</a>(&f)) { @@ -349,7 +349,7 @@ void <a name="f242"></a>Editor::addEncoding() } -bool <a name="f243"></a>Editor::saveAs( const <a href="ntqstring.html">TQString</a>& fileName, int code ) +bool <a name="f243"></a>Editor::saveAs( const <a href="tqstring.html">TQString</a>& fileName, int code ) { <a href="ntqfile.html">TQFile</a> f( fileName ); if ( no_writing || !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) ) { |