⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disc.cpp

📁 video linux conference
💻 CPP
字号:
/***************************************************************************                          disc.cpp  -  description                             -------------------    begin                : Sat Apr 7 2001    copyright            : (C) 2001 by andres    email                : dae@chez.com ***************************************************************************/#include "disc.h"#include <qhbox.h>#include <qlabel.h>#include <qradiobutton.h>#include <qspinbox.h>#include <qstring.h>#include <qvbox.h>#include <qvbuttongroup.h>#include <qvgroupbox.h>#include <qwidget.h>#include <kdialogbase.h>#include <klineedit.h>KDiskDialog::KDiskDialog( QWidget *parent, const char *name )            :KDialogBase( parent, name, true, QString::null,                          Ok|Cancel, Ok, true ){    QVBox *pageVBox = makeVBoxMainWidget();    QHBox *deviceSelectHBox = new QHBox( pageVBox );    deviceSelectHBox->setSpacing( 5 );    fButtonGroup = new QVButtonGroup( _("Disk type"), deviceSelectHBox );    fDVDButton = new QRadioButton( "DVD", fButtonGroup);    fDVDButton->setChecked( true );    fVCDButton = new QRadioButton( "VCD", fButtonGroup);    fVCDButton->setEnabled( false );    QVGroupBox *startVBox = new QVGroupBox( _("Starting position"), deviceSelectHBox );    QHBox *titleHBox = new QHBox( startVBox );    new QLabel( _("Title "), titleHBox );    fTitle = new QSpinBox( titleHBox );    QHBox *chapterHBox = new QHBox( startVBox );    new QLabel( _("Chapter "), chapterHBox );    fChapter = new QSpinBox( chapterHBox );    QHBox *deviceNameHBox = new QHBox( pageVBox );    new QLabel( _("Device name "), deviceNameHBox );    fLineEdit = new KLineEdit( "/dev/dvd", deviceNameHBox );}KDiskDialog::~KDiskDialog(){}QString KDiskDialog::type() const{    if ( fDVDButton->isChecked() )    {        return ( QString("dvd") );    }    else    {        return ( QString("vcd") );    }}QString KDiskDialog::device() const{    return ( fLineEdit->text() );}int KDiskDialog::title() const{    return ( fTitle->value() );}int KDiskDialog::chapter() const{    return ( fChapter->value() );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -