summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-06 17:29:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-06 17:29:49 +0900
commit587657561bb870d457a188a80bc0ce918ef5a0bd (patch)
treebaed0c3b38c4d11389c96c686967160a1b3027cd /doc
parent4161606c301841f973f0319f46e6853c4a3fe906 (diff)
downloadtqt3-587657561bb870d457a188a80bc0ce918ef5a0bd.tar.gz
tqt3-587657561bb870d457a188a80bc0ce918ef5a0bd.zip
Rename moc to tqmoc
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc')
-rw-r--r--doc/debug.doc2
-rw-r--r--doc/html/commonproblems.html20
-rw-r--r--doc/html/debug.html2
-rw-r--r--doc/html/designer-manual-6.html4
-rw-r--r--doc/html/designer-manual-9.html30
-rw-r--r--doc/html/helpsystem-example.html2
-rw-r--r--doc/html/index2
-rw-r--r--doc/html/install-mac.html2
-rw-r--r--doc/html/install-x11.html2
-rw-r--r--doc/html/integration.html10
-rw-r--r--doc/html/metaobjects.html4
-rw-r--r--doc/html/object.html2
-rw-r--r--doc/html/overviews-list.html2
-rw-r--r--doc/html/qmake-manual-1.html2
-rw-r--r--doc/html/qmake-manual-4.html2
-rw-r--r--doc/html/qmake-manual-8.html22
-rw-r--r--doc/html/qt.dcf4
-rw-r--r--doc/html/qtmac-as-native.html4
-rw-r--r--doc/html/signalsandslots.html18
-rw-r--r--doc/html/templates.html14
-rw-r--r--doc/html/titleindex2
-rw-r--r--doc/html/tools-list.html2
-rw-r--r--doc/html/tqmetaobject.html2
-rw-r--r--doc/html/tqmoc.html (renamed from doc/html/moc.html)95
-rw-r--r--doc/html/tqobject.html2
-rw-r--r--doc/html/xform-example.html2
-rw-r--r--doc/i18n.doc2
-rw-r--r--doc/installation.doc4
-rw-r--r--doc/integration.doc8
-rw-r--r--doc/man/man1/tqmoc.12
-rw-r--r--doc/man/man3/tqmetaobject.3qt2
-rw-r--r--doc/man/man3/tqobject.3qt2
-rw-r--r--doc/metaobjects.doc6
-rw-r--r--doc/misc.doc22
-rw-r--r--doc/object.doc16
-rw-r--r--doc/overviews-list.doc2
-rw-r--r--doc/qtmac-as-native.doc4
-rw-r--r--doc/signalsandslots.doc20
-rw-r--r--doc/tools-list.doc4
-rw-r--r--doc/tqmoc.doc (renamed from doc/moc.doc)104
40 files changed, 226 insertions, 227 deletions
diff --git a/doc/debug.doc b/doc/debug.doc
index bc0ad42d3..56eb2150b 100644
--- a/doc/debug.doc
+++ b/doc/debug.doc
@@ -180,7 +180,7 @@ Example:
There is one bug that is so common that it deserves mention here: If
you include the TQ_OBJECT macro in a class declaration and run the
-\link moc.html moc\endlink, but forget to link the moc-generated
+\link tqmoc.html tqmoc\endlink, but forget to link the tqmoc-generated
object code into your executable, you will get very confusing error
messages. Any link error complaining about a lack of \c{vtbl},
\c{_vtbl}, \c{__vtbl} or similar is likely to be a result of this
diff --git a/doc/html/commonproblems.html b/doc/html/commonproblems.html
index c238d909a..c8abf99f8 100644
--- a/doc/html/commonproblems.html
+++ b/doc/html/commonproblems.html
@@ -54,8 +54,8 @@ machine</a>
<h2> Link error, complaining about a lack of <tt>vtbl</tt>, <tt>_vtbl</tt>, <tt>__vtbl</tt> or similar
</h2>
<a name="1"></a><p> This indicates that you've included the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro in a class
-declaration and probably also run the <a href="moc.html#moc">moc</a>, but forgot to link the
-moc-generated object code into your executable. See <a href="moc.html">Using the Meta Object Compiler</a> for details on how to use moc.
+declaration and probably also run the <a href="tqmoc.html#tqmoc">tqmoc</a>, but forgot to link the
+tqmoc-generated object code into your executable. See <a href="tqmoc.html">Using the TQt Meta Object Compiler</a> for details on how to use tqmoc.
<p> <a name="diffver"></a>
<h2> Using different versions of TQt on the same machine
</h2>
@@ -70,12 +70,12 @@ TQt. Those with a command-line compiler will typically use options such as
the relevant release of TQt.
<p> <dt>Meta Object Compiler and other tools - Compile time
-<p> <dd>Programmers need to run <em>moc</em> and other tools such as <em>uic</em>. These
+<p> <dd>Programmers need to run <em>tqmoc</em> and other tools such as <em>tquic</em>. These
tools are usually located in the <tt>bin</tt> subdirectory of TQt distributions.
-Either run <tt>"$TQTDIR"/bin/moc</tt> and <tt>"$TQTDIR"/bin/uic</tt> or add <tt>"$TQTDIR"/bin</tt>
-to your <tt>PATH</tt> and run <a href="moc.html#moc">moc</a> and <tt>uic</tt>. If you use <tt>qmake</tt> the
+Either run <tt>"$TQTDIR"/bin/tqmoc</tt> and <tt>"$TQTDIR"/bin/tquic</tt> or add <tt>"$TQTDIR"/bin</tt>
+to your <tt>PATH</tt> and run <a href="tqmoc.html#tqmoc">tqmoc</a> and <tt>uic</tt>. If you use <tt>qmake</tt> the
appropriate lines will be added to your Makefiles so that <em>uic</em> and
-<em>moc</em> will be executed as required.
+<em>tqmoc</em> will be executed as required.
<p> <dt>Static or shared libraries - Link time
<p> <dd>Programmers need to link with the TQt static or shared libraries. The TQt
libraries are usually located in the <tt>lib</tt> subdirectory of TQt distributions.
@@ -101,7 +101,7 @@ source package that contain all these files once they have been built.
usually consist of two parts:
<p> <ul>
<li> shared libraries in the run time package, usually called <tt>qt3</tt>.
-<p> <li> header files, static libraries, the moc and other tools in the developers'
+<p> <li> header files, static libraries, tqmoc and other tools in the developers'
kit, usually called <tt>qt3-dev</tt>.
<p> </ul>
<p> Depending on how you are using TQt, you need to make specific parts of
@@ -118,7 +118,7 @@ package with a name like <tt>qt</tt> and a developer package with a name
like <tt>qt-dev</tt>. You will need the appropriate packages:
<p> <ul>
<p> <li> To build programs you will need the header files, the libraries,
-the moc and other tools from TQt 3.x. They are included in the developer
+tqmoc and other tools from TQt 3.x. They are included in the developer
package of TQt 3.x (<tt>qt3-dev</tt> or similar).
<p> <li> To run programs you will need the shared libraries of TQt 3.x and
TQt 2.x. They are included in the regular packages of TQt 3.x (<tt>qt3</tt>
@@ -131,7 +131,7 @@ need to set the environment variable <tt>TQTDIR</tt> to point to TQt 3.x.
</h3>
<a name="2-2"></a><p> You build and run programs for TQt 2.x and TQt 3.x. You will need:
<p> <ul>
-<p> <li> the header files, the libraries, the moc and other tools from TQt 3.x
+<p> <li> the header files, the libraries, tqmoc and other tools from TQt 3.x
and TQt 2.x to build programs,
<p> <li> the shared libraries of TQt 3.x and TQt 2.x to run programs.
<p> </ul>
@@ -186,7 +186,7 @@ setenv PATH ${TQTDIR}/bin:${PATH}
documentation appropriate to the version of TQt you're using. Also
your Makfiles may refer to <tt>"$TQTDIR"/include</tt> and <tt>"$TQTDIR"/lib</tt> to
include the proper header files and link with the proper libraries.
-Setting the <tt>PATH</tt> ensures that the proper version of moc and other
+Setting the <tt>PATH</tt> ensures that the proper version of tqmoc and other
tools is being used.
<p> <a name="nowinman"></a>
<h2> Using TQt on X11 without a window manager
diff --git a/doc/html/debug.html b/doc/html/debug.html
index cbe7c9ed5..5b479b6f1 100644
--- a/doc/html/debug.html
+++ b/doc/html/debug.html
@@ -155,7 +155,7 @@ define TQT_NO_CHECK.
</h2>
<a name="4"></a><p> There is one bug that is so common that it deserves mention here: If
you include the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro in a class declaration and run the
-<a href="moc.html">moc</a>, but forget to link the <a href="moc.html#moc">moc</a>-generated
+<a href="tqmoc.html">tqmoc</a>, but forget to link the <a href="tqmoc.html#tqmoc">tqmoc</a>-generated
object code into your executable, you will get very confusing error
messages. Any link error complaining about a lack of <tt>vtbl</tt>,
<tt>_vtbl</tt>, <tt>__vtbl</tt> or similar is likely to be a result of this
diff --git a/doc/html/designer-manual-6.html b/doc/html/designer-manual-6.html
index cbe5af6f1..efb9b3536 100644
--- a/doc/html/designer-manual-6.html
+++ b/doc/html/designer-manual-6.html
@@ -35,13 +35,13 @@ body { background: #ffffff; color: black; }
<h3><a name="1"></a>Subclassing</h3>
<p>We'll start with a general description of how to subclass a form and follow with a short example. Note that subclassing has some disadvantages compared with putting your code into a form directly; see <a href="designer-manual-5.html#3">Extending the functionality of a form</a> in <a href="designer-manual-5.html#the-designer-approach">The Designer Approach</a> chapter for details.</p>
<h4><a name="1-1"></a>Generating Source Code from <em>TQt Designer</em> .ui Files</h4>
-<p><em>TQt Designer</em> reads and writes <tt>qmake</tt><!-- index .pro --> <tt>.pro</tt> (project) files which are used to record the files used to build the application and from which Makefiles are generated. <em>TQt Designer</em> also reads and writes<!-- index .ui --> <tt>.ui</tt> (user interface) files. These are XML files that record the widgets, layouts, source code and settings you've used for a form. Every<!-- index .ui --> <tt>.ui</tt> file is converted by the <tt>uic</tt> (user interface compiler) into a C++<!-- index .h --> <tt>.h</tt> file and a C++<!-- index .cpp --> <tt>.cpp</tt> file. These C++ files are then read by <tt>moc</tt> (meta object compiler), and finally compiled by your compiler into a working application.</p>
+<p><em>TQt Designer</em> reads and writes <tt>qmake</tt><!-- index .pro --> <tt>.pro</tt> (project) files which are used to record the files used to build the application and from which Makefiles are generated. <em>TQt Designer</em> also reads and writes<!-- index .ui --> <tt>.ui</tt> (user interface) files. These are XML files that record the widgets, layouts, source code and settings you've used for a form. Every<!-- index .ui --> <tt>.ui</tt> file is converted by the <tt>uic</tt> (user interface compiler) into a C++<!-- index .h --> <tt>.h</tt> file and a C++<!-- index .cpp --> <tt>.cpp</tt> file. These C++ files are then read by <tt>tqmoc</tt> (meta object compiler), and finally compiled by your compiler into a working application.</p>
<!-- index Makefiles --><!-- index Projects!Adding Files --><!-- index Adding!Files to Projects --><p>If you create applications wholly within <em>TQt Designer</em> you only need to create a<!-- index main.cpp --> <tt>main.cpp</tt>.</p>
<p>If you create the <tt>main.cpp</tt> file within <em>TQt Designer</em>, it will automatically be added to your project file by <em>TQt Designer</em>. If you create the <tt>main.cpp</tt> file outside of <em>TQt Designer</em> you must add it to the project file manually by adding the following line at the end of your project's<!-- index .pro --> <tt>.pro</tt> file:</p>
<pre>
SOURCES += main.cpp
</pre>
-<p>You can then use <tt>qmake</tt> to generate the Makefile. (For example <tt>qmake -o Makefile myproject.pro</tt>.) Running <tt>make</tt> (Linux, Unix or Borland compilers), or <tt>nmake</tt> (Visual C++), will then call <tt>uic</tt>, <tt>moc</tt> and your compiler as necessary to build your application.</p>
+<p>You can then use <tt>qmake</tt> to generate the Makefile. (For example <tt>qmake -o Makefile myproject.pro</tt>.) Running <tt>make</tt> (Linux, Unix or Borland compilers), or <tt>nmake</tt> (Visual C++), will then call <tt>tquic</tt>, <tt>tqmoc</tt> and your compiler as necessary to build your application.</p>
<!-- index Errors!Undefined reference --><!-- index Undefined references, Error --><!-- index qmake!HEADERS --><!-- index qmake!SOURCES --><p>If you use <em>TQt Designer</em> to create your main window and dialogs, but also add other C++ files, or if you subclass any of your forms you will need to add these files to the<!-- index .pro --> <tt>.pro</tt> file so that they are compiled with the rest of your application's source files. Each<!-- index .h --> <tt>.h</tt> file that you create separately from <em>TQt Designer</em> should be added to the <tt>HEADERS</tt> line, and each<!-- index .cpp --> <tt>.cpp</tt> file should be added to the <tt>SOURCES</tt> line, just as we've done for<!-- index main.cpp --> <tt>main.cpp</tt>. If you get undefined reference errors it is worth checking that you've added the names of all your header and implementation files to the<!-- index .pro --> <tt>.pro</tt> file.</p>
<h4><a name="1-2"></a>Subclassing a Form</h4>
<!-- index Subclassing --><p>When subclassing a form it is helpful to use a naming convention to help us identify which files are generated from <em>TQt Designer</em>'s<!-- index .ui --> <tt>.ui</tt> files and which are hand coded.</p>
diff --git a/doc/html/designer-manual-9.html b/doc/html/designer-manual-9.html
index 55d4ba2a7..fb8c87814 100644
--- a/doc/html/designer-manual-9.html
+++ b/doc/html/designer-manual-9.html
@@ -105,13 +105,13 @@ body { background: #ffffff; color: black; }
<li><p>Open TQt Project -- Runs <tt>qmake</tt> with a<!-- index .pro --> <tt>.pro</tt> file</p>
<li><p>Write TQt Project -- Saves the current VS project as a<!-- index .pro --> <tt>.pro</tt> file</p>
<li><p>Use TQt -- Add the TQt libraries to the active project</p>
-<li><p>Add MOC -- Add the <tt>moc</tt> precompiler to the active file</p>
+<li><p>Add TQMoc -- Add <tt>tqmoc</tt> precompiler to the active file</p>
</ul><p>Double clicking a<!-- index .ui --> <tt>.ui</tt> file in the workspace overview will now launch <em>TQt Designer</em>.</p>
-<!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p>If you create a<!-- index .cpp --> <tt>.cpp</tt> file which contains the <tt>TQ_OBJECT</tt> macro you will need an additional file which is generated by the <tt>moc</tt> to be included in your project. For example, if you have 'file.cpp', then the last line would be <tt>#include "file.moc"</tt> and the additional file would be called 'file.moc'. To ensure that Visual Studio executes the <tt>moc</tt> and generates this file you must create a custom dependency. Double click the<!-- index .cpp --> <tt>.cpp</tt> file (in your project workspace) that contains the <tt>TQ_OBJECT</tt> macro. Click the <b>Add MOC</b> toolbar button; this will create an empty<!-- index .moc --> <tt>.moc</tt> file in your project workspace. Right click the newly created<!-- index .moc --> <tt>.moc</tt> file, then click <b>Settings</b> from the pop-up menu to invoke the Project Settings dialog. Click the Custom Build tab. Click the <b>Dependencies</b> button to pop up the User Defined Dependencies dialog. Type in <tt>$(InputDir)\$(InputPath)</tt>, then press <b>Return</b>. Click <b>OK</b> to leave the Dependencies dialog, then click <b>OK</b> to leave the Project Settings dialog.</p>
+<!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p>If you create a<!-- index .cpp --> <tt>.cpp</tt> file which contains the <tt>TQ_OBJECT</tt> macro you will need an additional file which is generated by <tt>tqmoc</tt> to be included in your project. For example, if you have 'file.cpp', then the last line would be <tt>#include "file.moc"</tt> and the additional file would be called 'file.moc'. To ensure that Visual Studio executes the <tt>tqmoc</tt> and generates this file you must create a custom dependency. Double click the<!-- index .cpp --> <tt>.cpp</tt> file (in your project workspace) that contains the <tt>TQ_OBJECT</tt> macro. Click the <b>Add TQMoc</b> toolbar button; this will create an empty<!-- index .moc --> <tt>.moc</tt> file in your project workspace. Right click the newly created<!-- index .moc --> <tt>.moc</tt> file, then click <b>Settings</b> from the pop-up menu to invoke the Project Settings dialog. Click the Custom Build tab. Click the <b>Dependencies</b> button to pop up the User Defined Dependencies dialog. Type in <tt>$(InputDir)\$(InputPath)</tt>, then press <b>Return</b>. Click <b>OK</b> to leave the Dependencies dialog, then click <b>OK</b> to leave the Project Settings dialog.</p>
<p>If you wish to delete the add-in remove it from the toolbar then delete the<!-- index qmsdev.dll --> <tt>qmsdev.dll</tt> file from the add-ins directory.</p>
<h4><a name="3-1"></a>Creating Makefiles without qmake</h4>
<!-- index Makefiles --><p>The <tt>qmake</tt> tool provided with TQt can create Makefiles appropriate to your platform based on<!-- index .pro --> <tt>.pro</tt> project files. This section describes the dependencies involved in building a TQt application and gives a couple of simple example Makefiles. This section assumes that you have a good understanding of Makefiles.</p>
-<!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p><em>TQt Designer</em> produces<!-- index .ui --> <tt>.ui</tt> files which are used to generate<!-- index .h --> <tt>.h</tt> and<!-- index .cpp --> <tt>.cpp</tt> files for the compiler to compile. The<!-- index .ui --> <tt>.ui</tt> files are processed by <tt>uic</tt>. Classes which inherit from <a href="tqobject.html">TQObject</a>, e.g. those which use slots and signals, require an additional<!-- index .cpp --> <tt>.cpp</tt> file to be generated. These files are generated by the <tt>moc</tt> and are named '<em>moc_</em>file.cpp' where the original<!-- index .cpp --> <tt>.cpp</tt> file is called 'file.cpp'. If your<!-- index .cpp --> <tt>.cpp</tt> file contains the <tt>TQ_OBJECT</tt> macro an additional file 'file.moc' should be generated which must be <tt>#include</tt>d in the<!-- index .cpp --> <tt>.cpp</tt>, normally at the end. This requires an extra dependency being created.</p>
+<!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p><em>TQt Designer</em> produces<!-- index .ui --> <tt>.ui</tt> files which are used to generate<!-- index .h --> <tt>.h</tt> and<!-- index .cpp --> <tt>.cpp</tt> files for the compiler to compile. The<!-- index .ui --> <tt>.ui</tt> files are processed by <tt>uic</tt>. Classes which inherit from <a href="tqobject.html">TQObject</a>, e.g. those which use slots and signals, require an additional<!-- index .cpp --> <tt>.cpp</tt> file to be generated. These files are generated by <tt>tqmoc</tt> and are named '<em>tqmoc_</em>file.cpp' where the original<!-- index .cpp --> <tt>.cpp</tt> file is called 'file.cpp'. If your<!-- index .cpp --> <tt>.cpp</tt> file contains the <tt>TQ_OBJECT</tt> macro an additional file 'file.moc' should be generated which must be <tt>#include</tt>d in the<!-- index .cpp --> <tt>.cpp</tt>, normally at the end. This requires an extra dependency being created.</p>
<p>Processing<!-- index .ui --> <tt>.ui</tt> files with <tt>uic</tt> is done <em>twice</em>:</p>
<pre>
uic myform.ui -o myform.h
@@ -125,23 +125,23 @@ uic -subdecl Form formbase.h formbase.ui -o form.h
uic -subimpl Form form.h formbase.ui -o form.cpp
</pre>
<p>First we generate the header and implementation file for our base class. Then we generate the header and implementation skeletons for our subclass. Note that the use of <tt>uic</tt> to generate skeletons is not something that would be done in a Makefile, we mention it here because it can be useful for command line users. Note also that the command line for <tt>-subdecl</tt> and for <tt>-subimpl</tt> are subtly different.</p>
-<p>For implementation files that contain classes which inherit from <a href="tqobject.html">TQObject</a> we must create moc files:</p>
+<p>For implementation files that contain classes which inherit from <a href="tqobject.html">TQObject</a> we must create tqmoc files:</p>
<pre>
-moc myform.h -o moc_myform.cpp
+tqmoc myform.h -o tqmoc_myform.cpp
</pre>
<p>We'll look at a simple Makefile to see the dependencies in practice.</p>
<pre>
-myapp: moc_myform.o myform.o main.o
- g++ -lqt -o myapp moc_myform.o myform.o main.o
+myapp: tqmoc_myform.o myform.o main.o
+ g++ -lqt -o myapp tqmoc_myform.o myform.o main.o
main.o: main.cpp
g++ -o main.o main.cpp
-moc_myform.o: moc_myform.cpp
- g++ -o moc_myform.o moc_myform.cpp
+tqmoc_myform.o: tqmoc_myform.cpp
+ g++ -o tqmoc_myform.o tqmoc_myform.cpp
-moc_myform.cpp: myform.h
- moc myform.h -o moc_myform.cpp
+tqmoc_myform.cpp: myform.h
+ tqmoc myform.h -o tqmoc_myform.cpp
myform.o: myform.cpp
g++ -o myform.o myform.cpp
@@ -152,17 +152,17 @@ myform.cpp: myform.h myform.ui
myform.h: myform.ui
uic myform.ui -o myform.h
</pre>
-<p>Note that you may need to include the full path to the commands in your Makefile, and under Windows the filenames are<!-- index moc.exe --> <tt>moc.exe</tt> and<!-- index uic.exe --> <tt>uic.exe</tt>.</p>
+<p>Note that you may need to include the full path to the commands in your Makefile, and under Windows the filenames are<!-- index tqmoc.exe --> <tt>tqmoc.exe</tt> and<!-- index uic.exe --> <tt>uic.exe</tt>.</p>
<p>In Unix/Linux environments the <tt>make</tt> command may be able to do more for us, so we should be able to use a simpler Makefile like this:</p>
<pre>
-myapp: moc_myform.o myform.o main.o
+myapp: tqmoc_myform.o myform.o main.o
g++ -lq -o $@ $^
%.o: %.cpp
g++ -o $^ $@
-moc_%.cpp: %.h
- moc $^ -o $@
+tqmoc_%.cpp: %.h
+ tqmoc $^ -o $@
myform.cpp: myform.h myform.ui
uic myform.ui -i myform.h -o myform.cpp
diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html
index de203396e..b1e7d28dc 100644
--- a/doc/html/helpsystem-example.html
+++ b/doc/html/helpsystem-example.html
@@ -476,7 +476,7 @@ and use the make tool to build the library.
<hr>
<ol> <li><a name="footnote1"></a>
-Note that <a href="moc.html#moc">moc</a> requires that <a href="tqobject.html">TQObject</a>
+Note that <a href="tqmoc.html#tqmoc">tqmoc</a> requires that <a href="tqobject.html">TQObject</a>
is the first base class. <a href="#footnote-call1">Back...</a> <li><a name="footnote2"></a>
Note that we have to explicitly scope the orientation
diff --git a/doc/html/index b/doc/html/index
index ce66e4c63..7b3504745 100644
--- a/doc/html/index
+++ b/doc/html/index
@@ -7808,7 +7808,7 @@
"Tutorial #2" tutorial2.html
"User Interface Compiler (uic)" uic.html
"Using menus" menu-example.html
-"Using the Meta Object Compiler" moc.html
+"Using the Meta Object Compiler" tqmoc.html
"Walkthrough: A Simple Application" simple-application.html
"Walkthrough: How to use the TQt SAX2 classes" xml-sax-walkthrough.html
"Walkthrough: Using SAX2 features with the TQt XML classes" xml-sax-features-walkthrough.html
diff --git a/doc/html/install-mac.html b/doc/html/install-mac.html
index afa1f9933..00da24b9d 100644
--- a/doc/html/install-mac.html
+++ b/doc/html/install-mac.html
@@ -54,7 +54,7 @@ depending on your shell) in your home directory. Create the
file if it is not there already.
<p> <ul>
<li> TQTDIR -- the directory in which you're building TQt
-<li> PATH -- to locate the <a href="moc.html#moc">moc</a> program and other TQt tools
+<li> PATH -- to locate the <a href="tqmoc.html#tqmoc">tqmoc</a> program and other TQt tools
<li> MANPATH -- to access the TQt man pages
<li> LD_LIBRARY_PATH -- for the shared TQt library
</ul>
diff --git a/doc/html/install-x11.html b/doc/html/install-x11.html
index 8132de2a8..100b96f07 100644
--- a/doc/html/install-x11.html
+++ b/doc/html/install-x11.html
@@ -55,7 +55,7 @@ depending on your shell) in your home directory. Create the
file if it is not there already.
<p> <ul>
<li> TQTDIR -- the directory in which you're building TQt
-<li> PATH -- to locate the <a href="moc.html#moc">moc</a> program and other TQt tools
+<li> PATH -- to locate the <a href="tqmoc.html#tqmoc">tqmoc</a> program and other TQt tools
<li> MANPATH -- to access the TQt man pages
<li> LD_LIBRARY_PATH -- for the shared TQt library
</ul>
diff --git a/doc/html/integration.html b/doc/html/integration.html
index 55f9e412a..b068387bf 100644
--- a/doc/html/integration.html
+++ b/doc/html/integration.html
@@ -57,7 +57,7 @@ TQt application.
</a>
<li><a href="#3-6"> Using the 'Use TQt In Current Project' button
</a>
-<li><a href="#3-7"> Using the 'Add MOC' button
+<li><a href="#3-7"> Using the 'Add TQMoc' button
</a>
</ul>
</ul>
@@ -96,7 +96,7 @@ following steps.
<li> Open TQt Project
<li> Write TQt Project
<li> Use TQt In Current Project
-<li> Add MOC
+<li> Add TQMoc
</ul>
<p> <h3> Using the 'New TQt Project' button
</h3>
@@ -148,10 +148,10 @@ name your <tt>qmake</tt> project file and click Save.
<a name="3-6"></a><p> The 'Use TQt In Current Project' button simply adds in the necessary
information for the current project so that it links against TQt and
sets any other settings needed to use TQt in that project.
-<p> <h3> Using the 'Add MOC' button
+<p> <h3> Using the 'Add TQMoc' button
</h3>
-<a name="3-7"></a><p> The 'Add MOC' button will add in the custom build step for the selected file
-so that it creates any needed MOC files and it will add these generated
+<a name="3-7"></a><p> The 'Add TQMoc' button will add in the custom build step for the selected file
+so that it creates any needed moc files and it will add these generated
files to the project. All you need to do to use it is click on a file that
has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> and click the button.
<p> You only need to use this button if you added a file that has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> in it by hand, you don't need to use this if you used any
diff --git a/doc/html/metaobjects.html b/doc/html/metaobjects.html
index ae025c2c9..c35f3fb97 100644
--- a/doc/html/metaobjects.html
+++ b/doc/html/metaobjects.html
@@ -42,9 +42,9 @@ property system.
<li> the <a href="tqobject.html">TQObject</a> class;
<li> the TQ_OBJECT macro inside the private section of the class
declaration;
-<li> the <a href="moc.html">Meta Object Compiler (moc)</a>.
+<li> the <a href="tqmoc.html">TQt Meta Object Compiler (tqmoc)</a>.
</ol>
-<p> The <em><a href="moc.html#moc">moc</a></em> reads a C++ source file. If it finds one or more class
+<p> The <em><a href="tqmoc.html#tqmoc">tqmoc</a></em> reads a C++ source file. If it finds one or more class
declarations that contain the TQ_OBJECT macro, it produces another C++
source file which contains the meta object code for the classes that
contain the TQ_OBJECT macro. This generated source file is either
diff --git a/doc/html/object.html b/doc/html/object.html
index cd1cbee54..26420f9ce 100644
--- a/doc/html/object.html
+++ b/doc/html/object.html
@@ -61,7 +61,7 @@ pointers which become "dangling pointers" when their objects are destroyed.
techniques, based on inheritance from <a href="tqobject.html">TQObject</a>. Others, like the
object communication mechanism and the dynamic property system,
require the <a href="metaobjects.html">Meta Object System</a> provided
-by TQt's own <a href="moc.html">Meta Object Compiler (moc)</a>.
+by TQt's own <a href="tqmoc.html">Meta Object Compiler (tqmoc)</a>.
<p> The Meta Object System is a C++ extension that makes the language
better suited to true component GUI programming. Although templates can
be used to extend C++, the Meta Object System provides benefits using
diff --git a/doc/html/overviews-list.html b/doc/html/overviews-list.html
index 542355551..d6224514b 100644
--- a/doc/html/overviews-list.html
+++ b/doc/html/overviews-list.html
@@ -45,7 +45,7 @@ body { background: #ffffff; color: black; }
<li> <a href="signalsandslots.html">Signals and Slots</a>
<li> <a href="metaobjects.html">Meta Object System</a>
<li> <a href="properties.html">Properties</a>
-<li> <a href="moc.html">Using the Meta Object Compiler</a>
+<li> <a href="tqmoc.html">Using the Meta Object Compiler</a>
<li> <a href="templates.html">Why doesn't TQt use templates for signals and slots?</a>
</ul>
<p> <td valign="top">
diff --git a/doc/html/qmake-manual-1.html b/doc/html/qmake-manual-1.html
index be0ec6bff..fcd265496 100644
--- a/doc/html/qmake-manual-1.html
+++ b/doc/html/qmake-manual-1.html
@@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<h3><a name="1"></a>Introduction to qmake</h3>
<p><em>qmake</em> is a tool created by Trolltech to write makefiles for different compilers and platforms.</p>
<p>Writing makefiles by hand can be difficult and error prone, especially if several makefiles are required for different compiler and platform combinations. With <em>qmake</em>, developers create a simple single 'project' file and run <em>qmake</em> to generate the appropriate makefiles. <em>qmake</em> takes care of all the compiler and platform dependencies, freeing developers to focus on their code. Trolltech uses <em>qmake</em> as the primary build tool for the TQt library, and for the tools supplied with TQt.</p>
-<p><em>qmake</em> also takes care of TQt's special requirements, automatically including build rules for <a href="moc.html">moc</a> and <em>uic</em>.</p>
+<p><em>qmake</em> also takes care of TQt's special requirements, automatically including build rules for <a href="tqmoc.html">tqmoc</a> and <em>tquic</em>.</p>
<!-- eof -->
<p align="right">[<a href="qmake-manual.html">Home</a>] [<a href="qmake-manual-2.html">Next: Installing qmake</a>]</p>
<p><address><hr><div align=center>
diff --git a/doc/html/qmake-manual-4.html b/doc/html/qmake-manual-4.html
index 8fe09fd1a..69d86396d 100644
--- a/doc/html/qmake-manual-4.html
+++ b/doc/html/qmake-manual-4.html
@@ -64,7 +64,7 @@ body { background: #ffffff; color: black; }
<pre>
TARGET = helloworld
</pre>
-<p>The final step is to set the <em>CONFIG</em> variable. Since this is a TQt application, we need to put 'qt' on the CONFIG line so that <em>qmake</em> will add the relevant libraries to be linked against and ensure that build lines for <em>moc</em> and <em>uic</em> are included in the makefile.</p>
+<p>The final step is to set the <em>CONFIG</em> variable. Since this is a TQt application, we need to put 'qt' on the CONFIG line so that <em>qmake</em> will add the relevant libraries to be linked against and ensure that build lines for <em>tqmoc</em> and <em>tquic</em> are included in the makefile.</p>
<p>The finished project file should look like this:</p>
<pre>
CONFIG += qt
diff --git a/doc/html/qmake-manual-8.html b/doc/html/qmake-manual-8.html
index b22e6dce5..6b26c1eac 100644
--- a/doc/html/qmake-manual-8.html
+++ b/doc/html/qmake-manual-8.html
@@ -141,7 +141,7 @@ DEFINES += USE_MY_STUFF QT_DLL
<p>Specifies where to copy the <a href="qmake-manual-8.html#TARGET">target</a> dll.</p>
<a name="HEADERS"></a><h5><a name="4-1-6"></a>HEADERS</h5>
<p>Defines the header files for the project.</p>
-<p><em>qmake</em> will generate dependency information (unless -nodepend is specified on the <a href="qmake-manual-8.html#Commands">command line</a>) for the specified headers. <em>qmake</em> will also automatically detect if <em>moc</em> is required by the classes in these headers, and add the appropriate dependencies and files to the project for generating and linking the moc files.</p>
+<p><em>qmake</em> will generate dependency information (unless -nodepend is specified on the <a href="qmake-manual-8.html#Commands">command line</a>) for the specified headers. <em>qmake</em> will also automatically detect if <em>tqmoc</em> is required by the classes in these headers, and add the appropriate dependencies and files to the project for generating and linking the tqmoc files.</p>
<p>For example:</p>
<pre>
HEADERS = myclass.h \
@@ -178,7 +178,7 @@ unix:LIBS += -lmath -L/usr/local/lib
win32:LIBS += c:\mylibs\math.lib
</pre>
<a name="MOC_DIR"></a><h5><a name="4-1-11"></a>MOC_DIR</h5>
-<p>This variable specifies the directory where all intermediate moc files should be placed.</p>
+<p>This variable specifies the directory where all intermediate tqmoc files should be placed.</p>
<p>For example:</p>
<pre>
unix:MOC_DIR = ../myproject/tmp
@@ -271,7 +271,7 @@ DISTFILES += ../program.txt
<p>This variable contains a list of yacc source files to be included in the project. All dependencies, headers and source files will automatically be included in the project.</p>
<p>For example:</p>
<pre>
-YACCSOURCES = moc.y
+YACCSOURCES = tqmoc.y
</pre>
<a name="RarelyUsedSystemVariables"></a><h4><a name="4-2"></a>Rarely Used System Variables</h4>
<p>The following variables are also recognized by <em>qmake</em> but are either internal or very rarely used.</p>
@@ -299,11 +299,11 @@ message($$join(urlPieces, $$LITERAL_HASH))
<a name="OBJECTS"></a><h5><a name="4-2-8"></a>OBJECTS</h5>
<p>This variable is generated from the <a href="qmake-manual-8.html#SOURCES">SOURCES</a> variable. The extension of each source file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="OBJMOC"></a><h5><a name="4-2-9"></a>OBJMOC</h5>
-<p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>OBJMOC</tt> contains the name of all intermediate moc object files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
+<p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>OBJMOC</tt> contains the name of all intermediate tqmoc object files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="PRECOMPILED_HEADER"></a><h5><a name="4-2-10"></a>PRECOMPILED_HEADER</h5>
<p>This variable indicates the header file for creating a precompiled header file, to increase the compilation speed of a project. Precompiled headers are currently only supported on some platforms (Windows - all MSVC project types, Mac OS X - Xcode, Makefile, UNIX - gcc 3.3 and up).</p>
<p>On other platforms, this variable has different meaning, as noted below.</p>
-<p>This variable contains a list of header files that require some sort of pre-compilation step (such as with moc). The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
+<p>This variable contains a list of header files that require some sort of pre-compilation step (such as with tqmoc). The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="QMAKE"></a><h5><a name="4-2-11"></a>QMAKE</h5>
<p>This variable contains the name of the <em>qmake</em> program itself and is placed in generated makefiles. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="QMAKESPEC_systemvariable"></a><h5><a name="4-2-12"></a>QMAKESPEC</h5>
@@ -344,7 +344,7 @@ app {
<a name="QMAKE_CFLAGS_WARN_ON"></a><h5><a name="4-2-25"></a>QMAKE_CFLAGS_WARN_ON</h5>
<p>This variable is not empty if the warn_on <a href="qmake-manual-8.html#TEMPLATE">TEMPLATE</a> option is specified. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="QMAKE_CLEAN"></a><h5><a name="4-2-26"></a>QMAKE_CLEAN</h5>
-<p>This variable contains any files which are not generated files (such as moc and uic generated files) and object files that should be removed when using "make clean".</p>
+<p>This variable contains any files which are not generated files (such as tqmoc and tquic generated files) and object files that should be removed when using "make clean".</p>
<a name="QMAKE_CXXFLAGS_DEBUG"></a><h5><a name="4-2-27"></a>QMAKE_CXXFLAGS_DEBUG</h5>
<p>This variable contains the C++ compiler flags for creating a debuggable application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="QMAKE_CXXFLAGS_MT"></a><h5><a name="4-2-28"></a>QMAKE_CXXFLAGS_MT</h5>
@@ -484,7 +484,7 @@ app {
<h5><a name="4-2-85"></a>QMAKE_MAKEFILE</h5>
<p>This variable contains the name of the makefile to create. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-86"></a>QMAKE_MOC_SRC</h5>
-<p>This variable contains the names of all moc source files to generate and include in the project. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
+<p>This variable contains the names of all tqmoc source files to generate and include in the project. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-87"></a>QMAKE_QMAKE</h5>
<p>This variable contains the location of qmake if it is not in the path. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-88"></a>QMAKE_QT_DLL</h5>
@@ -510,7 +510,7 @@ app {
<h5><a name="4-2-96"></a>RES_FILE</h5>
<p>This variable contains the name of the resource file for the application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-97"></a>SRCMOC</h5>
-<p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>SRCMOC</tt> contains the name of all the generated moc files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
+<p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>SRCMOC</tt> contains the name of all the generated tqmoc files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-98"></a>TARGET_EXT</h5>
<p>This variable specifies the target's extension. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-99"></a>TARGET_x</h5>
@@ -528,7 +528,7 @@ app {
<h5><a name="4-2-105"></a>VER_PAT</h5>
<p>This variable contains the patch version number of the library, if the 'lib' <a href="qmake-manual-8.html#TEMPLATE">template</a> is specified.</p>
<h5><a name="4-2-106"></a>QMAKE_EXT_MOC</h5>
-<p>This variable changes the extention used on included moc files.</p>
+<p>This variable changes the extention used on included tqmoc files.</p>
<p>See also <a href="qmake-manual-8.html#Extensions">File Extensions</a>.</p>
<h5><a name="4-2-107"></a>QMAKE_EXT_UI</h5>
<p>This variable changes the extention used on /e Designer UI files.</p>
@@ -714,8 +714,8 @@ QMAKE_EXTRA_UNIX_TARGETS += mytarget mytarget2
<p>This is all you need to do to actually build custom targets in qmake, of course you may want to tie one of these targets to actually building the <a href="qmake-manual-8.html#TARGET">qmake build target</a>. To do this, you simply need to include your Makefile target in the list of <a href="qmake-manual-8.html#PRE_TARGETDEPS">PRE_TARGETDEPS</a>.</p>
<p>For convenience there is also a method of customizing (UNIX) projects for generic new compilers (or even preprocessors).</p>
<pre>
-new_moc.output = moc_${QMAKE_FILE_BASE}.cpp
-new_moc.commands = moc ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
+new_moc.output = tqmoc_${QMAKE_FILE_BASE}.cpp
+new_moc.commands = tqmoc ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
new_moc.depends = g++ -E -M ${QMAKE_FILE_NAME} | sed "s,^.*: ,,"
new_moc.input = NEW_HEADERS
QMAKE_EXTRA_UNIX_COMPILERS += new_moc
diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf
index 0c680c35a..f4e2cae34 100644
--- a/doc/html/qt.dcf
+++ b/doc/html/qt.dcf
@@ -9802,8 +9802,8 @@
<section ref="menu-example.html" title="Using menus">
<keyword ref="menu-example.html">Using menus</keyword>
</section>
-<section ref="moc.html" title="Using the Meta Object Compiler">
- <keyword ref="moc.html">Using the Meta Object Compiler</keyword>
+<section ref="tqmoc.html" title="Using the Meta Object Compiler">
+ <keyword ref="tqmoc.html">Using the Meta Object Compiler</keyword>
</section>
<section ref="simple-application.html" title="Walkthrough: A Simple Application">
<keyword ref="simple-application.html">Walkthrough: A Simple Application</keyword>
diff --git a/doc/html/qtmac-as-native.html b/doc/html/qtmac-as-native.html
index a296649c7..812d089c9 100644
--- a/doc/html/qtmac-as-native.html
+++ b/doc/html/qtmac-as-native.html
@@ -118,8 +118,8 @@ the qmake tool. For example:
</pre>
<p> will generate an Xcode project file from project.pro. With qmake
-you do not have to worry about rules for TQt's preprocessors (moc
-and uic) since qmake automatically handles them and ensures that
+you do not have to worry about rules for TQt's preprocessors (tqmoc
+and tquic) since qmake automatically handles them and ensures that
everything necessary is linked into your application.
<p> TQt does not entirely interact with the development environment (for
example plugins to set a file to 'mocable' from within the Xcode
diff --git a/doc/html/signalsandslots.html b/doc/html/signalsandslots.html
index 1ea4a9f15..5691cd3d8 100644
--- a/doc/html/signalsandslots.html
+++ b/doc/html/signalsandslots.html
@@ -171,11 +171,11 @@ about each other, as long as there is someone around to set up a
connection between them initially.
<p> The preprocessor changes or removes the <tt>signals</tt>, <tt>slots</tt> and
<tt>emit</tt> keywords so that the compiler is presented with standard C++.
-<p> Run the <a href="moc.html">moc</a> on class definitions that contain
+<p> Run the <a href="tqmoc.html">tqmoc</a> on class definitions that contain
signals or slots. This produces a C++ source file which should be compiled
and linked with the other object files for the application. If you use
<a href="qmake-manual.html">qmake</a>, the makefile rules to
-automatically invoke the <a href="moc.html">moc</a> will be added to
+automatically invoke the <a href="tqmoc.html">tqmoc</a> will be added to
your makefile for you.
<p> <h2> Signals
</h2>
@@ -197,7 +197,7 @@ mechanism is totally independent of any GUI event loop. The
<p> If several slots are connected to one signal, the slots will be
executed one after the other, in an arbitrary order, when the signal
is emitted.
-<p> Signals are automatically generated by the <a href="moc.html">moc</a>
+<p> Signals are automatically generated by the <a href="tqmoc.html">tqmoc</a>
and must not be implemented in the <tt>.cpp</tt> file. They can never have
return types (i.e. use <tt>void</tt>).
<p> A note about arguments. Our experience shows that signals and slots
@@ -254,7 +254,7 @@ the signals and slots mechanism is well worth the overhead, which your
users won't even notice.
<p> <h2> Meta Object Information
</h2>
-<a name="4"></a><p> The <a href="metaobjects.html#meta-object">meta object</a> compiler (<a href="moc.html"><a href="moc.html#moc">moc</a></a>) parses the class
+<a name="4"></a><p> The <a href="metaobjects.html#meta-object">meta object</a> compiler (<a href="tqmoc.html"><a href="tqmoc.html#tqmoc">tqmoc</a></a>) parses the class
declaration in a C++ file and generates C++ code that initializes the
meta object. The meta object contains the names of all the signal and
slot members, as well as pointers to these functions. (For more
@@ -287,21 +287,21 @@ declarations.
</pre>
<p> TQ_OBJECT is expanded by the preprocessor to declare several member
-functions that are implemented by the moc; if you get compiler errors
+functions that are implemented by tqmoc; if you get compiler errors
along the lines of "virtual function TQButton::className not defined"
-you have probably forgotten to <a href="moc.html">run the moc</a> or to
-include the moc output in the link command.
+you have probably forgotten to <a href="tqmoc.html">run tqmoc</a> or to
+include tqmoc output in the link command.
<p> <pre>
public:
<a href="tqlcdnumber.html">TQLCDNumber</a>( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
TQLCDNumber( uint numDigits, TQWidget *parent=0, const char *name=0 );
</pre>
-<p> It's not obviously relevant to the moc, but if you inherit TQWidget you
+<p> It's not obviously relevant to tqmoc, but if you inherit TQWidget you
almost certainly want to have the <em>parent</em> and <em>name</em>
arguments in your constructors, and pass them to the parent
constructor.
-<p> Some destructors and member functions are omitted here; the moc
+<p> Some destructors and member functions are omitted here; tqmoc
ignores member functions.
<p> <pre>
signals:
diff --git a/doc/html/templates.html b/doc/html/templates.html
index 624f1208f..41371c5d8 100644
--- a/doc/html/templates.html
+++ b/doc/html/templates.html
@@ -59,15 +59,15 @@ the signals are protected in the sense of protected C++ member
functions. This helps programmers get their design right from the very
beginning, without even having to think about design patterns.
<p> <h3>2. Precompilers are good</h3>
-<p> TQt's <tt><a href="moc.html#moc">moc</a></tt> (Meta Object Compiler) provides a clean way to go
+<p> TQt's <tt><a href="tqmoc.html#tqmoc">tqmoc</a></tt> (Meta Object Compiler) provides a clean way to go
beyond the compiled language's facilities. It does so by generating
additional C++ code which can be compiled by any standard C++ compiler.
-The <tt>moc</tt> reads C++ source files. If it finds one or more class
+<tt>TQMoc</tt> reads C++ source files. If it finds one or more class
declarations that contain the "TQ_OBJECT" macro, it produces another C++
source file which contains the meta object code for those classes. The
-C++ source file generated by the <tt>moc</tt> must be compiled and
+C++ source file generated by <tt>tqmoc</tt> must be compiled and
linked with the implementation of the class (or it can be
-<tt>#included</tt> into the class's source file). Typically <tt>moc</tt>
+<tt>#included</tt> into the class's source file). Typically <tt>tqmoc</tt>
is not called manually, but automatically by the build system, so it
requires no additional effort by the programmer.
<p> There are other precompilers, for example, <tt>rpc</tt> and
@@ -94,7 +94,7 @@ object model is a clear disadvantage over the dynamic messaging approach
of Objective C when it comes to component-based graphical user interface
programming. What's good for a high end database server or an operating
system isn't necessarily the right design choice for a GUI frontend.
-With <tt>moc</tt>, we have turned this disadvantage into an advantage,
+With <tt>tqmoc</tt>, we have turned this disadvantage into an advantage,
and added the flexibility required to meet the challenge of safe and
efficient graphical user interface programming.
<p> Our approach goes far beyond anything you can do with templates. For
@@ -146,7 +146,7 @@ to use a signal to indicate that the requested data arrived. But if you
need to send out every single byte one by one to a consumer, use a
listener interface rather than signals and slots.
<p> <h3>5. No limits</h3>
-<p> Because we had the <tt>moc</tt> for signals and slots, we could add
+<p> Because we had <tt>tqmoc</tt> for signals and slots, we could add
other useful things to it that could not not be done with templates.
Among these are scoped translations via a generated <tt>tr()</tt>
function, and an advanced property system with introspection and
@@ -154,7 +154,7 @@ extended runtime type information. The property system alone is a great
advantage: a powerful and generic user interface design tool like TQt
Designer would be a lot harder to write - if not impossible - without a
powerful and introspective property system.
-<p> C++ with the <tt>moc</tt> preprocessor essentially gives us the
+<p> C++ with <tt>tqmoc</tt> preprocessor essentially gives us the
flexibility of Objective-C or of a Java Runtime Environment, while
maintaining C++'s unique performance and scalability advantages. It is
what makes TQt the flexible and comfortable tool we have today.
diff --git a/doc/html/titleindex b/doc/html/titleindex
index 10380c1b7..112430414 100644
--- a/doc/html/titleindex
+++ b/doc/html/titleindex
@@ -1003,7 +1003,7 @@ Transformed Graphics Demo | xform-example.html
Tutorial #2 | tutorial2.html
User Interface Compiler (uic) | uic.html
Using menus | menu-example.html
-Using the Meta Object Compiler | moc.html
+Using the Meta Object Compiler | tqmoc.html
Walkthrough: A Simple Application | simple-application.html
Walkthrough: How to use the TQt SAX2 classes | xml-sax-walkthrough.html
Walkthrough: Using SAX2 features with the TQt XML classes | xml-sax-features-walkthrough.html
diff --git a/doc/html/tools-list.html b/doc/html/tools-list.html
index 68e453105..52f0711f8 100644
--- a/doc/html/tools-list.html
+++ b/doc/html/tools-list.html
@@ -46,7 +46,7 @@ help you need
<li> <a href="qmake-manual.html">qmake</a> - create Makefiles from
simple platform-independent project files
<li> <a href="qembed.html">qembed</a> - convert data, e.g. images, into C++ code
-<li> <a href="moc.html">moc</a> - the Meta Object Compiler
+<li> <a href="tqmoc.html">tqmoc</a> - the Meta Object Compiler
<li> <a href="uic.html">uic</a> - the User Interface Compiler
<li> <tt>qtconfig</tt> - a Unix-based TQt configuration tool with online help
<p> </ul>
diff --git a/doc/html/tqmetaobject.html b/doc/html/tqmetaobject.html
index 4139c53ef..ebcedc912 100644
--- a/doc/html/tqmetaobject.html
+++ b/doc/html/tqmetaobject.html
@@ -78,7 +78,7 @@ class's properties.
<p> Classes may have a list of name-value pairs of class information.
The number of pairs is returned by <a href="#numClassInfo">numClassInfo</a>(), and values are
returned by <a href="#classInfo">classInfo</a>().
-<p> <p>See also <a href="moc.html">moc (Meta Object Compiler)</a> and <a href="objectmodel.html">Object Model</a>.
+<p> <p>See also <a href="tqmoc.html">tqmoc (Meta Object Compiler)</a> and <a href="objectmodel.html">Object Model</a>.
<p>
<hr><h2>Member Function Documentation</h2>
diff --git a/doc/html/moc.html b/doc/html/tqmoc.html
index a69924380..bc1cce783 100644
--- a/doc/html/moc.html
+++ b/doc/html/tqmoc.html
@@ -1,5 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/moc.doc:39 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
@@ -33,26 +32,26 @@ body { background: #ffffff; color: black; }
-<p> <!-- index moc --><a name="moc"></a>
-<p> The Meta Object Compiler, moc among friends, is the program which
+<p> <!-- index tqmoc --><a name="tqmoc"></a>
+<p> The TQt Meta Object Compiler, tqmoc among friends, is the program which
handles TQt's <a href="metaobjects.html">C++ extensions.</a>
-<p> The moc reads a C++ source file. If it finds one or more class
+<p> TQMoc reads a C++ source file. If it finds one or more class
declarations that contain the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro, it produces another
C++ source file which contains the <a href="metaobjects.html#meta-object">meta object</a> code for the classes
that use the TQ_OBJECT macro. Among other things, meta object code is
required for the signal/slot mechanism, runtime type information and
the dynamic property system.
-<p> The C++ source file generated by the moc must be compiled and linked
+<p> The C++ source file generated by tqmoc must be compiled and linked
with the implementation of the class (or it can be #included into the
class's source file).
<p> If you use <a href="qmake-manual.html">qmake</a> to create your
-Makefiles, build rules will be included that call the moc when
-required, so you will not need to use the moc directly. For more
-background information on moc, see <a href="templates.html">Why doesn't TQt
+Makefiles, build rules will be included that call tqmoc when
+required, so you will not need to use tqmoc directly. For more
+background information on tqmoc, see <a href="templates.html">Why doesn't TQt
use templates for signals and slots?</a>.
<p> <h2> Usage
</h2>
-<a name="1"></a><p> The moc is typically used with an input file containing class declarations
+<a name="1"></a><p> TQMoc is typically used with an input file containing class declarations
like this:
<p> <pre>
class MyClass : public <a href="tqobject.html">TQObject</a>
@@ -71,7 +70,7 @@ like this:
};
</pre>
-<p> In addition to the signals and slots shown above, the moc also
+<p> In addition to the signals and slots shown above, tqmoc also
implements object properties as in the next example. The TQ_PROPERTY
macro declares an object property, while TQ_ENUMS declares a list of
enumeration types within the class to be usable inside the
@@ -113,7 +112,7 @@ attach additional name/value-pairs to the class' meta object:
<p> The three concepts, signals and slots, properties and class
meta-data, can be combined.
-<p> The output produced by the moc must be compiled and linked, just like
+<p> The output produced by tqmoc must be compiled and linked, just like
the other C++ code in your program; otherwise the build will fail in
the final link phase. By convention, this is done in one of the
following two ways:
@@ -121,16 +120,16 @@ following two ways:
<p> <dt><b>Method A: The class declaration is found in a header
(<em>.h</em>) file</b>
<p> <dd>If the class declaration above is found in the file
-<em>myclass.h</em>, the moc output should be put in a file called
-<em>moc_myclass.cpp</em>. This file should then be compiled as
-usual, resulting in an object file <em>moc_myclass.o</em> (on Unix)
-or <em>moc_myclass.obj</em> (on Windows). This object should then be
+<em>myclass.h</em>, tqmoc output should be put in a file called
+<em>tqmoc_myclass.cpp</em>. This file should then be compiled as
+usual, resulting in an object file <em>tqmoc_myclass.o</em> (on Unix)
+or <em>tqmoc_myclass.obj</em> (on Windows). This object should then be
included in the list of object files that are linked together in the
final building phase of the program.
<p> <dt><b>Method B: The class declaration is found in an implementation
(<em>.cpp</em>) file</b>
<p> <dd>If the class declaration above is found in the file
-<em>myclass.cpp</em>, the moc output should be put in a file called
+<em>myclass.cpp</em>, tqmoc output should be put in a file called
<em>myclass.moc</em>. This file should be #included in the
implementation file, i.e. <em>myclass.cpp</em> should contain the
line
@@ -138,7 +137,7 @@ line
#include "myclass.moc"
</pre>
-at the end. This will cause the moc-generated code to be compiled and
+at the end. This will cause the tqmoc-generated code to be compiled and
linked together with the normal class definition in <em>myclass.cpp</em>, so
it is not necessary to compile and link it separately, as in Method A.
<p> </dl>
@@ -146,35 +145,35 @@ it is not necessary to compile and link it separately, as in Method A.
want the implementation file to be self-contained, or in cases where
the TQ_OBJECT class is implementation-internal and thus should not be
visible in the header file.
-<p> <h2> Automating moc Usage with Makefiles
+<p> <h2> Automating tqmoc Usage with Makefiles
</h2>
<a name="2"></a><p> For anything but the simplest test programs, it is recommended that
-you automate running the moc. By adding some rules to your program's
-Makefile, <em>make</em> can take care of running moc when necessary and
-handling the moc output.
+you automate running tqmoc. By adding some rules to your program's
+Makefile, <em>make</em> can take care of running tqmoc when necessary and
+handling tqmoc output.
<p> We recommend using Trolltech's free makefile generation tool, <a href="qmake-manual.html">qmake</a>, for building your Makefiles. This tool
recognizes both Method A and B style source files, and generates a
-Makefile that does all the necessary moc handling.
+Makefile that does all the necessary tqmoc handling.
<p> If you want to create your Makefiles yourself, here are some tips on
-how to include moc handling.
+how to include tqmoc handling.
<p> For TQ_OBJECT class declarations in header files, here is a useful
makefile rule if you only use GNU make:
<p> <pre>
- moc_%.cpp: %.h
- moc $&lt; -o $@
+ tqmoc_%.cpp: %.h
+ tqmoc $&lt; -o $@
</pre>
<p> If you want to write portably, you can use individual rules with the
following form:
<p> <pre>
- moc_NAME.cpp: NAME.h
- moc $&lt; -o $@
+ tqmoc_NAME.cpp: NAME.h
+ tqmoc $&lt; -o $@
</pre>
-<p> You must also remember to add <em>moc_NAME.cpp</em> to your SOURCES
-(substitute your favorite name) variable and <em>moc_NAME.o</em> or
-<em>moc_NAME.obj</em> to your OBJECTS variable.
-<p> (While we prefer to name our C++ source files .cpp, the moc doesn't
+<p> You must also remember to add <em>tqmoc_NAME.cpp</em> to your SOURCES
+(substitute your favorite name) variable and <em>tqmoc_NAME.o</em> or
+<em>tqmoc_NAME.obj</em> to your OBJECTS variable.
+<p> (While we prefer to name our C++ source files .cpp, tqmoc doesn't
care, so you can use .C, .cc, .CC, .cxx or even .c++ if you
prefer.)
<p> For TQ_OBJECT class declarations in implementation (.cpp) files, we
@@ -183,10 +182,10 @@ suggest a makefile rule like this:
NAME.o: NAME.moc
NAME.moc: NAME.cpp
- moc -i $&lt; -o $@
+ tqmoc -i $&lt; -o $@
</pre>
-<p> This guarantees that make will run the moc before it compiles
+<p> This guarantees that make will run tqmoc before it compiles
<em>NAME.cpp</em>. You can then put
<p> <pre>
#include "NAME.moc"
@@ -194,9 +193,9 @@ suggest a makefile rule like this:
<p> at the end of <em>NAME.cpp</em>, where all the classes declared in
that file are fully known.
-<p> <h2> Invoking moc
+<p> <h2> Invoking tqmoc
</h2>
-<a name="3"></a><p> Here are the command-line options supported by the moc:
+<a name="3"></a><p> Here are the command-line options supported by tqmoc:
<p> <center><table cellpadding="4" cellspacing="2" border="0">
<tr bgcolor="#a2c511"> <th valign="top">Option <th valign="top">Meaning
<tr bgcolor="#f0f0f0">
@@ -211,7 +210,7 @@ standard naming conventions.
<tr bgcolor="#f0f0f0">
<td valign="top">-i
<td valign="top">Do not generate an #include statement in the output.
-This may be used to run the moc on on a C++ file containing one or
+This may be used to run tqmoc on on a C++ file containing one or
more class declarations. You should then #include the meta object
code in the .cpp
file. If both -i and -f are present, the last one wins.
@@ -223,35 +222,35 @@ file. If both -i and -f are present, the last one wins.
<td valign="top">Write a flood of lex debug information to stdout.
<tr bgcolor="#d0d0d0">
<td valign="top">-p <em>path</em>
-<td valign="top">Makes the moc prepend <em>path</em>/ to
+<td valign="top">Makes tqmoc prepend <em>path</em>/ to
the file name in the generated #include statement (if one is
generated).
<tr bgcolor="#f0f0f0">
<td valign="top">-q <em>path</em>
-<td valign="top">Makes the moc prepend <em>path</em>/ to
+<td valign="top">Makes tqmoc prepend <em>path</em>/ to
the file name of qt #include files in the generated code.
</table></center>
-<p> You can explicitly tell the moc not to parse parts of a header
+<p> You can explicitly tell tqmoc not to parse parts of a header
file. It recognizes any C++ comment (//) that contains the substrings
MOC_SKIP_BEGIN or MOC_SKIP_END. They work as you would expect and you
-can have several levels of them. The net result as seen by the moc is
+can have several levels of them. The net result as seen by tqmoc is
as if you had removed all lines between a MOC_SKIP_BEGIN and a
MOC_SKIP_END.
<p> <h2> Diagnostics
</h2>
-<a name="4"></a><p> The moc will warn you about a number of dangerous or illegal
+<a name="4"></a><p> TQMoc will warn you about a number of dangerous or illegal
constructs in the TQ_OBJECT class declarations.
<p> If you get linkage errors in the final building phase of your
program, saying that YourClass::className() is undefined or that
YourClass lacks a vtbl, something has been done wrong. Most often,
-you have forgotten to compile or #include the moc-generated C++ code, or
+you have forgotten to compile or #include the tqmoc-generated C++ code, or
(in the former case) include that object file in the link command.
<p> <h2> Limitations
</h2>
-<a name="5"></a><p> The moc does not expand #include or #define, it simply skips any
+<a name="5"></a><p> TQMoc does not expand #include or #define, it simply skips any
preprocessor directives it encounters. This is regrettable, but is
not usually a problem in practice.
-<p> The moc does not handle all of C++. The main problem is that class
+<p> TQMoc does not handle all of C++. The main problem is that class
templates cannot have signals or slots. Here is an example:
<p> <pre>
class SomeTemplate&lt;int&gt; : public <a href="tqframe.html">TQFrame</a> {
@@ -267,7 +266,7 @@ have alternatives which we think are usually better, so removing these
limitations is not a high priority for us.
<p> <h3> Multiple inheritance requires <a href="tqobject.html">TQObject</a> to be first
</h3>
-<a name="5-1"></a><p> If you are using multiple inheritance, moc assumes that the <em>first</em>
+<a name="5-1"></a><p> If you are using multiple inheritance, tqmoc assumes that the <em>first</em>
inherited class is a subclass of TQObject. Also, be sure that <em>only</em>
the first inherited class is a TQObject.
<p> <pre>
@@ -276,7 +275,7 @@ the first inherited class is a TQObject.
};
</pre>
-<p> (This limitation is almost impossible to remove; since the moc does not expand
+<p> (This limitation is almost impossible to remove; since tqmoc does not expand
#include or #define, it cannot find out which one of the base classes
is a TQObject.)
<p> <h3> Function pointers cannot be arguments to signals or slots
@@ -347,7 +346,7 @@ function which is overloaded?
<p>
<p> <h3> Type macros cannot be used for signal and slot parameters
</h3>
-<a name="5-5"></a><p> Since the moc does not expand #define, type macros that take an argument
+<a name="5-5"></a><p> Since tqmoc does not expand #define, type macros that take an argument
will not work in signals and slots. Here is an illegal example:
<p> <pre>
#ifdef ultrix
@@ -408,7 +407,7 @@ contains the respective get and set functions
</h3>
<a name="5-8"></a><p> Declaring the first property within or after the public section that
contains the type definition and the respective get and set functions
-does not work as expected. The moc will complain that it can neither
+does not work as expected. TQMoc will complain that it can neither
find the functions nor resolve the type. Here is an example of the
illegal syntax:
<p> <pre>
diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html
index 74d40b68c..6a387235b 100644
--- a/doc/html/tqobject.html
+++ b/doc/html/tqobject.html
@@ -149,7 +149,7 @@ to catch child events.
TQt; see <a href="tqtimer.html">TQTimer</a> for high-level support for timers.
<p> Notice that the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro is mandatory for any object that
implements signals, slots or properties. You also need to run the
-<a href="moc.html">moc program (Meta Object Compiler)</a> on the
+<a href="tqmoc.html">tqmoc program (Meta Object Compiler)</a> on the
source file. We strongly recommend the use of this macro in <em>all</em>
subclasses of TQObject regardless of whether or not they actually
use signals, slots and properties, since failure to do so may lead
diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html
index 8c68a619d..f179ff12f 100644
--- a/doc/html/xform-example.html
+++ b/doc/html/xform-example.html
@@ -544,7 +544,7 @@ int main( int argc, char **argv )
return a.<a href="ntqapplication.html#exec">exec</a>();
}
-#include "xform.moc" // include metadata generated by the <a href="moc.html#moc">moc</a>
+#include "xform.moc" // include metadata generated by the <a href="tqmoc.html#tqmoc">tqmoc</a>
</pre>
<p>See also <a href="examples.html">Examples</a>.
diff --git a/doc/i18n.doc b/doc/i18n.doc
index 3c38b5d42..4b51c6654 100644
--- a/doc/i18n.doc
+++ b/doc/i18n.doc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Explanation of moc and the meta object system
+** Explanation of tqmoc and the meta object system
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
diff --git a/doc/installation.doc b/doc/installation.doc
index 4766797b9..d9291b80f 100644
--- a/doc/installation.doc
+++ b/doc/installation.doc
@@ -83,7 +83,7 @@ where you choose to install Qt.
\list
\i TQTDIR -- the directory in which you're building Qt
- \i PATH -- to locate the moc program and other TQt tools
+ \i PATH -- to locate the tqmoc program and other TQt tools
\i MANPATH -- to access the TQt man pages
\i LD_LIBRARY_PATH -- for the shared TQt library
\endlist
@@ -210,7 +210,7 @@ the directories where you choose to install Qt.
\list
\i TQTDIR -- the directory in which you're building Qt
- \i PATH -- to locate the moc program and other TQt tools
+ \i PATH -- to locate the tqmoc program and other TQt tools
\i MANPATH -- to access the TQt man pages
\i LD_LIBRARY_PATH -- for the shared TQt library
\endlist
diff --git a/doc/integration.doc b/doc/integration.doc
index 9328ca231..a3de47fda 100644
--- a/doc/integration.doc
+++ b/doc/integration.doc
@@ -86,7 +86,7 @@
\i Open TQt Project
\i Write TQt Project
\i Use TQt In Current Project
- \i Add MOC
+ \i Add TQMoc
\endlist
\section2 Using the 'New TQt Project' button
@@ -149,10 +149,10 @@
information for the current project so that it links against TQt and
sets any other settings needed to use TQt in that project.
- \section2 Using the 'Add MOC' button
+ \section2 Using the 'Add TQMoc' button
- The 'Add MOC' button will add in the custom build step for the selected file
- so that it creates any needed MOC files and it will add these generated
+ The 'Add TQMoc' button will add in the custom build step for the selected file
+ so that it creates any needed moc files and it will add these generated
files to the project. All you need to do to use it is click on a file that
has \c TQ_OBJECT and click the button.
diff --git a/doc/man/man1/tqmoc.1 b/doc/man/man1/tqmoc.1
index 301e95cc3..3854c4bfa 100644
--- a/doc/man/man1/tqmoc.1
+++ b/doc/man/man1/tqmoc.1
@@ -1,6 +1,6 @@
.TH tqmoc 1 "24 June 2001" "Trolltech AS" \" -*- nroff -*-
.\"
-.\" $Id: qt/moc.1 3.3.8 edited Jan 11 14:38 $
+.\" $Id: qt/tqmoc.1 3.3.8 edited Jan 11 14:38 $
.\"
.\" Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
.\"
diff --git a/doc/man/man3/tqmetaobject.3qt b/doc/man/man3/tqmetaobject.3qt
index 7a68ee4d7..e56365a3b 100644
--- a/doc/man/man3/tqmetaobject.3qt
+++ b/doc/man/man3/tqmetaobject.3qt
@@ -80,7 +80,7 @@ property() and propertyNames() to obtain information about a class's properties.
.PP
Classes may have a list of name-value pairs of class information. The number of pairs is returned by numClassInfo(), and values are returned by classInfo().
.PP
-See also moc (Meta Object Compiler) and Object Model.
+See also tqmoc (Meta Object Compiler) and Object Model.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.SH "const QClassInfo * TQMetaObject::classInfo ( int index, bool super = FALSE ) const"
diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt
index 7c371e7ae..ecf09e225 100644
--- a/doc/man/man3/tqobject.3qt
+++ b/doc/man/man3/tqobject.3qt
@@ -209,7 +209,7 @@ TQObjects can receive events through event() and filter the events of other obje
.PP
Last but not least, TQObject provides the basic timer support in Qt; see TQTimer for high-level support for timers.
.PP
-Notice that the TQ_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the moc program (Meta Object Compiler) on the source file. We strongly recommend the use of this macro in \fIall\fR subclasses of TQObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit undefined behaviour.
+Notice that the TQ_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the tqmoc program (Meta Object Compiler) on the source file. We strongly recommend the use of this macro in \fIall\fR subclasses of TQObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit undefined behaviour.
.PP
All TQt widgets inherit TQObject. The convenience function isWidgetType() returns whether an object is actually a widget. It is much faster than inherits( "TQWidget" ).
.PP
diff --git a/doc/metaobjects.doc b/doc/metaobjects.doc
index 0e9cb162e..3ee82c19f 100644
--- a/doc/metaobjects.doc
+++ b/doc/metaobjects.doc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Explanation of moc and the meta object system
+** Explanation of tqmoc and the meta object system
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
@@ -53,10 +53,10 @@ The Meta Object System is based on three things:
\i the \l TQObject class;
\i the TQ_OBJECT macro inside the private section of the class
declaration;
-\i the \link moc.html Meta Object Compiler (moc)\endlink.
+\i the \link tqmoc.html Meta Object Compiler (tqmoc)\endlink.
\endlist
-The \e moc reads a C++ source file. If it finds one or more class
+\e TQMoc reads a C++ source file. If it finds one or more class
declarations that contain the TQ_OBJECT macro, it produces another C++
source file which contains the meta object code for the classes that
contain the TQ_OBJECT macro. This generated source file is either
diff --git a/doc/misc.doc b/doc/misc.doc
index cebe61126..05d351a54 100644
--- a/doc/misc.doc
+++ b/doc/misc.doc
@@ -66,9 +66,9 @@ machine\endlink
\section1 Link error, complaining about a lack of \c vtbl, \c _vtbl, \c __vtbl or similar
This indicates that you've included the TQ_OBJECT macro in a class
-declaration and probably also run the moc, but forgot to link the
-moc-generated object code into your executable. See \link moc.html
-Using the Meta Object Compiler\endlink for details on how to use moc.
+declaration and probably also run tqmoc, but forgot to link the
+moc-generated object code into your executable. See \link tqmoc.html
+Using the Meta Object Compiler\endlink for details on how to use tqmoc.
\target diffver
\section1 Using different versions of TQt on the same machine
@@ -88,12 +88,12 @@ the relevant release of Qt.
<dt>Meta Object Compiler and other tools - Compile time
-<dd>Programmers need to run \e moc and other tools such as \e uic. These
+<dd>Programmers need to run \e tqmoc and other tools such as \e uic. These
tools are usually located in the \c bin subdirectory of TQt distributions.
-Either run \c "$TQTDIR"/bin/moc and \c "$TQTDIR"/bin/uic or add \c "$TQTDIR"/bin
-to your \c PATH and run \c moc and \c uic. If you use \c qmake the
+Either run \c "$TQTDIR"/bin/tqmoc and \c "$TQTDIR"/bin/tquic or add \c "$TQTDIR"/bin
+to your \c PATH and run \c tqmoc and \c tquic. If you use \c qmake the
appropriate lines will be added to your Makefiles so that \e uic and
-\e moc will be executed as required.
+\e tqmoc will be executed as required.
<dt>Static or shared libraries - Link time
@@ -128,7 +128,7 @@ usually consist of two parts:
\list
\i shared libraries in the run time package, usually called \c qt3.
-\i header files, static libraries, the moc and other tools in the developers'
+\i header files, static libraries, tqmoc and other tools in the developers'
kit, usually called \c qt3-dev.
\endlist
@@ -150,7 +150,7 @@ like \c qt-dev. You will need the appropriate packages:
\list
\i To build programs you will need the header files, the libraries,
-the moc and other tools from TQt 3.x. They are included in the developer
+tqmoc and other tools from TQt 3.x. They are included in the developer
package of TQt 3.x (\c qt3-dev or similar).
\i To run programs you will need the shared libraries of TQt 3.x and
@@ -169,7 +169,7 @@ You build and run programs for TQt 2.x and TQt 3.x. You will need:
\list
-\i the header files, the libraries, the moc and other tools from TQt 3.x
+\i the header files, the libraries, tqmoc and other tools from TQt 3.x
and TQt 2.x to build programs,
\i the shared libraries of TQt 3.x and TQt 2.x to run programs.
@@ -234,7 +234,7 @@ Setting \c TQTDIR ensures that the proper resources are used, such as the
documentation appropriate to the version of TQt you're using. Also
your Makfiles may refer to \c "$TQTDIR"/include and \c "$TQTDIR"/lib to
include the proper header files and link with the proper libraries.
-Setting the \c PATH ensures that the proper version of moc and other
+Setting the \c PATH ensures that the proper version of tqmoc and other
tools is being used.
\target nowinman
diff --git a/doc/object.doc b/doc/object.doc
index 50c7a1fd3..5282000c6 100644
--- a/doc/object.doc
+++ b/doc/object.doc
@@ -72,7 +72,7 @@ Many of these TQt features are implemented with standard C++
techniques, based on inheritance from \l TQObject. Others, like the
object communication mechanism and the dynamic property system,
require the \link metaobjects.html Meta Object System \endlink provided
-by Qt's own \link moc.html Meta Object Compiler (moc) \endlink.
+by TQt's own \link tqmoc.html Meta Object Compiler (tqmoc) \endlink.
The Meta Object System is a C++ extension that makes the language
better suited to true component GUI programming. Although templates can
@@ -646,15 +646,15 @@ beginning, without even having to think about design patterns.
<h3>2. Precompilers are good</h3>
-Qt's <tt>moc</tt> (Meta Object Compiler) provides a clean way to go
+TQt's <tt>tqmoc</tt> (Meta Object Compiler) provides a clean way to go
beyond the compiled language's facilities. It does so by generating
additional C++ code which can be compiled by any standard C++ compiler.
-The <tt>moc</tt> reads C++ source files. If it finds one or more class
+<tt>TQMoc</tt> reads C++ source files. If it finds one or more class
declarations that contain the "TQ_OBJECT" macro, it produces another C++
source file which contains the meta object code for those classes. The
-C++ source file generated by the <tt>moc</tt> must be compiled and
+C++ source file generated by <tt>tqmoc</tt> must be compiled and
linked with the implementation of the class (or it can be
-<tt>#included</tt> into the class's source file). Typically <tt>moc</tt>
+<tt>#included</tt> into the class's source file). Typically <tt>tqmoc</tt>
is not called manually, but automatically by the build system, so it
requires no additional effort by the programmer.
@@ -686,7 +686,7 @@ object model is a clear disadvantage over the dynamic messaging approach
of Objective C when it comes to component-based graphical user interface
programming. What's good for a high end database server or an operating
system isn't necessarily the right design choice for a GUI frontend.
-With <tt>moc</tt>, we have turned this disadvantage into an advantage,
+With <tt>tqmoc</tt>, we have turned this disadvantage into an advantage,
and added the flexibility required to meet the challenge of safe and
efficient graphical user interface programming.
@@ -746,7 +746,7 @@ listener interface rather than signals and slots.
<h3>5. No limits</h3>
-Because we had the <tt>moc</tt> for signals and slots, we could add
+Because we had <tt>tqmoc</tt> for signals and slots, we could add
other useful things to it that could not not be done with templates.
Among these are scoped translations via a generated <tt>tr()</tt>
function, and an advanced property system with introspection and
@@ -755,7 +755,7 @@ advantage: a powerful and generic user interface design tool like Qt
Designer would be a lot harder to write - if not impossible - without a
powerful and introspective property system.
-C++ with the <tt>moc</tt> preprocessor essentially gives us the
+C++ with <tt>tqmoc</tt> preprocessor essentially gives us the
flexibility of Objective-C or of a Java Runtime Environment, while
maintaining C++'s unique performance and scalability advantages. It is
what makes TQt the flexible and comfortable tool we have today.
diff --git a/doc/overviews-list.doc b/doc/overviews-list.doc
index 75b511f7d..28bcd2b16 100644
--- a/doc/overviews-list.doc
+++ b/doc/overviews-list.doc
@@ -55,7 +55,7 @@
\i \link signalsandslots.html Signals and Slots \endlink
\i \link metaobjects.html Meta Object System \endlink
\i \link properties.html Properties \endlink
- \i \link moc.html Using the Meta Object Compiler \endlink
+ \i \link tqmoc.html Using the Meta Object Compiler \endlink
\i \link templates.html Why doesn't TQt use templates for signals and slots? \endlink
\endlist
diff --git a/doc/qtmac-as-native.doc b/doc/qtmac-as-native.doc
index c0093d726..b69265206 100644
--- a/doc/qtmac-as-native.doc
+++ b/doc/qtmac-as-native.doc
@@ -148,8 +148,8 @@ it can interact with specific components of the Mac OS X experience:
\endcode
will generate an Xcode project file from project.pro. With qmake
- you do not have to worry about rules for Qt's preprocessors (moc
- and uic) since qmake automatically handles them and ensures that
+ you do not have to worry about rules for TQt's preprocessors (tqmoc
+ and tquic) since qmake automatically handles them and ensures that
everything necessary is linked into your application.
TQt does not entirely interact with the development environment (for
diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc
index e58e199b5..099fdf70a 100644
--- a/doc/signalsandslots.doc
+++ b/doc/signalsandslots.doc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Explanation of moc and the meta object system
+** Explanation of tqmoc and the meta object system
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
@@ -202,11 +202,11 @@ connection between them initially.
The preprocessor changes or removes the \c{signals}, \c{slots} and
\c{emit} keywords so that the compiler is presented with standard C++.
-Run the \link moc.html moc\endlink on class definitions that contain
+Run the \link tqmoc.html tqmoc\endlink on class definitions that contain
signals or slots. This produces a C++ source file which should be compiled
and linked with the other object files for the application. If you use
\link qmake-manual.book qmake\endlink, the makefile rules to
-automatically invoke the \link moc.html moc\endlink will be added to
+automatically invoke the \link tqmoc.html tqmoc\endlink will be added to
your makefile for you.
\section1 Signals
@@ -233,7 +233,7 @@ If several slots are connected to one signal, the slots will be
executed one after the other, in an arbitrary order, when the signal
is emitted.
-Signals are automatically generated by the \link moc.html moc\endlink
+Signals are automatically generated by the \link tqmoc.html tqmoc\endlink
and must not be implemented in the \c .cpp file. They can never have
return types (i.e. use \c void).
@@ -301,7 +301,7 @@ users won't even notice.
\section1 Meta Object Information
-The meta object compiler (\link moc.html moc\endlink) parses the class
+The meta object compiler (\link tqmoc.html tqmoc\endlink) parses the class
declaration in a C++ file and generates C++ code that initializes the
meta object. The meta object contains the names of all the signal and
slot members, as well as pointers to these functions. (For more
@@ -339,10 +339,10 @@ declarations.
\endcode
TQ_OBJECT is expanded by the preprocessor to declare several member
-functions that are implemented by the moc; if you get compiler errors
+functions that are implemented by tqmoc; if you get compiler errors
along the lines of "virtual function TQButton::className not defined"
-you have probably forgotten to \link moc.html run the moc\endlink or to
-include the moc output in the link command.
+you have probably forgotten to \link tqmoc.html run tqmoc\endlink or to
+include tqmoc output in the link command.
\code
public:
@@ -350,12 +350,12 @@ include the moc output in the link command.
TQLCDNumber( uint numDigits, TQWidget *parent=0, const char *name=0 );
\endcode
-It's not obviously relevant to the moc, but if you inherit TQWidget you
+It's not obviously relevant to tqmoc, but if you inherit TQWidget you
almost certainly want to have the \e{parent} and \e{name}
arguments in your constructors, and pass them to the parent
constructor.
-Some destructors and member functions are omitted here; the moc
+Some destructors and member functions are omitted here; tqmoc
ignores member functions.
\code
diff --git a/doc/tools-list.doc b/doc/tools-list.doc
index a844c08e9..16efa8823 100644
--- a/doc/tools-list.doc
+++ b/doc/tools-list.doc
@@ -16,8 +16,8 @@
\i \link qmake-manual.book qmake \endlink - create Makefiles from
simple platform-independent project files
\i \link qembed.html qembed\endlink - convert data, e.g. images, into C++ code
- \i \link moc.html moc\endlink - the Meta Object Compiler
- \i \link uic.html uic\endlink - the User Interface Compiler
+ \i \link tqmoc.html tqmoc\endlink - the Meta Object Compiler
+ \i \link tquic.html tquic\endlink - the User Interface Compiler
\i \c qtconfig - a Unix-based TQt configuration tool with online help
\endlist
diff --git a/doc/moc.doc b/doc/tqmoc.doc
index 27f11d2d7..edfcd4f5d 100644
--- a/doc/moc.doc
+++ b/doc/tqmoc.doc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Moc usage, expanded from the manual page
+** TQMoc usage, expanded from the manual page
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
@@ -36,39 +36,39 @@
**
**********************************************************************/
-// Note: Text in this file must also be copied to the moc man page:
-// src/moc/moc.1
+// Note: Text in this file must also be copied to the tqmoc man page:
+// src/tqmoc/tqmoc.1
/*!
-\page moc.html
+\page tqmoc.html
\title Using the Meta Object Compiler
-\keyword moc
+\keyword tqmoc
-The Meta Object Compiler, moc among friends, is the program which
-handles Qt's \link metaobjects.html C++ extensions.\endlink
+The Meta Object Compiler, tqmoc among friends, is the program which
+handles TQt's \link metaobjects.html C++ extensions.\endlink
-The moc reads a C++ source file. If it finds one or more class
+TQMoc reads a C++ source file. If it finds one or more class
declarations that contain the TQ_OBJECT macro, it produces another
C++ source file which contains the meta object code for the classes
that use the TQ_OBJECT macro. Among other things, meta object code is
required for the signal/slot mechanism, runtime type information and
the dynamic property system.
-The C++ source file generated by the moc must be compiled and linked
+The C++ source file generated by tqmoc must be compiled and linked
with the implementation of the class (or it can be #included into the
class's source file).
If you use \link qmake-manual.book qmake\endlink to create your
-Makefiles, build rules will be included that call the moc when
-required, so you will not need to use the moc directly. For more
-background information on moc, see \link templates.html Why doesn't Qt
+Makefiles, build rules will be included that call tqmoc when
+required, so you will not need to use tqmoc directly. For more
+background information on tqmoc, see \link templates.html Why doesn't Qt
use templates for signals and slots?\endlink.
\section1 Usage
-The moc is typically used with an input file containing class declarations
+TQMoc is typically used with an input file containing class declarations
like this:
\code
@@ -88,7 +88,7 @@ like this:
};
\endcode
-In addition to the signals and slots shown above, the moc also
+In addition to the signals and slots shown above, tqmoc also
implements object properties as in the next example. The TQ_PROPERTY
macro declares an object property, while TQ_ENUMS declares a list of
enumeration types within the class to be usable inside the
@@ -133,7 +133,7 @@ attach additional name/value-pairs to the class' meta object:
The three concepts, signals and slots, properties and class
meta-data, can be combined.
-The output produced by the moc must be compiled and linked, just like
+The output produced by tqmoc must be compiled and linked, just like
the other C++ code in your program; otherwise the build will fail in
the final link phase. By convention, this is done in one of the
following two ways:
@@ -144,10 +144,10 @@ following two ways:
(\e .h) file</b>
<dd>If the class declaration above is found in the file
-\e myclass.h, the moc output should be put in a file called
-\e moc_myclass.cpp. This file should then be compiled as
-usual, resulting in an object file \e moc_myclass.o (on Unix)
-or \e moc_myclass.obj (on Windows). This object should then be
+\e myclass.h, tqmoc output should be put in a file called
+\e tqmoc_myclass.cpp. This file should then be compiled as
+usual, resulting in an object file \e tqmoc_myclass.o (on Unix)
+or \e tqmoc_myclass.obj (on Windows). This object should then be
included in the list of object files that are linked together in the
final building phase of the program.
@@ -156,14 +156,14 @@ final building phase of the program.
(\e .cpp) file</b>
<dd>If the class declaration above is found in the file
-\e myclass.cpp, the moc output should be put in a file called
+\e myclass.cpp, tqmoc output should be put in a file called
\e myclass.moc. This file should be #included in the
implementation file, i.e. \e myclass.cpp should contain the
line
\code
#include "myclass.moc"
\endcode
-at the end. This will cause the moc-generated code to be compiled and
+at the end. This will cause the tqmoc-generated code to be compiled and
linked together with the normal class definition in \e myclass.cpp, so
it is not necessary to compile and link it separately, as in Method A.
@@ -175,42 +175,42 @@ the TQ_OBJECT class is implementation-internal and thus should not be
visible in the header file.
-\section1 Automating moc Usage with Makefiles
+\section1 Automating tqmoc Usage with Makefiles
For anything but the simplest test programs, it is recommended that
-you automate running the moc. By adding some rules to your program's
-Makefile, \e make can take care of running moc when necessary and
-handling the moc output.
+you automate running the tqmoc. By adding some rules to your program's
+Makefile, \e make can take care of running tqmoc when necessary and
+handling tqmoc output.
We recommend using Trolltech's free makefile generation tool, \link
qmake-manual.book qmake\endlink, for building your Makefiles. This tool
recognizes both Method A and B style source files, and generates a
-Makefile that does all the necessary moc handling.
+Makefile that does all the necessary tqmoc handling.
If you want to create your Makefiles yourself, here are some tips on
-how to include moc handling.
+how to include tqmoc handling.
For TQ_OBJECT class declarations in header files, here is a useful
makefile rule if you only use GNU make:
\code
- moc_%.cpp: %.h
- moc $< -o $@
+ tqmoc_%.cpp: %.h
+ tqmoc $< -o $@
\endcode
If you want to write portably, you can use individual rules with the
following form:
\code
- moc_NAME.cpp: NAME.h
- moc $< -o $@
+ tqmoc_NAME.cpp: NAME.h
+ tqmoc $< -o $@
\endcode
-You must also remember to add \e moc_NAME.cpp to your SOURCES
-(substitute your favorite name) variable and \e moc_NAME.o or
-\e moc_NAME.obj to your OBJECTS variable.
+You must also remember to add \e tqmoc_NAME.cpp to your SOURCES
+(substitute your favorite name) variable and \e tqmoc_NAME.o or
+\e tqmoc_NAME.obj to your OBJECTS variable.
-(While we prefer to name our C++ source files .cpp, the moc doesn't
+(While we prefer to name our C++ source files .cpp, tqmoc doesn't
care, so you can use .C, .cc, .CC, .cxx or even .c++ if you
prefer.)
@@ -221,10 +221,10 @@ suggest a makefile rule like this:
NAME.o: NAME.moc
NAME.moc: NAME.cpp
- moc -i $< -o $@
+ tqmoc -i $< -o $@
\endcode
-This guarantees that make will run the moc before it compiles
+This guarantees that make will run tqmoc before it compiles
\e NAME.cpp. You can then put
\code
@@ -235,9 +235,9 @@ at the end of \e NAME.cpp, where all the classes declared in
that file are fully known.
-\section1 Invoking moc
+\section1 Invoking tqmoc
-Here are the command-line options supported by the moc:
+Here are the command-line options supported by tqmoc:
\table
\header \i Option \i Meaning
@@ -254,7 +254,7 @@ standard naming conventions.
\row
\i -i
\i Do not generate an #include statement in the output.
-This may be used to run the moc on on a C++ file containing one or
+This may be used to run tqmoc on on a C++ file containing one or
more class declarations. You should then #include the meta object
code in the .cpp
file. If both -i and -f are present, the last one wins.
@@ -266,42 +266,42 @@ file. If both -i and -f are present, the last one wins.
\i Write a flood of lex debug information to stdout.
\row
\i -p \e path
-\i Makes the moc prepend \e {path}/ to
+\i Makes tqmoc prepend \e {path}/ to
the file name in the generated #include statement (if one is
generated).
\row
\i -q \e path
-\i Makes the moc prepend \e {path}/ to
+\i Makes tqmoc prepend \e {path}/ to
the file name of qt #include files in the generated code.
\endtable
-You can explicitly tell the moc not to parse parts of a header
+You can explicitly tell tqmoc not to parse parts of a header
file. It recognizes any C++ comment (//) that contains the substrings
MOC_SKIP_BEGIN or MOC_SKIP_END. They work as you would expect and you
-can have several levels of them. The net result as seen by the moc is
+can have several levels of them. The net result as seen by tqmoc is
as if you had removed all lines between a MOC_SKIP_BEGIN and a
MOC_SKIP_END.
\section1 Diagnostics
-The moc will warn you about a number of dangerous or illegal
+TQMoc will warn you about a number of dangerous or illegal
constructs in the TQ_OBJECT class declarations.
If you get linkage errors in the final building phase of your
program, saying that YourClass::className() is undefined or that
YourClass lacks a vtbl, something has been done wrong. Most often,
-you have forgotten to compile or #include the moc-generated C++ code, or
+you have forgotten to compile or #include the tqmoc-generated C++ code, or
(in the former case) include that object file in the link command.
\section1 Limitations
-The moc does not expand #include or #define, it simply skips any
+TQMoc does not expand #include or #define, it simply skips any
preprocessor directives it encounters. This is regrettable, but is
not usually a problem in practice.
-The moc does not handle all of C++. The main problem is that class
+TQMoc does not handle all of C++. The main problem is that class
templates cannot have signals or slots. Here is an example:
\code
@@ -319,7 +319,7 @@ limitations is not a high priority for us.
\section2 Multiple inheritance requires TQObject to be first
-If you are using multiple inheritance, moc assumes that the \e first
+If you are using multiple inheritance, tqmoc assumes that the \e first
inherited class is a subclass of TQObject. Also, be sure that \e only
the first inherited class is a TQObject.
@@ -329,7 +329,7 @@ the first inherited class is a TQObject.
};
\endcode
-(This limitation is almost impossible to remove; since the moc does not expand
+(This limitation is almost impossible to remove; since tqmoc does not expand
#include or #define, it cannot find out which one of the base classes
is a TQObject.)
@@ -410,7 +410,7 @@ C++ ARM, section r.11.3
\section2 Type macros cannot be used for signal and slot parameters
-Since the moc does not expand #define, type macros that take an argument
+Since tqmoc does not expand #define, type macros that take an argument
will not work in signals and slots. Here is an illegal example:
\code
@@ -475,7 +475,7 @@ contains the respective get and set functions
Declaring the first property within or after the public section that
contains the type definition and the respective get and set functions
-does not work as expected. The moc will complain that it can neither
+does not work as expected. TQMoc will complain that it can neither
find the functions nor resolve the type. Here is an example of the
illegal syntax: