#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './camera_info_dialog.ui'
**
** Created: Mon Jan 7 18:05:40 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "camera_info.h"

#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qtextview.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a Camera_Info_Dialog which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
Camera_Info::Camera_Info( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "Camera_Info_Dialog" );
    resize( 381, 481 ); 
    setCaption( i18n( "Camera Information" ) );
    Camera_InfoLayout = new QGridLayout( this ); 
    Camera_InfoLayout->setSpacing( 6 );
    Camera_InfoLayout->setMargin( 11 );

    camera_info = new QTabWidget( this, "camera_info" );

    tab_summary = new QWidget( camera_info, "tab_summary" );
    tab_summaryLayout = new QGridLayout( tab_summary ); 
    tab_summaryLayout->setSpacing( 6 );
    tab_summaryLayout->setMargin( 11 );

    QTextView_summary = new QTextView( tab_summary, "QTextView_summary" );

    tab_summaryLayout->addWidget( QTextView_summary, 0, 0 );
    camera_info->insertTab( tab_summary, i18n( "Summary" ) );

    tab_manual = new QWidget( camera_info, "tab_manual" );
    tab_manualLayout = new QGridLayout( tab_manual ); 
    tab_manualLayout->setSpacing( 6 );
    tab_manualLayout->setMargin( 11 );

    QTextView_manual = new QTextView( tab_manual, "QTextView_manual" );

    tab_manualLayout->addWidget( QTextView_manual, 0, 0 );
    camera_info->insertTab( tab_manual, i18n( "Manual" ) );

    tab_about = new QWidget( camera_info, "tab_about" );
    tab_aboutLayout = new QGridLayout( tab_about ); 
    tab_aboutLayout->setSpacing( 6 );
    tab_aboutLayout->setMargin( 11 );

    QTextView_about = new QTextView( tab_about, "QTextView_about" );

    tab_aboutLayout->addWidget( QTextView_about, 0, 0 );
    camera_info->insertTab( tab_about, i18n( "About" ) );

    Camera_InfoLayout->addWidget( camera_info, 0, 0 );

    QPushButton_ok = new QPushButton( this, "QPushButton_ok" );
    QPushButton_ok->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, QPushButton_ok->sizePolicy().hasHeightForWidth() ) );
    QPushButton_ok->setText( i18n( "OK" ) );

    Camera_InfoLayout->addWidget( QPushButton_ok, 1, 0 );

    // signals and slots connections
    connect( QPushButton_ok, SIGNAL( clicked() ), this, SLOT( slot_ok() ) );
}

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

void Camera_Info::slot_ok()
{
  delete this;
}

