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.
200 lines
8.3 KiB
200 lines
8.3 KiB
/****************************************************************************
|
|
** Form implementation generated from reading ui file './kspanelcontourinterf.ui'
|
|
**
|
|
** Created: śro mar 20 18:52:52 2002
|
|
** by: The User Interface Compiler (uic)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
****************************************************************************/
|
|
#include "kspanelcontourinterf.h"
|
|
|
|
#include <qvariant.h>
|
|
#include <qcheckbox.h>
|
|
#include <qcombobox.h>
|
|
#include <qframe.h>
|
|
#include <qlabel.h>
|
|
#include <qlineedit.h>
|
|
#include <qpushbutton.h>
|
|
#include <qlayout.h>
|
|
#include <qtooltip.h>
|
|
#include <qwhatsthis.h>
|
|
#include "ksattrbtn.h"
|
|
#include "kspanel.h"
|
|
#include "kstextedit.h"
|
|
|
|
/*
|
|
* Constructs a KSPanelContourInterf which is a child of 'parent', with the
|
|
* name 'name'.'
|
|
*/
|
|
KSPanelContourInterf::KSPanelContourInterf( QWidget* parent, const char* name )
|
|
: KSPanel( parent, name )
|
|
{
|
|
if ( !name )
|
|
setName( "KSPanelContourInterf" );
|
|
resize( 500, 140 );
|
|
setCaption( trUtf8( "KSPanelForm" ) );
|
|
KSPanelContourInterfLayout = new QHBoxLayout( this, 1, 1, "KSPanelContourInterfLayout");
|
|
|
|
Frame3 = new QFrame( this, "Frame3" );
|
|
Frame3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, Frame3->sizePolicy().hasHeightForWidth() ) );
|
|
Frame3->setFrameShape( QFrame::StyledPanel );
|
|
Frame3->setFrameShadow( QFrame::Raised );
|
|
Frame3Layout = new QGridLayout( Frame3, 1, 1, 10, 1, "Frame3Layout");
|
|
|
|
QLabel_3 = new QLabel( Frame3, "QLabel_3" );
|
|
QLabel_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, QLabel_3->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_3->setText( trUtf8( "V-Axis" ) );
|
|
|
|
Frame3Layout->addWidget( QLabel_3, 4, 0 );
|
|
|
|
QLabel_2 = new QLabel( Frame3, "QLabel_2" );
|
|
QLabel_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, QLabel_2->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_2->setText( trUtf8( "Y-Axis" ) );
|
|
|
|
Frame3Layout->addWidget( QLabel_2, 3, 0 );
|
|
|
|
QLabel_1 = new QLabel( Frame3, "QLabel_1" );
|
|
QLabel_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, QLabel_1->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_1->setText( trUtf8( "X-Axis" ) );
|
|
|
|
Frame3Layout->addWidget( QLabel_1, 2, 0 );
|
|
|
|
TextLabel1 = new QLabel( Frame3, "TextLabel1" );
|
|
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
|
|
QFont TextLabel1_font( TextLabel1->font() );
|
|
TextLabel1_font.setBold( TRUE );
|
|
TextLabel1_font.setUnderline( TRUE );
|
|
TextLabel1->setFont( TextLabel1_font );
|
|
TextLabel1->setText( trUtf8( "Title" ) );
|
|
|
|
Frame3Layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 );
|
|
|
|
yaxisc = new QComboBox( FALSE, Frame3, "yaxisc" );
|
|
yaxisc->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, yaxisc->sizePolicy().hasHeightForWidth() ) );
|
|
yaxisc->setInsertionPolicy( QComboBox::AtTop );
|
|
|
|
Frame3Layout->addMultiCellWidget( yaxisc, 3, 3, 1, 2 );
|
|
|
|
vaxisc = new QComboBox( FALSE, Frame3, "vaxisc" );
|
|
vaxisc->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, vaxisc->sizePolicy().hasHeightForWidth() ) );
|
|
vaxisc->setInsertionPolicy( QComboBox::AtTop );
|
|
|
|
Frame3Layout->addMultiCellWidget( vaxisc, 4, 4, 1, 2 );
|
|
|
|
xaxisc = new QComboBox( FALSE, Frame3, "xaxisc" );
|
|
xaxisc->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, xaxisc->sizePolicy().hasHeightForWidth() ) );
|
|
xaxisc->setInsertionPolicy( QComboBox::AtTop );
|
|
|
|
Frame3Layout->addMultiCellWidget( xaxisc, 2, 2, 1, 2 );
|
|
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
|
|
Frame3Layout->addItem( spacer, 5, 2 );
|
|
|
|
titlee = new KSTextEdit( Frame3, "titlee" );
|
|
titlee->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, titlee->sizePolicy().hasHeightForWidth() ) );
|
|
titlee->setMinimumSize( QSize( 0, 22 ) );
|
|
|
|
Frame3Layout->addMultiCellWidget( titlee, 1, 1, 0, 2 );
|
|
KSPanelContourInterfLayout->addWidget( Frame3 );
|
|
|
|
Frame4 = new QFrame( this, "Frame4" );
|
|
Frame4->setFrameShape( QFrame::StyledPanel );
|
|
Frame4->setFrameShadow( QFrame::Raised );
|
|
Frame4Layout = new QGridLayout( Frame4, 1, 1, 10, 1, "Frame4Layout");
|
|
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
|
|
Frame4Layout->addItem( spacer_2, 4, 0 );
|
|
|
|
QLabel_4 = new QLabel( Frame4, "QLabel_4" );
|
|
QLabel_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, QLabel_4->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_4->setText( trUtf8( "Point" ) );
|
|
|
|
Frame4Layout->addWidget( QLabel_4, 2, 0 );
|
|
|
|
TextLabel1_2 = new QLabel( Frame4, "TextLabel1_2" );
|
|
QFont TextLabel1_2_font( TextLabel1_2->font() );
|
|
TextLabel1_2_font.setBold( TRUE );
|
|
TextLabel1_2_font.setUnderline( TRUE );
|
|
TextLabel1_2->setFont( TextLabel1_2_font );
|
|
TextLabel1_2->setText( trUtf8( "Grid" ) );
|
|
|
|
Frame4Layout->addMultiCellWidget( TextLabel1_2, 0, 0, 0, 1 );
|
|
|
|
gridLine = new KSLineBtn( Frame4, "gridLine" );
|
|
gridLine->setMinimumSize( QSize( 0, 22 ) );
|
|
gridLine->setMaximumSize( QSize( 80, 32767 ) );
|
|
|
|
Frame4Layout->addWidget( gridLine, 1, 1 );
|
|
|
|
QLabel_5 = new QLabel( Frame4, "QLabel_5" );
|
|
QLabel_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, QLabel_5->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_5->setText( trUtf8( "Line" ) );
|
|
|
|
Frame4Layout->addWidget( QLabel_5, 1, 0 );
|
|
|
|
gridPoint = new KSPointBtn( Frame4, "gridPoint" );
|
|
gridPoint->setMinimumSize( QSize( 0, 22 ) );
|
|
gridPoint->setMaximumSize( QSize( 80, 32767 ) );
|
|
|
|
Frame4Layout->addWidget( gridPoint, 2, 1 );
|
|
|
|
labelSpacing = new QLineEdit( Frame4, "labelSpacing" );
|
|
labelSpacing->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 1, 0, labelSpacing->sizePolicy().hasHeightForWidth() ) );
|
|
labelSpacing->setMaximumSize( QSize( 80, 32767 ) );
|
|
|
|
Frame4Layout->addWidget( labelSpacing, 3, 1 );
|
|
|
|
QLabel_6 = new QLabel( Frame4, "QLabel_6" );
|
|
QLabel_6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, QLabel_6->sizePolicy().hasHeightForWidth() ) );
|
|
QLabel_6->setText( trUtf8( "Label spacing" ) );
|
|
|
|
Frame4Layout->addWidget( QLabel_6, 3, 0 );
|
|
KSPanelContourInterfLayout->addWidget( Frame4 );
|
|
|
|
Frame5 = new QFrame( this, "Frame5" );
|
|
Frame5->setFrameShape( QFrame::StyledPanel );
|
|
Frame5->setFrameShadow( QFrame::Raised );
|
|
Frame5Layout = new QGridLayout( Frame5, 1, 1, 10, 1, "Frame5Layout");
|
|
|
|
legendc = new QCheckBox( Frame5, "legendc" );
|
|
legendc->setText( trUtf8( "Show legend item" ) );
|
|
|
|
Frame5Layout->addMultiCellWidget( legendc, 4, 4, 0, 1 );
|
|
|
|
labelsc = new QCheckBox( Frame5, "labelsc" );
|
|
labelsc->setText( trUtf8( "Show level labels" ) );
|
|
|
|
Frame5Layout->addMultiCellWidget( labelsc, 3, 3, 0, 1 );
|
|
|
|
linesc = new QCheckBox( Frame5, "linesc" );
|
|
linesc->setText( trUtf8( "Show level lines" ) );
|
|
|
|
Frame5Layout->addMultiCellWidget( linesc, 2, 2, 0, 1 );
|
|
|
|
fillsc = new QCheckBox( Frame5, "fillsc" );
|
|
fillsc->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 1, 0, fillsc->sizePolicy().hasHeightForWidth() ) );
|
|
fillsc->setText( trUtf8( "Fill contours" ) );
|
|
|
|
Frame5Layout->addMultiCellWidget( fillsc, 1, 1, 0, 1 );
|
|
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
|
|
Frame5Layout->addItem( spacer_3, 5, 0 );
|
|
|
|
TextLabel1_3 = new QLabel( Frame5, "TextLabel1_3" );
|
|
QFont TextLabel1_3_font( TextLabel1_3->font() );
|
|
TextLabel1_3_font.setBold( TRUE );
|
|
TextLabel1_3_font.setUnderline( TRUE );
|
|
TextLabel1_3->setFont( TextLabel1_3_font );
|
|
TextLabel1_3->setText( trUtf8( "Options" ) );
|
|
|
|
Frame5Layout->addWidget( TextLabel1_3, 0, 0 );
|
|
KSPanelContourInterfLayout->addWidget( Frame5 );
|
|
}
|
|
|
|
/*
|
|
* Destroys the object and frees any allocated resources
|
|
*/
|
|
KSPanelContourInterf::~KSPanelContourInterf()
|
|
{
|
|
// no need to delete child widgets, Qt does it all for us
|
|
}
|
|
|
|
#include "kspanelcontourinterf.moc"
|