Ejemplo n.º 1
0
KfOptions::KfOptions( QWidget *parent, const char *name ):QTabDialog( parent, name) 
  {
    resize(400,330);
    insertPages();

    setOKButton( i18n("OK"));
    setCancelButton( i18n("Cancel"));
    setCaption(i18n("Preferences"));
    
    this->setMinimumSize(400,330);
    this->setMaximumSize(400,330);
 
    connect(this,SIGNAL(applyButtonPressed()),this,SLOT(applyChanges()));
 
  };
Ejemplo n.º 2
0
CuboidDialog::CuboidDialog()
    : QTabDialog( 0, "CuboidDialog", true )
{
    setCaption( trUtf8( "Cuboid Dialog" ) );

    // Cuboid dimensions
    cub_dimension_box = new QVGroupBox( this );
    cub_dimension_box->setFrameShape( QFrame::NoFrame );
    cub_dimension_box->setTitle( trUtf8( "Cuboid dimensions (nb of cells)" ) );

    len_label = new QLabel( "Length", cub_dimension_box );
    cubLen = new DistributionSelector( cub_dimension_box, "cubLen" );

    wid_label = new QLabel( "Width", cub_dimension_box );
    cubWid = new DistributionSelector( cub_dimension_box, "cubWid" );

    hgt_label = new QLabel( "Height", cub_dimension_box );
    cubHgt = new DistributionSelector( cub_dimension_box, "cubHgt" );

    addTab( cub_dimension_box , "Dimensions" );

    // Cuboid orientation
    cub_orientation_box = new QVGroupBox( this );
    cub_orientation_box->setFrameShape( QFrame::NoFrame );

    rot_label1 = new QLabel( "Azimuth (0.0=North, 90.0=East)", cub_orientation_box );
    cubRotStrike = new DistributionSelector( cub_orientation_box, "cubRotStrike" );

    rot_label2 = new QLabel( "Dip (0.0=Horizontal, 90.0=Vertical)", cub_orientation_box );
    cubRotDip = new DistributionSelector( cub_orientation_box, "cubRotDip" );

    addTab( cub_orientation_box, "Orientation" );

    setOKButton();
    setApplyButton();
    setCancelButton();

}