TQBoxLayout | Lines up child widgets horizontally or vertically |
TQButtonGroup | Organizes TQButton widgets in a group - |
TQCDEStyle | CDE look and feel + |
TQCDEStyle | CDE look and feel |
TQColor | Colors based on RGB or HSV values |
TQColorGroup | Group of widget colors - |
TQCommonStyle | Encapsulates the common Look and Feel of a GUI + |
TQCommonStyle | Encapsulates the common Look and Feel of a GUI |
TQCursor | Mouse cursor with an arbitrary shape |
TQFont | Font used for drawing text |
TQGLayoutIterator | Abstract base class of internal layout iterators @@ -56,11 +56,11 @@ style. |
TQLayoutItem | Abstract item that a TQLayout manipulates |
TQLayoutIterator | Iterators over TQLayoutItem |
TQMacStyle | Implements an Appearance Manager style - |
TQMotifPlusStyle | More sophisticated Motif-ish look and feel - |
TQMotifStyle | Motif look and feel + |
TQMotifPlusStyle | More sophisticated Motif-ish look and feel + |
TQMotifStyle | Motif look and feel |
TQPalette | Color groups for each widget state - |
TQPlatinumStyle | Mac/Platinum look and feel - |
TQSGIStyle | SGI/Irix look and feel + |
TQPlatinumStyle | Mac/Platinum look and feel + |
TQSGIStyle | SGI/Irix look and feel |
TQSizeGrip | Corner-grip for resizing a top-level window |
TQSizePolicy | Layout attribute describing horizontal and vertical resizing policy |
TQSpacerItem | Blank space in a layout @@ -71,7 +71,7 @@ style. |
TQVButtonGroup | Organizes TQButton widgets in a vertical column |
TQVGroupBox | Organizes a group of widgets in a vertical column |
TQWidgetItem | Layout item that represents a widget - |
TQWindowsStyle | Microsoft Windows-like look and feel + |
TQWindowsStyle | Microsoft Windows-like look and feel |
The first step is to pick one of the base styles provided with TQt to build your custom style from. The choice will depend on what look and feel you are trying to achieve. We recommend that you choose from the -TQWindowsStyle derived classes or the TQMotifStyle derived classes. +TQWindowsStyle derived classes or the TQMotifStyle derived classes. These are the two base look and feel classes in the TQt style engine. -Inheriting directly from TQCommonStyle is also an option if you want to +Inheriting directly from TQCommonStyle is also an option if you want to start almost from scratch when implementing your style. In this simple example we will inherit from TQWindowsStyle.
-#include <ntqwindowsstyle.h> +#include <tqwindowsstyle.h> -class CustomStyle : public TQWindowsStyle { +class CustomStyle : public TQWindowsStyle { TQ_OBJECT public: CustomStyle(); diff --git a/doc/html/functions.html b/doc/html/functions.html index 10b8d1e6..891be771 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -56,7 +56,7 @@ abort: TQAction TQButton TQCheckBox TQMenuData TQPopupMenu TQPushButton TQRadioButton
#include "mainwindow.h" #include <ntqapplication.h> -#include <qmotif.h> +#include <tqmotif.h> int main( int argc, char **argv ) { XtSetLanguageProc( NULL, NULL, NULL ); - TQMotif integrator( "customwidget" ); + TQMotif integrator( "customwidget" ); TQApplication app( argc, argv ); MainWindow mainwindow; @@ -86,7 +86,7 @@ int main( int argc, char **argv ) #include <tqpopupmenu.h> #include <tqstatusbar.h> -#include <qmotifwidget.h> +#include <tqmotifwidget.h> #include <Xm/Form.h> #include <Xm/PushB.h> @@ -103,7 +103,7 @@ int main( int argc, char **argv ) statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") ); customwidget = - new TQMotifWidget( this, xmFormWidgetClass, NULL, 0, "form" ); + new TQMotifWidget( this, xmFormWidgetClass, NULL, 0, "form" ); XmString str; Arg args[6]; diff --git a/doc/html/motif-dialog-example.html b/doc/html/motif-dialog-example.html index 8a72d684..470b1a0d 100644 --- a/doc/html/motif-dialog-example.html +++ b/doc/html/motif-dialog-example.html @@ -39,10 +39,10 @@ body { background: #ffffff; color: black; }
#ifndef MAINWINDOW_H #define MAINWINDOW_H -#include <qmotifwidget.h> +#include <tqmotifwidget.h> -class MainWindow : public TQMotifWidget +class MainWindow : public TQMotifWidget { public: MainWindow(); @@ -57,7 +57,7 @@ public:
Implementation:
#include <ntqapplication.h> -#include <qmotif.h> +#include <tqmotif.h> #include "mainwindow.h" @@ -66,7 +66,7 @@ int main( int argc, char **argv ) { XtSetLanguageProc( NULL, NULL, NULL ); - TQMotif integrator( "dialog" ); + TQMotif integrator( "dialog" ); TQApplication app( argc, argv ); MainWindow *mainwindow = new MainWindow; @@ -114,9 +114,9 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer ) MainWindow::MainWindow() - : TQMotifWidget( 0, xmMainWindowWidgetClass, NULL, 0, "mainwindow" ) + : TQMotifWidget( 0, xmMainWindowWidgetClass, NULL, 0, "mainwindow" ) { - Widget menubar = XmCreateMenuBar( motifWidget(), "menubar", NULL, 0 ); + Widget menubar = XmCreateMenuBar( motifWidget(), "menubar", NULL, 0 ); Widget filemenu = XmCreatePulldownMenu( menubar, "filemenu", NULL, 0 ); Widget item; @@ -154,14 +154,14 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer ) Arg args[2]; XtSetArg( args[0], XmNeditMode, XmMULTI_LINE_EDIT ); Widget texteditor = - XmCreateScrolledText( motifWidget(), "texteditor", + XmCreateScrolledText( motifWidget(), "texteditor", args, 1 ); XtManageChild( menubar ); XtManageChild( texteditor ); // pick a nice default size - XtVaSetValues( motifWidget(), + XtVaSetValues( motifWidget(), XmNwidth, 400, XmNheight, 300, NULL ); @@ -172,10 +172,10 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer ) void MainWindow::showMotifDialog() { - TQMotifDialog dialog( this, "custom dialog", TRUE ); + TQMotifDialog dialog( this, "custom dialog", TRUE ); dialog.setCaption( tr("Custom Motif Dialog") ); - Widget form = XmCreateForm( dialog.shell(), "custom motif dialog", NULL, 0 ); + Widget form = XmCreateForm( dialog.shell(), "custom motif dialog", NULL, 0 ); XmString str; Arg args[9]; @@ -220,7 +220,7 @@ void MainWindow::showMotifDialog() void MainWindow::showTQtDialog() { // custom TQt-based dialog using a Motif-based parent - CustomDialog customdialog( motifWidget(), "custom dialog", TRUE ); + CustomDialog customdialog( motifWidget(), "custom dialog", TRUE ); customdialog.exec(); }diff --git a/doc/html/motif-examples.html b/doc/html/motif-examples.html index 4304eb4b..9ce8ed6b 100644 --- a/doc/html/motif-examples.html +++ b/doc/html/motif-examples.html @@ -32,7 +32,7 @@ body { background: #ffffff; color: black; }
The following example programs illustrate the use of the TQMotif Extension +
The following example programs illustrate the use of the TQMotif Extension assisting in the migration process of old Xt and Motif based code to the more comfortable TQt toolkit.
For more information see the TQMotif
diff --git a/doc/html/motif-extension.html b/doc/html/motif-extension.html
index 5d7e1bf9..86e53c7d 100644
--- a/doc/html/motif-extension.html
+++ b/doc/html/motif-extension.html
@@ -44,9 +44,9 @@ replaces the older Xt/Motif Support Extension included with earlier
versions of TQt.
The TQt Motif Extension consists of the following classes:
TQMotifWidget and TQMotifDialog will use the same Visual, Colormap
+ TQMotifWidget and TQMotifDialog will use the same Visual, Colormap
and color depth that TQApplication uses. When using CDE, the color
scheme may be incorrect when using a Visual, Colormap and color depth
that is not the default. To work around this problem, add the
@@ -87,9 +87,9 @@ For example:
...
// TQMotif* headers next
- #include <qmotif.h>
- #include <qmotifdialog.h>
- #include <qmotifwidget.h>
+ #include <tqmotif.h>
+ #include <tqmotifdialog.h>
+ #include <tqmotifwidget.h>
// Xt/Motif and X11 headers last
#include <X11/Xlib.h>
@@ -100,19 +100,19 @@ For example:
TQMotifWidget can be used together with TQDesktopWidget to create
+ TQMotifWidget can be used together with TQDesktopWidget to create
top-level windows on multiple screens. A common mistake is to create
a TQMotifWidget on a non-default screen while the Xt/Motif widgets are
created on the default screen. The solution is to specify the screen
to both TQMotifWidget and the Xt/Motif child. For example:
To be able to use TQt, we need to create a TQApplication object. The
TQApplication class controls all the event delivery and display
diff --git a/doc/html/motif-walkthrough-3.html b/doc/html/motif-walkthrough-3.html
index 2ad589fc..d579c861 100644
--- a/doc/html/motif-walkthrough-3.html
+++ b/doc/html/motif-walkthrough-3.html
@@ -48,7 +48,7 @@ provide useful static convenience functions.
Each of these functions takes a TQWidget *parent argument. If we
pass zero as the parent argument, then we will have dialogs that
are centered on the screen, instead of being centered over our main
-window. We can have TQMotifWidget create our XmMainWindow, and we
+window. We can have TQMotifWidget create our XmMainWindow, and we
can then use this class as the parent for both Motif dialogs and TQt
dialogs.
We need to include the appropriate headers for TQMotifWidget and
@@ -57,9 +57,9 @@ dialogs.
Next, we make a few modifications to how the application is
-initialized. We could initialize Xt/Motif and create the XtAppContext ourselves, but TQMotif can do this for us.
+initialized. We could initialize Xt/Motif and create the XtAppContext ourselves, but TQMotif can do this for us.
We also let TQApplication open the connection to the X server. Next,
-we create a TQMotifWidget, passing xmMainWindowWidgetClass as the widgetclass argument. We can now use the TQMotifWidget::motifWidget()
+we create a TQMotifWidget, passing xmMainWindowWidgetClass as the widgetclass argument. We can now use the TQMotifWidget::motifWidget()
function to access the Motif widget. The shell widget is created
automatically by TQMotifWidget. We use XtParent() to access it.
The top-level window is now a TQMotifWidget, which means we can use it
@@ -79,7 +79,7 @@ and Save() functions.
We also change the arguments to the callbacks. We pass the top-level
-TQMotifWidget as the client_data to these functions, since we will
+TQMotifWidget as the client_data to these functions, since we will
be using it as the parent for the TQFileDialog.
At this point in the code, the page should be deleted. The code to do
this is in the DoDeletePage() function. We move the contents of DoDeletePage() to this point and remove the DoDeletePage() function
completely.
- Next, we change todo.cpp to pass the top-level TQMotifWidget as the
+ Next, we change todo.cpp to pass the top-level TQMotifWidget as the
client_data tot he DeletePage() function.
diff --git a/doc/html/motif-walkthrough-4.html b/doc/html/motif-walkthrough-4.html
index 90099c4c..f5810871 100644
--- a/doc/html/motif-walkthrough-4.html
+++ b/doc/html/motif-walkthrough-4.html
@@ -56,7 +56,7 @@ to the .pro file, and regenerate the Makefile. The uicuic is invoked
automatically from makefiles generated from .pro files.)
- We need to pass the top-level TQMotifWidget as the client_data
+ We need to pass the top-level TQMotifWidget as the client_data
argument to the EditPage function, which we will use as the parent
for our new PageEditDialog. We do this the same way as we have
done for the Open and Save As dialogs in todo.cpp.
diff --git a/doc/html/motif-walkthrough-5.html b/doc/html/motif-walkthrough-5.html
index d6ad1178..31b1aebf 100644
--- a/doc/html/motif-walkthrough-5.html
+++ b/doc/html/motif-walkthrough-5.html
@@ -41,7 +41,7 @@ have converted the View widget. The Print dialog will be
removed once we have finished our migration, since we will use
TQPrinter instead. Based on this information, we decide that it is not
worth replacing the Print dialog with a custom TQDialog replacement.
-Instead, we will keep the Motif based dialog and use TQMotifDialog to
+Instead, we will keep the Motif based dialog and use TQMotifDialog to
integrate the dialog with the application.
Now that the Print dialog has the appropriate accept and reject callbacks, we can use TQMotifDialog. First we need to include
+ Now that the Print dialog has the appropriate accept and reject callbacks, we can use TQMotifDialog. First we need to include
the TQMotifDialog header in todo.cpp.
@@ -82,19 +82,19 @@ the TQMotifDialog header in todo.cpp.
We add a ShowPrintDialog() function which will create and execute the
print dialog.
We change the Print menu item callback to call the new ShowPrintDialog() function. We pass the top-level TQMotifWidget, which
+ We change the Print menu item callback to call the new ShowPrintDialog() function. We pass the top-level TQMotifWidget, which
we will use as the parent for the dialog.
The ShowPrintDialog() function creates the Print dialog and
executes it. We use the XmdNprintCallback callback to accept the
dialog and the XmNcancelCallback callback to reject the dialog. We
-can do this easily by using the TQMotifDialog::acceptCallback() and
-TQMotifDialog::rejectCallback() functions, respectively. We also
+can do this easily by using the TQMotifDialog::acceptCallback() and
+TQMotifDialog::rejectCallback() functions, respectively. We also
ensure that the print callback continues to call the Print() function as before.
After we build the project, the application runs and operates as
expected. There is no visual or behavioral difference, even though
-the Print dialog is using TQMotifDialog.
+the Print dialog is using TQMotifDialog.
[ Previous: Using Custom TQDialogs ]
[ Home ]
[ Next: Using TQt Main Window Classes ]
diff --git a/doc/html/motif-walkthrough-6.html b/doc/html/motif-walkthrough-6.html
index 3de6da15..ba890fa9 100644
--- a/doc/html/motif-walkthrough-6.html
+++ b/doc/html/motif-walkthrough-6.html
@@ -53,7 +53,7 @@ is then compiled and linked into our application.
add the implementation for our Main Window to this skeleton
implementation.
We begin by adding the necessary includes for TQApplication
-and TQMotifWidget.
+and TQMotifWidget.
The QuitAppl() and manageCB() callbacks are not needed any more,
so we remove them. We do not need the global shell variable
either. We remove it and all references to it in the New(), Save() and Open() callbacks.
- In main(), we make the large changes. First, we use our new MainWindow instead of TQMotifWidget with XmMainWindow.
+ In main(), we make the large changes. First, we use our new MainWindow instead of TQMotifWidget with XmMainWindow.
Earlier modifications caused the fallback_resources array to become
redundant, so we remove it.
In the near future, our program will not use Motif any more, and we
-will no longer need to use TQMotif. To prepare for this, we remove the
+will no longer need to use TQMotif. To prepare for this, we remove the
resources and optionDesc arrays and create the TQMotif instance
with just the APP_CLASS argument.
The #include statements in the source files are mostly incorrect
diff --git a/doc/html/motif-walkthrough-8.html b/doc/html/motif-walkthrough-8.html
index fbfa2eb8..82e95a07 100644
--- a/doc/html/motif-walkthrough-8.html
+++ b/doc/html/motif-walkthrough-8.html
@@ -182,14 +182,14 @@ it from our project file and regenerate our Makefile.
Now that we have implemented our new View widget, we need to remove
the old Motif based view widget from todo.cpp.
- Since we will not be using any Motif widgets, we remove all Motif #include statements, including qmotifwidget.h.
+ Since we will not be using any Motif widgets, we remove all Motif #include statements, including tqmotifwidget.h.
We also remove the forward declarations of the ReadDB() function
and the notebook, textw and labelw global variables.
Next, we remove the center widget, which uses TQMotifWidget. The Main Window widget and View widget are contained entirely in our
+ Next, we remove the center widget, which uses TQMotifWidget. The Main Window widget and View widget are contained entirely in our
MainWindow class, so no extra initialization is needed after
creating the mainwindow widget.
The last modification needed to completely remove Xt and Motif from
-our application is to stop using the TQMotif class. We remove the
-qmotif.h #include statement from todo.cpp, and remove the
+our application is to stop using the TQMotif class. We remove the
+tqmotif.h #include statement from todo.cpp, and remove the
instantiation from the main() function.
After doing this, we can remove the -lXm and -lqmotif from the
LIBS variable in our project file. Our project file also contains
diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html
index c82746ef..51edb764 100644
--- a/doc/html/ntqapplication.html
+++ b/doc/html/ntqapplication.html
@@ -1501,7 +1501,7 @@ object is transferred to TQApplication, so TQApplication will delete
the style object on application exit or when a new style is set.
Example usage:
When switching application styles, the color palette is set back to
diff --git a/doc/html/progressbar-example.html b/doc/html/progressbar-example.html
index 5b40c64f..ea9af3c7 100644
--- a/doc/html/progressbar-example.html
+++ b/doc/html/progressbar-example.html
@@ -98,7 +98,7 @@ protected slots:
#include <tqprogressbar.h>
#include <tqlayout.h>
-#include <ntqmotifstyle.h>
+#include <tqmotifstyle.h>
/*
* Constructor
@@ -137,7 +137,7 @@ protected slots:
// Create the progressbar
progress = new TQProgressBar( 100, this );
- // progress->setStyle( new TQMotifStyle() );
+ // progress->setStyle( new TQMotifStyle() );
toplayout->addMultiCellWidget( progress, 1, 1, 0, 1 );
// connect the clicked() SIGNALs of the pushbuttons to SLOTs
diff --git a/doc/html/qmacstyle.html b/doc/html/qmacstyle.html
index 5d617035..97ff9dea 100644
--- a/doc/html/qmacstyle.html
+++ b/doc/html/qmacstyle.html
@@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
The TQMacStyle class implements an Appearance Manager style.
More...
#include <qmacstyle_mac.h>
- Inherits TQWindowsStyle.
+ Inherits TQWindowsStyle.
-
Incorrect CDE Color Scheme
- Multiple Screen Support
-
- Display *dpy = TQMotif::x11Display();
+ Display *dpy = TQMotif::x11Display();
Arg args[1];
// make sure both TQMotifWidget and the XmMainWindow are on screen 1
XtSetArg(args[0], XtNscreen, ScreenOfDisplay(dpy, 1));
- TQMotifWidget *toplevel =
- new TQMotifWidget(TQApplication::desktop()->screen(1),
+ TQMotifWidget *toplevel =
+ new TQMotifWidget(TQApplication::desktop()->screen(1),
xmMainWindowWidgetClass, args, 1, "mainwindow");
diff --git a/doc/html/motif-walkthrough-1.html b/doc/html/motif-walkthrough-1.html
index 59bf202a..5f7a2fa1 100644
--- a/doc/html/motif-walkthrough-1.html
+++ b/doc/html/motif-walkthrough-1.html
@@ -35,7 +35,7 @@ body { background: #ffffff; color: black; }
[ Home ]
[ Next: Preparing to Migrate the User Interface ]
- Starting with TQMotif and TQApplication
+
Starting with TQMotif and TQApplication
@@ -123,7 +123,7 @@ the correct symbols for these functions.
Modality Requirements
@@ -74,7 +74,7 @@ function:
Integrating the Print Dialog
-
- TQApplication::setStyle( new TQWindowsStyle );
+ TQApplication::setStyle( new TQWindowsStyle );
Public Members
diff --git a/doc/html/qmacstyle_mac-h.html b/doc/html/qmacstyle_mac-h.html
index c795d9e1..360748b2 100644
--- a/doc/html/qmacstyle_mac-h.html
+++ b/doc/html/qmacstyle_mac-h.html
@@ -78,7 +78,7 @@ body { background: #ffffff; color: black; }
#define TQMACSTYLE_MAC_H
#ifndef QT_H
-#include "ntqwindowsstyle.h"
+#include "tqwindowsstyle.h"
#endif // QT_H
#if defined( TQ_WS_MAC ) && !defined( TQT_NO_STYLE_MAC )
diff --git a/doc/html/qnamespace-h.html b/doc/html/qnamespace-h.html
index 25bc8b5c..99550d23 100644
--- a/doc/html/qnamespace-h.html
+++ b/doc/html/qnamespace-h.html
@@ -663,7 +663,7 @@ public:
Key_unknown = 0xffff
};
- // documented in qcommonstyle.cpp
+ // documented in tqcommonstyle.cpp
enum ArrowType {
UpArrow,
DownArrow,
diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf
index 6fdbfe1b..a7059ee4 100644
--- a/doc/html/qt.dcf
+++ b/doc/html/qt.dcf
@@ -819,11 +819,11 @@
-