00001 /**************************************************************************** 00002 ** Form implementation generated from reading ui file 'Qt/DescriptorVecDialog.ui' 00003 ** 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ****************************************************************************/ 00007 00008 #include "Qt/ui/DescriptorVecDialog.h" 00009 00010 #include <qvariant.h> 00011 #include <qpushbutton.h> 00012 #include <qtabwidget.h> 00013 #include <qwidget.h> 00014 #include <qtable.h> 00015 #include <qlayout.h> 00016 #include <qtooltip.h> 00017 #include <qwhatsthis.h> 00018 #include "Qt/ImageCanvas.h" 00019 #include "Qt/DescriptorVecDialog.ui.h" 00020 00021 /* 00022 * Constructs a DescriptorVecDialog as a child of 'parent', with the 00023 * name 'name' and widget flags set to 'f'. 00024 * 00025 * The dialog will by default be modeless, unless you set 'modal' to 00026 * TRUE to construct a modal dialog. 00027 */ 00028 DescriptorVecDialog::DescriptorVecDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 00029 : QDialog( parent, name, modal, fl ) 00030 { 00031 if ( !name ) 00032 setName( "DescriptorVecDialog" ); 00033 setSizeGripEnabled( TRUE ); 00034 DescriptorVecDialogLayout = new QVBoxLayout( this, 11, 6, "DescriptorVecDialogLayout"); 00035 00036 FVtab = new QTabWidget( this, "FVtab" ); 00037 00038 tab = new QWidget( FVtab, "tab" ); 00039 tabLayout = new QHBoxLayout( tab, 11, 6, "tabLayout"); 00040 00041 imgDisp = new ImageCanvas( tab, "imgDisp" ); 00042 tabLayout->addWidget( imgDisp ); 00043 FVtab->insertTab( tab, QString::fromLatin1("") ); 00044 00045 TabPage = new QWidget( FVtab, "TabPage" ); 00046 TabPageLayout = new QVBoxLayout( TabPage, 11, 6, "TabPageLayout"); 00047 00048 histDisp = new ImageCanvas( TabPage, "histDisp" ); 00049 TabPageLayout->addWidget( histDisp ); 00050 FVtab->insertTab( TabPage, QString::fromLatin1("") ); 00051 00052 TabPage_2 = new QWidget( FVtab, "TabPage_2" ); 00053 TabPageLayout_2 = new QHBoxLayout( TabPage_2, 11, 6, "TabPageLayout_2"); 00054 00055 FVtable = new QTable( TabPage_2, "FVtable" ); 00056 FVtable->setNumRows( 0 ); 00057 FVtable->setNumCols( 0 ); 00058 TabPageLayout_2->addWidget( FVtable ); 00059 FVtab->insertTab( TabPage_2, QString::fromLatin1("") ); 00060 DescriptorVecDialogLayout->addWidget( FVtab ); 00061 00062 layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 00063 spacer3 = new QSpacerItem( 21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00064 layout3->addItem( spacer3 ); 00065 00066 buttonOk = new QPushButton( this, "buttonOk" ); 00067 buttonOk->setAutoDefault( TRUE ); 00068 buttonOk->setDefault( TRUE ); 00069 layout3->addWidget( buttonOk ); 00070 00071 buttonCancel = new QPushButton( this, "buttonCancel" ); 00072 buttonCancel->setAutoDefault( TRUE ); 00073 layout3->addWidget( buttonCancel ); 00074 DescriptorVecDialogLayout->addLayout( layout3 ); 00075 languageChange(); 00076 resize( QSize(567, 587).expandedTo(minimumSizeHint()) ); 00077 clearWState( WState_Polished ); 00078 00079 // signals and slots connections 00080 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00081 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00082 } 00083 00084 /* 00085 * Destroys the object and frees any allocated resources 00086 */ 00087 DescriptorVecDialog::~DescriptorVecDialog() 00088 { 00089 // no need to delete child widgets, Qt does it all for us 00090 } 00091 00092 /* 00093 * Sets the strings of the subwidgets using the current 00094 * language. 00095 */ 00096 void DescriptorVecDialog::languageChange() 00097 { 00098 setCaption( tr( "Descriptor Vector Display" ) ); 00099 FVtab->changeTab( tab, tr( "Image" ) ); 00100 FVtab->changeTab( TabPage, tr( "Histogram" ) ); 00101 FVtab->changeTab( TabPage_2, tr( "Feature Vector" ) ); 00102 buttonOk->setText( tr( "&OK" ) ); 00103 buttonOk->setAccel( QKeySequence( QString::null ) ); 00104 buttonCancel->setText( tr( "&Cancel" ) ); 00105 buttonCancel->setAccel( QKeySequence( QString::null ) ); 00106 } 00107