You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.2 KiB
89 lines
3.2 KiB
14 years ago
|
#include <kdialog.h>
|
||
|
#include <klocale.h>
|
||
|
/****************************************************************************
|
||
|
** Form implementation generated from reading ui file './searchresultsform.ui'
|
||
|
**
|
||
|
** Created: Sa Mai 10 13:52:35 2008
|
||
|
**
|
||
|
** WARNING! All changes made in this file will be lost!
|
||
|
****************************************************************************/
|
||
|
|
||
|
#include "searchresultsform.h"
|
||
|
|
||
|
#include <qvariant.h>
|
||
|
#include <qpushbutton.h>
|
||
|
#include <qsplitter.h>
|
||
|
#include <qframe.h>
|
||
|
#include <qlayout.h>
|
||
|
#include <qtooltip.h>
|
||
|
#include <qwhatsthis.h>
|
||
|
#include "cmoduleresultview.h"
|
||
|
#include "csearchresultview.h"
|
||
|
|
||
|
/*
|
||
|
* Constructs a SearchResultsForm as a child of 'parent', with the
|
||
|
* name 'name' and widget flags set to 'f'.
|
||
|
*/
|
||
|
SearchResultsForm::SearchResultsForm( QWidget* parent, const char* name, WFlags fl )
|
||
|
: QWidget( parent, name, fl )
|
||
|
{
|
||
|
if ( !name )
|
||
|
setName( "SearchResultsForm" );
|
||
|
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
|
||
|
setMinimumSize( QSize( 300, 220 ) );
|
||
|
setBaseSize( QSize( 440, 290 ) );
|
||
|
SearchResultsFormLayout = new QVBoxLayout( this, 0, 3, "SearchResultsFormLayout");
|
||
|
|
||
|
displaySplitter = new QSplitter( this, "displaySplitter" );
|
||
|
displaySplitter->setMinimumSize( QSize( 134, 44 ) );
|
||
|
displaySplitter->setOrientation( QSplitter::Horizontal );
|
||
|
|
||
|
QWidget* privateLayoutWidget = new QWidget( displaySplitter, "rightSideBox" );
|
||
|
rightSideBox = new QVBoxLayout( privateLayoutWidget, 0, 6, "rightSideBox");
|
||
|
|
||
|
resultSplitter = new QSplitter( privateLayoutWidget, "resultSplitter" );
|
||
|
resultSplitter->setOrientation( QSplitter::Vertical );
|
||
|
|
||
|
m_moduleListBox = new Search::Result::CModuleResultView( resultSplitter, "m_moduleListBox" );
|
||
|
|
||
|
m_resultListBox = new Search::Result::CSearchResultView( resultSplitter, "m_resultListBox" );
|
||
|
rightSideBox->addWidget( resultSplitter );
|
||
|
|
||
|
buttonLayout = new QHBoxLayout( 0, 0, 6, "buttonLayout");
|
||
|
|
||
|
m_analyseButton = new QPushButton( privateLayoutWidget, "m_analyseButton" );
|
||
|
buttonLayout->addWidget( m_analyseButton );
|
||
|
buttonSpacer = new QSpacerItem( 10, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
||
|
buttonLayout->addItem( buttonSpacer );
|
||
|
rightSideBox->addLayout( buttonLayout );
|
||
|
|
||
|
m_displayFrame = new QFrame( displaySplitter, "m_displayFrame" );
|
||
|
m_displayFrame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, m_displayFrame->sizePolicy().hasHeightForWidth() ) );
|
||
|
m_displayFrame->setFrameShape( QFrame::NoFrame );
|
||
|
m_displayFrame->setFrameShadow( QFrame::Plain );
|
||
|
SearchResultsFormLayout->addWidget( displaySplitter );
|
||
|
languageChange();
|
||
|
resize( QSize(300, 220).expandedTo(minimumSizeHint()) );
|
||
|
clearWState( WState_Polished );
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Destroys the object and frees any allocated resources
|
||
|
*/
|
||
|
SearchResultsForm::~SearchResultsForm()
|
||
|
{
|
||
|
// no need to delete child widgets, Qt does it all for us
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Sets the strings of the subwidgets using the current
|
||
|
* language.
|
||
|
*/
|
||
|
void SearchResultsForm::languageChange()
|
||
|
{
|
||
|
setCaption( tr2i18n( "SearchResults" ) );
|
||
|
m_analyseButton->setText( tr2i18n( "Analyze search" ) );
|
||
|
}
|
||
|
|
||
|
#include "searchresultsform.moc"
|