Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

usage.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file './usage.ui'
00003 **
00004 ** Created: Sat Jul 12 23:53:40 2003
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 #include "usage.h"
00010 
00011 #include <qvariant.h>
00012 #include <qgroupbox.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018 
00019 /* 
00020  *  Constructs a UsageDialog which is a child of 'parent', with the 
00021  *  name 'name' and widget flags set to 'f'.
00022  *
00023  *  The dialog will by default be modeless, unless you set 'modal' to
00024  *  TRUE to construct a modal dialog.
00025  */
00026 UsageDialog::UsageDialog( QWidget* parent,  const char* name, bool modal, WFlags fl )
00027     : QDialog( parent, name, modal, fl )
00028 {
00029     if ( !name )
00030     setName( "UsageDialog" );
00031     resize( 493, 733 ); 
00032     setCaption( trUtf8( "Usage" ) );
00033     UsageDialogLayout = new QVBoxLayout( this, 11, 6, "UsageDialogLayout"); 
00034 
00035     FunctionsBox = new QGroupBox( this, "FunctionsBox" );
00036     FunctionsBox->setTitle( trUtf8( "Functions" ) );
00037     FunctionsBox->setColumnLayout(0, Qt::Vertical );
00038     FunctionsBox->layout()->setSpacing( 6 );
00039     FunctionsBox->layout()->setMargin( 11 );
00040     FunctionsBoxLayout = new QVBoxLayout( FunctionsBox->layout() );
00041     FunctionsBoxLayout->setAlignment( Qt::AlignTop );
00042 
00043     FunctionsUsage = new QLabel( FunctionsBox, "FunctionsUsage" );
00044     FunctionsUsage->setText( trUtf8( "abs(A)        \n"
00045 "acos(A)        \n"
00046 "acosh(A)   \n"
00047 "asin(A)        \n"
00048 "asinh(A)       \n"
00049 "atan(A)    \n"
00050 "atan2(A,B) \n"
00051 "atanh(A)\n"
00052 "ceil(A)        \n"
00053 "cos(A)     \n"
00054 "cosh(A)\n"
00055 "cot(A)\n"
00056 "csc(A)\n"
00057 "exp(A)     \n"
00058 "floor(A)   \n"
00059 "if(A,B,C)  \n"
00060 "int(A) \n"
00061 "log(A) \n"
00062 "log10(A)   \n"
00063 "max(A,B)   \n"
00064 "min(A,B)\n"
00065 "sec(A)\n"
00066 "sin(A) \n"
00067 "sinh(A)    \n"
00068 "sqrt(A)    \n"
00069 "tan(A) \n"
00070 "tanh(A)" ) );
00071     FunctionsBoxLayout->addWidget( FunctionsUsage );
00072     UsageDialogLayout->addWidget( FunctionsBox );
00073 
00074     OperatorsBox = new QGroupBox( this, "OperatorsBox" );
00075     OperatorsBox->setTitle( trUtf8( "Operators (in order of precedence)" ) );
00076     OperatorsBox->setColumnLayout(0, Qt::Vertical );
00077     OperatorsBox->layout()->setSpacing( 6 );
00078     OperatorsBox->layout()->setMargin( 11 );
00079     OperatorsBoxLayout = new QVBoxLayout( OperatorsBox->layout() );
00080     OperatorsBoxLayout->setAlignment( Qt::AlignTop );
00081 
00082     OperatorsUsage = new QLabel( OperatorsBox, "OperatorsUsage" );
00083     OperatorsUsage->setText( trUtf8( "-A        Unary minus\n"
00084 "A^B        A raised to the power B\n"
00085 "A*B, A/B, A%B  Multiplication, division, modulo\n"
00086 "A+B, A-B   Addition and subtraction\n"
00087 "A=B, A<B, A>B  Comparison between A and B (result is either 0 or 1)\n"
00088 "A&B        Result is 1 if int(A) AND int(B) differ from 0, else 0\n"
00089 "A|B        Result is 1 if int(A) OR int(B) differ from 0, else 0\n"
00090 "" ) );
00091     OperatorsBoxLayout->addWidget( OperatorsUsage );
00092     UsageDialogLayout->addWidget( OperatorsBox );
00093 
00094     ConstantsBox = new QGroupBox( this, "ConstantsBox" );
00095     ConstantsBox->setTitle( trUtf8( "Constants" ) );
00096     ConstantsBox->setColumnLayout(0, Qt::Vertical );
00097     ConstantsBox->layout()->setSpacing( 6 );
00098     ConstantsBox->layout()->setMargin( 11 );
00099     ConstantsBoxLayout = new QVBoxLayout( ConstantsBox->layout() );
00100     ConstantsBoxLayout->setAlignment( Qt::AlignTop );
00101 
00102     ConstantsUsage = new QLabel( ConstantsBox, "ConstantsUsage" );
00103     ConstantsUsage->setText( trUtf8( "pi            3.141596535\n"
00104 "e (Euler's constant)   2.718281828" ) );
00105     ConstantsBoxLayout->addWidget( ConstantsUsage );
00106     UsageDialogLayout->addWidget( ConstantsBox );
00107 }
00108 
00109 /*  
00110  *  Destroys the object and frees any allocated resources
00111  */
00112 UsageDialog::~UsageDialog()
00113 {
00114     // no need to delete child widgets, Qt does it all for us
00115 }
00116 
00117 #include "usage.moc"