#include <kdialog.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './help.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "help.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtextbrowser.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KIPIviewer::HelpDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KIPIviewer::HelpDialog::HelpDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "HelpDialog" );
    setModal( false );

    pushButton1 = new TQPushButton( this, "pushButton1" );
    pushButton1->setGeometry( TQRect( 260, 500, 230, 26 ) );

    textBrowser2 = new TQTextBrowser( this, "textBrowser2" );
    textBrowser2->setGeometry( TQRect( 10, 10, 690, 480 ) );
    languageChange();
    resize( TQSize(712, 539).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButton1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( close() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KIPIviewer::HelpDialog::~HelpDialog()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPIviewer::HelpDialog::languageChange()
{
    setCaption( tr2i18n( "Usage Image Viewer" ) );
    pushButton1->setText( tr2i18n( "O&K" ) );
    textBrowser2->setText( tr2i18n( "<b><font color=\"#5500ff\"><font size=\"+2\">Image Access</font></font></b><br>\n"
"<TABLE> \n"
" <TR> \n"
" <TD>next image</TD> \n"
" <TD>scrollwheel down/down arrow/right arrow/PgDown/Space/n</TD>\n"
" </TR> \n"
" <TR> \n"
" <TD>previous image </TD> \n"
" <TD>scrollwheel up/up arrow/left arrow/PgUp/p </TD> \n"
" </TR>\n"
"<TR> \n"
" <TD>quit</TD> \n"
" <TD>Esc</TD> \n"
" </TR> \n"
" </TABLE>\n"
"<br>\n"
" <TH><b><font color=\"#5500ff\"><font size=\"+2\">Display</font></font></b></TH> </br>\n"
"<TABLE> \n"
" <TR> \n"
" <TD>toggle fullscreen/normal </TD> \n"
" <TD>f</TD> \n"
" </TR> \n"
" <TR> \n"
" <TD>toggle scrollwheel action</TD> \n"
" <TD>c (either zoom or change image)</TD> \n"
" </TR>\n"
" <TR> \n"
" <TD>rotation </TD> \n"
" <TD>r</TD> \n"
" </TR> \n"
" <TR> \n"
" <TD>reset view </TD> \n"
" <TD>double click</TD> \n"
" </TR> \n"
" <TR> \n"
" <TD>original size</TD> \n"
" <TD>o</TD> \n"
" </TR>\n"
" </TABLE>\n"
"<br>\n"
"\n"
"\n"
"<b><font color=\"#5500ff\" size=\"+2\">Zooming</font></b><br> \n"
"<UL>\n"
"<LI>move mouse in up/down-direction while pressing the right mouse button\n"
"<LI>alternatively, press c and use the scrollwheel<br>\n"
"<LI>plus/minus\n"
"<LI>ctrl + scrollwheel\n"
"</UL>\n"
"\n"
"<b><font color=\"#5500ff\" size=\"+2\">Panning</font></b><br>\n"
"<UL> \n"
"<LI>move mouse while pressing the left button\n"
"</UL>" ) );
}

void KIPIviewer::HelpDialog::pushButton1_clicked()
{
    tqWarning( "KIPIviewer::HelpDialog::pushButton1_clicked(): Not implemented yet" );
}

#include "help.moc"
