You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.6 KiB
101 lines
2.6 KiB
13 years ago
|
/*!
|
||
2 months ago
|
\page tquic.html
|
||
|
\title User Interface Compiler (tquic)
|
||
13 years ago
|
|
||
2 months ago
|
\omit KEEP THIS FILE SYNCHRONIZED WITH tquic.1 \endomit
|
||
13 years ago
|
|
||
10 years ago
|
This page documents the \e{User Interface Compiler} for the TQt GUI
|
||
2 months ago
|
toolkit. The \e tquic reads a user interface definition
|
||
13 years ago
|
(.ui) file in XML as generated by \link designer-manual.book Qt
|
||
|
Designer\endlink and creates corresponding C++ header or source files.
|
||
|
It can also generate an image file to embed raw image data in C++
|
||
|
source code.
|
||
|
|
||
|
\section1 Options
|
||
|
|
||
|
\section2 File Generation Options
|
||
|
|
||
|
Generate declaration:
|
||
|
\code
|
||
2 months ago
|
tquic [options] <file>
|
||
13 years ago
|
\endcode
|
||
|
|
||
|
Generate implementation:
|
||
|
\code
|
||
2 months ago
|
tquic [options] -impl <headerfile> <file>
|
||
13 years ago
|
\endcode
|
||
|
\list
|
||
|
\i \<headerfile\> - name of the declaration file
|
||
|
\endlist
|
||
|
|
||
|
Generate image collection:
|
||
|
\code
|
||
2 months ago
|
tquic [options] -embed <project> <image1> <image2> <image3> ...
|
||
13 years ago
|
\endcode
|
||
|
\list
|
||
|
\i \<project\> - project name
|
||
|
\i \<image[0..n]\> - image files
|
||
|
\endlist
|
||
|
|
||
2 months ago
|
For convenience, \e tquic can also generate declaration or
|
||
13 years ago
|
implementation stubs for subclasses.
|
||
|
|
||
|
Generate subclass declaration:
|
||
|
\code
|
||
2 months ago
|
tquic [options] -subdecl <classname> <headerfile> <file>
|
||
13 years ago
|
\endcode
|
||
|
\list
|
||
|
\i \<classname\> - name of the subclass to generate
|
||
|
\i \<headerfile\> - declaration file of the <b>baseclass</b>
|
||
|
\endlist
|
||
|
|
||
|
Generate subclass implementation:
|
||
|
\code
|
||
2 months ago
|
tquic [options] -subimpl <classname> <headerfile> <file>
|
||
13 years ago
|
\endcode
|
||
|
\list
|
||
|
\i \<classname\> - name of the subclass to generate
|
||
|
\i \<headerfile\> - declaration file of the <b>subclass</b>
|
||
|
\endlist
|
||
|
|
||
|
\section2 General Options
|
||
|
|
||
|
\list
|
||
|
\i \c{-o file} - write output to 'file' rather than to stdout.
|
||
|
\i \c{-nofwd} - omit forward declarations of custom classes in the
|
||
|
generated header file. This is necessary if typedef classes are used.
|
||
|
\i \c{-tr func} - use \c{func(sourceText, comment)} rather than
|
||
|
trUtf8(sourceText, comment) for internationalization.
|
||
|
\i \c{-pch file} - add \c{#include "file"} as the first statement in the implementation file.
|
||
|
\endlist
|
||
|
|
||
|
\section1 Usage
|
||
|
|
||
2 months ago
|
\e tquic is almost always invoked by \c{make (1)}, rather than by hand.
|
||
13 years ago
|
|
||
|
Here are useful makefile rules if you only use GNU make:
|
||
|
\code
|
||
|
%.h: %.ui
|
||
2 months ago
|
tquic $< -o $@
|
||
13 years ago
|
|
||
|
%.cpp: %.ui
|
||
2 months ago
|
tquic -impl $*.h $< -o $@
|
||
13 years ago
|
\endcode
|
||
|
If you want to write portably, you can use individual rules of the
|
||
|
following form:
|
||
|
\code
|
||
|
NAME.h: NAME.ui
|
||
2 months ago
|
tquic $< -o $@
|
||
13 years ago
|
|
||
|
NAME.cpp: NAME.ui
|
||
2 months ago
|
tquic -impl $*.h $< -o $@
|
||
13 years ago
|
\endcode
|
||
|
You must also remember to add \c{NAME.cpp} to your SOURCES (substitute
|
||
|
your favorite name) variable and \c{NAME.o} to your OBJECTS variable.
|
||
|
|
||
2 months ago
|
(While we prefer to name our C++ source files .cpp, the \e tquic doesn't
|
||
13 years ago
|
care, so you can use .C, .cc, .CC, .cxx or even .c++ if you prefer.)
|
||
|
|
||
|
|
||
|
*/
|