Main Page | Class List | File List | Class Members | File Members | Related Pages

ksnapshotwidgetui.cpp

00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file '/home/bojan/Documents/Code/kwebsnap/src/ksnapshotwidgetui.ui'
00004 **
00005 ** Created: Fri Jun 3 18:18:05 2005
00006 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "ksnapshotwidgetui.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qgroupbox.h>
00016 #include <qlabel.h>
00017 #include <qbuttongroup.h>
00018 #include <qprogressbar.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include <qimage.h>
00023 #include <qpixmap.h>
00024 
00025 /*
00026  *  Constructs a KWebSnapWidgetUI as a child of 'parent', with the
00027  *  name 'name' and widget flags set to 'f'.
00028  */
00029 KWebSnapWidgetUI::KWebSnapWidgetUI( QWidget* parent, const char* name, WFlags fl )
00030     : QWidget( parent, name, fl )
00031 {
00032     if ( !name )
00033         setName( "KWebSnapWidgetUI" );
00034     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
00035     setSizeGripEnabled( FALSE );
00036     KWebSnapWidgetUILayout = new QGridLayout( this, 1, 1, 11, 6, "KWebSnapWidgetUILayout"); 
00037     KWebSnapWidgetUILayout->setResizeMode( QLayout::Fixed );
00038 
00039     m_grbPreview = new QGroupBox( this, "m_grbPreview" );
00040     m_grbPreview->setFrameShape( QGroupBox::NoFrame );
00041 
00042     m_lblPreview = new QLabel( m_grbPreview, "m_lblPreview" );
00043     m_lblPreview->setGeometry( QRect( 0, 10, 318, 270 ) );
00044     m_lblPreview->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, m_lblPreview->sizePolicy().hasHeightForWidth() ) );
00045     m_lblPreview->setFrameShape( QLabel::Box );
00046     m_lblPreview->setScaledContents( TRUE );
00047 
00048     KWebSnapWidgetUILayout->addMultiCellWidget( m_grbPreview, 0, 0, 1, 2 );
00049 
00050     m_btnGroup = new QButtonGroup( this, "m_btnGroup" );
00051     m_btnGroup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, m_btnGroup->sizePolicy().hasHeightForWidth() ) );
00052     m_btnGroup->setFrameShape( QButtonGroup::NoFrame );
00053     m_btnGroup->setColumnLayout(0, Qt::Vertical );
00054     m_btnGroup->layout()->setSpacing( 6 );
00055     m_btnGroup->layout()->setMargin( 11 );
00056     m_btnGroupLayout = new QGridLayout( m_btnGroup->layout() );
00057     m_btnGroupLayout->setAlignment( Qt::AlignTop );
00058 
00059     m_btnStart = new QPushButton( m_btnGroup, "m_btnStart" );
00060 
00061     m_btnGroupLayout->addWidget( m_btnStart, 0, 0 );
00062 
00063     m_btnGrab = new QPushButton( m_btnGroup, "m_btnGrab" );
00064 
00065     m_btnGroupLayout->addWidget( m_btnGrab, 1, 0 );
00066 
00067     m_btnStop = new QPushButton( m_btnGroup, "m_btnStop" );
00068 
00069     m_btnGroupLayout->addWidget( m_btnStop, 2, 0 );
00070 
00071     m_btnConf = new QPushButton( m_btnGroup, "m_btnConf" );
00072 
00073     m_btnGroupLayout->addWidget( m_btnConf, 3, 0 );
00074 
00075     m_btnQuit = new QPushButton( m_btnGroup, "m_btnQuit" );
00076 
00077     m_btnGroupLayout->addWidget( m_btnQuit, 6, 0 );
00078 
00079     m_btnAbout = new QPushButton( m_btnGroup, "m_btnAbout" );
00080 
00081     m_btnGroupLayout->addWidget( m_btnAbout, 5, 0 );
00082 
00083     m_btnHelp = new QPushButton( m_btnGroup, "m_btnHelp" );
00084 
00085     m_btnGroupLayout->addWidget( m_btnHelp, 4, 0 );
00086 
00087     KWebSnapWidgetUILayout->addWidget( m_btnGroup, 0, 0 );
00088 
00089     m_lblLog = new QLabel( this, "m_lblLog" );
00090     m_lblLog->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, m_lblLog->sizePolicy().hasHeightForWidth() ) );
00091 
00092     KWebSnapWidgetUILayout->addMultiCellWidget( m_lblLog, 1, 1, 0, 1 );
00093 
00094     m_progressBar = new QProgressBar( this, "m_progressBar" );
00095     m_progressBar->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, m_progressBar->sizePolicy().hasHeightForWidth() ) );
00096 
00097     KWebSnapWidgetUILayout->addWidget( m_progressBar, 1, 2 );
00098     languageChange();
00099     resize( QSize(461, 356).expandedTo(minimumSizeHint()) );
00100     clearWState( WState_Polished );
00101 
00102     // signals and slots connections
00103     connect( m_btnGrab, SIGNAL( clicked() ), this, SLOT( slotSnapshot() ) );
00104     connect( m_btnStart, SIGNAL( clicked() ), this, SLOT( slotStart() ) );
00105     connect( m_btnStop, SIGNAL( clicked() ), this, SLOT( slotStop() ) );
00106     connect( m_btnAbout, SIGNAL( clicked() ), this, SLOT( slotAbout() ) );
00107     connect( m_btnQuit, SIGNAL( clicked() ), this, SLOT( slotQuit() ) );
00108     connect( m_btnConf, SIGNAL( clicked() ), this, SLOT( slotConfig() ) );
00109     connect( m_btnHelp, SIGNAL( clicked() ), this, SLOT( slotHelp() ) );
00110 }
00111 
00112 /*
00113  *  Destroys the object and frees any allocated resources
00114  */
00115 KWebSnapWidgetUI::~KWebSnapWidgetUI()
00116 {
00117     // no need to delete child widgets, Qt does it all for us
00118 }
00119 
00120 /*
00121  *  Sets the strings of the subwidgets using the current
00122  *  language.
00123  */
00124 void KWebSnapWidgetUI::languageChange()
00125 {
00126     setCaption( tr2i18n( "WebSnap" ) );
00127     m_grbPreview->setTitle( QString::null );
00128     m_btnGroup->setTitle( QString::null );
00129     m_btnStart->setText( tr2i18n( "&Start" ) );
00130     m_btnStart->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) );
00131     QToolTip::add( m_btnStart, tr2i18n( "Start capture" ) );
00132     QWhatsThis::add( m_btnStart, tr2i18n( "Press this to begin capture/transfer session." ) );
00133     m_btnGrab->setText( tr2i18n( "S&napshot" ) );
00134     m_btnGrab->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
00135     QToolTip::add( m_btnGrab, tr2i18n( "Take a snapshot" ) );
00136     QWhatsThis::add( m_btnGrab, tr2i18n( "Take a single snapshot of the desktop." ) );
00137     m_btnStop->setText( tr2i18n( "Stop" ) );
00138     m_btnStop->setAccel( QKeySequence( QString::null ) );
00139     QToolTip::add( m_btnStop, tr2i18n( "Stop capturing" ) );
00140     QWhatsThis::add( m_btnStop, tr2i18n( "Stop the current capture/transim session." ) );
00141     m_btnConf->setText( tr2i18n( "&Configure" ) );
00142     m_btnConf->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );
00143     QToolTip::add( m_btnConf, tr2i18n( "Configure WebSnap" ) );
00144     QWhatsThis::add( m_btnConf, tr2i18n( "Configure options, such as file names, ftp host, and capture quality." ) );
00145     m_btnQuit->setText( tr2i18n( "&Quit" ) );
00146     m_btnQuit->setAccel( QKeySequence( tr2i18n( "Alt+Q" ) ) );
00147     QToolTip::add( m_btnQuit, tr2i18n( "Quit WebSnap" ) );
00148     QWhatsThis::add( m_btnQuit, tr2i18n( "Quit WebSnap." ) );
00149     m_btnAbout->setText( tr2i18n( "&About" ) );
00150     m_btnAbout->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
00151     QToolTip::add( m_btnAbout, tr2i18n( "About WebSnap" ) );
00152     QWhatsThis::add( m_btnAbout, tr2i18n( "Find out about WebSnap, credits, and lisence." ) );
00153     m_btnHelp->setText( tr2i18n( "&Help" ) );
00154     m_btnHelp->setAccel( QKeySequence( tr2i18n( "Alt+H" ) ) );
00155     m_lblLog->setText( QString::null );
00156 }
00157 
00158 void KWebSnapWidgetUI::slotSnapshot()
00159 {
00160     qWarning( "KWebSnapWidgetUI::slotSnapshot(): Not implemented yet" );
00161 }
00162 
00163 void KWebSnapWidgetUI::slotStart()
00164 {
00165     qWarning( "KWebSnapWidgetUI::slotStart(): Not implemented yet" );
00166 }
00167 
00168 void KWebSnapWidgetUI::slotStop()
00169 {
00170     qWarning( "KWebSnapWidgetUI::slotStop(): Not implemented yet" );
00171 }
00172 
00173 void KWebSnapWidgetUI::slotAbout()
00174 {
00175     qWarning( "KWebSnapWidgetUI::slotAbout(): Not implemented yet" );
00176 }
00177 
00178 void KWebSnapWidgetUI::slotQuit()
00179 {
00180     qWarning( "KWebSnapWidgetUI::slotQuit(): Not implemented yet" );
00181 }
00182 
00183 void KWebSnapWidgetUI::slotConfig()
00184 {
00185     qWarning( "KWebSnapWidgetUI::slotConfig(): Not implemented yet" );
00186 }
00187 
00188 void KWebSnapWidgetUI::slotHelp()
00189 {
00190     qWarning( "KWebSnapWidgetUI::slotHelp(): Not implemented yet" );
00191 }
00192 
00193 #include "ksnapshotwidgetui.moc"

Generated on Mon Sep 5 12:52:33 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1