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

📄 configdialog.cpp

📁 thes is veer good (ksmoutTool)
💻 CPP
📖 第 1 页 / 共 3 页
字号:
    btnActiveDeskColor = new KColorButton( groupBox6, "btnActiveDeskColor" );    btnActiveDeskColor->setGeometry( QRect( 250, 130, 60, 40 ) );    btnInactiveDeskColor = new KColorButton( groupBox6, "btnInactiveDeskColor" );    btnInactiveDeskColor->setGeometry( QRect( 250, 180, 60, 40 ) );    textLabel6_2 = new QLabel( groupBox6, "textLabel6_2" );    textLabel6_2->setGeometry( QRect( 40, 82, 131, 41 ) );    textLabel7_2_2 = new QLabel( groupBox6, "textLabel7_2_2" );    textLabel7_2_2->setGeometry( QRect( 40, 176, 171, 51 ) );    textLabel7_2 = new QLabel( groupBox6, "textLabel7_2" );    textLabel7_2->setGeometry( QRect( 40, 125, 171, 51 ) );    tabPrefs->insertTab( TabPage_3, QString("") );    TabPage_4 = new QWidget( tabPrefs, "TabPage_4" );    groupBox10 = new QGroupBox( TabPage_4, "groupBox10" );    groupBox10->setGeometry( QRect( 20, 30, 640, 90 ) );    textLabel10 = new QLabel( groupBox10, "textLabel10" );    textLabel10->setGeometry( QRect( 30, 30, 110, 40 ) );    edtOpacity = new QLineEdit( groupBox10, "edtOpacity" );    edtOpacity->setGeometry( QRect( 540, 30, 51, 31 ) );    edtOpacity->setReadOnly( TRUE );    sldOpacity = new QSlider( groupBox10, "sldOpacity" );    sldOpacity->setGeometry( QRect( 150, 40, 340, 24 ) );    sldOpacity->setMaxValue( 100 );    sldOpacity->setOrientation( QSlider::Horizontal );    sldOpacity->setTickmarks( QSlider::NoMarks );    sldOpacity->setTickInterval( 0 );    groupBox9 = new QGroupBox( TabPage_4, "groupBox9" );    //groupBox9->setGeometry( QRect( 20, 240, 640, 130 ) );    textLabel11 = new QLabel( groupBox9, "textLabel11" );    //textLabel11->setGeometry( QRect( 100, 70, 200, 31 ) );    intScrWidth = new KIntNumInput( groupBox9, "intScrWidth" );    //intScrWidth->setGeometry( QRect( 340, 70, 113, 27 ) );    cbXinerama = new QCheckBox( groupBox9, "cbXinerama" );    //cbXinerama->setGeometry( QRect( 30, 30, 20, 20 ) );    textLabel1 = new QLabel( groupBox9, "textLabel1" );    //textLabel1->setGeometry( QRect( 60, 25, 201, 31 ) );    tabPrefs->insertTab( TabPage_4, QString("") );    TabPage_5 = new QWidget( tabPrefs, "TabPage_5" );    grbTooltips = new QGroupBox( TabPage_5, "grbTooltips" );    grbTooltips->setGeometry( QRect( 20, 50, 730, 400 ) );    groupBox13 = new QGroupBox( grbTooltips, "groupBox13" );    groupBox13->setGeometry( QRect( 20, 21, 240, 360 ) );    textLabel3_3 = new QLabel( groupBox13, "textLabel3_3" );    textLabel3_3->setGeometry( QRect( 10, 90, 120, 51 ) );    textLabel2 = new QLabel( groupBox13, "textLabel2" );    textLabel2->setGeometry( QRect( 10, 30, 110, 41 ) );    ttColor = new KColorButton( groupBox13, "ttColor" );    ttColor->setGeometry( QRect( 150, 30, 60, 41 ) );    ttBgColor = new KColorButton( groupBox13, "ttBgColor" );    ttBgColor->setGeometry( QRect( 150, 90, 61, 41 ) );    ttFont = new KFontChooser( grbTooltips, "ttFont" );    ttFont->setGeometry( QRect( 280, 20, 430, 360 ) );    textLabel1_4 = new QLabel( TabPage_5, "textLabel1_4" );    textLabel1_4->setGeometry( QRect( 60, 10, 140, 41 ) );    cbTooltips = new QCheckBox( TabPage_5, "cbTooltips" );    cbTooltips->setGeometry( QRect( 20, 20, 20, 20 ) );    tabPrefs->insertTab( TabPage_5, QString("") );    TabPage_6 = new QWidget( tabPrefs, "TabPage_6" );    buttonGroup3 = new QButtonGroup( TabPage_6, "buttonGroup3" );    buttonGroup3->setGeometry( QRect( 20, 0, 730, 80 ) );    rb24 = new QRadioButton( buttonGroup3, "rb24" );    rb24->setGeometry( QRect( 29, 20, 20, 20 ) );    rb12 = new QRadioButton( buttonGroup3, "rb12" );    rb12->setGeometry( QRect( 29, 50, 20, 20 ) );    textLabel5 = new QLabel( buttonGroup3, "textLabel5" );    textLabel5->setGeometry( QRect( 90, 50, 170, 21 ) );    textLabel4_3 = new QLabel( buttonGroup3, "textLabel4_3" );    textLabel4_3->setGeometry( QRect( 90, 20, 101, 20 ) );    groupBox14 = new QGroupBox( TabPage_6, "groupBox14" );    groupBox14->setGeometry( QRect( 20, 80, 730, 390 ) );    textLabel2_4 = new QLabel( groupBox14, "textLabel2_4" );    textLabel2_4->setGeometry( QRect( 30, 30, 110, 41 ) );    btnClockTextColor = new KColorButton( groupBox14, "btnClockTextColor" );    btnClockTextColor->setGeometry( QRect( 150, 30, 60, 41 ) );    fontClockText = new KFontChooser( groupBox14, "fontClockText" );    fontClockText->setGeometry( QRect( 270, 20, 440, 357 ) );    tabPrefs->insertTab( TabPage_6, QString("") );    languageChange();    resize( QSize(810, 572).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // init values	sldSmallIconNZ->setMinValue(16);    sldSmallIconNZ->setMaxValue(128);	sldBigIconNZ->setMinValue(24);    sldBigIconNZ->setMaxValue(192);	sldSmallIconPZ->setMinValue(16);    sldSmallIconPZ->setMaxValue(64);	sldBigIconPZ->setMinValue(32);    sldBigIconPZ->setMaxValue(192);	cbShowWinAllDesks->setEnabled(cbTaskbar->isChecked());	btnBorderColor->setEnabled(cbBorders->isChecked());	intScrWidth->setEnabled(cbXinerama->isChecked());	grbTooltips->setEnabled(cbTooltips->isChecked());    grbParabolic->setEnabled(rbParabolicZoom->isChecked());    grbNormal->setEnabled(!rbParabolicZoom->isChecked());    // init values of slider displays    edtOpacity->setText(QString::number(sldOpacity->value()));    edtSmallIconNZ->setText(QString::number(sldSmallIconNZ->value()));    edtBigIconNZ->setText(QString::number(sldBigIconNZ->value()));    edtSmallIconPZ->setText(QString::number(sldSmallIconPZ->value()));    edtBigIconPZ->setText(QString::number(sldBigIconPZ->value()));    // signals and slots connections    connect( cbTaskbar, SIGNAL( stateChanged(int) ), this, SLOT( cbTaskbar_stateChanged(int) ) );    connect( buttonQuit, SIGNAL( clicked() ), this, SLOT( buttonQuit_clicked() ) );    connect( cbBorders, SIGNAL( stateChanged(int) ), this, SLOT( cbBorders_stateChanged(int) ) );    connect( cbXinerama, SIGNAL( stateChanged(int) ), this, SLOT( cbXinerama_stateChanged(int) ) );    connect( buttonApply, SIGNAL( clicked() ), this, SLOT( buttonApply_clicked() ) );    connect( sldOpacity, SIGNAL( valueChanged(int) ), this, SLOT( sldOpacity_valueChanged(int) ) );    connect( sldSmallIconNZ, SIGNAL( valueChanged(int) ), this, SLOT( sldSmallIconNZ_valueChanged(int) ) );    connect( sldBigIconNZ, SIGNAL( valueChanged(int) ), this, SLOT( sldBigIconNZ_valueChanged(int) ) );    connect( sldSmallIconPZ, SIGNAL( valueChanged(int) ), this, SLOT( sldSmallIconPZ_valueChanged(int) ) );    connect( sldBigIconPZ, SIGNAL( valueChanged(int) ), this, SLOT( sldBigIconPZ_valueChanged(int) ) );	connect( cbTooltips, SIGNAL( stateChanged(int) ), this, SLOT( cbTooltips_stateChanged(int) ) );    connect( rbParabolicZoom, SIGNAL( stateChanged(int) ), this, SLOT( rbParabolicZoom_stateChanged(int) ) );}/* *  Destroys the object and frees any allocated resources */ConfigDialog::~ConfigDialog(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void ConfigDialog::languageChange(){    setCaption( tr2i18n( "KSmoothDock Preferences" ) );    buttonApply->setText( tr2i18n( "&Apply" ) );    buttonApply->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );    buttonQuit->setText( tr2i18n( "&Close" ) );    buttonQuit->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );    groupBox2->setTitle( tr2i18n( "The components of KSmoothDock you want to use" ) );    textLabel1_3->setText( tr2i18n( "Show windows from all desktops" ) );    textLabel6->setText( tr2i18n( "Quick launch menu (always enabled by default)" ) );    cbPager->setText( QString::null );    cbTaskbar->setText( tr2i18n( "checkBox3" ) );    cbClock->setText( tr2i18n( "checkBox4" ) );    cbShowWinAllDesks->setText( tr2i18n( "checkBox5" ) );    cbQuickLaunch->setText( QString::null );    textLabel7->setText( tr2i18n( "Pager" ) );    textLabel2_3->setText( tr2i18n( "Taskbar" ) );    textLabel9->setText( tr2i18n( "Clock" ) );    tabPrefs->changeTab( Widget2, tr2i18n( "Panel &Components" ) );    grbParabolic->setTitle( tr2i18n( "Parabolic Zooming Mode Options" ) );    textLabel1_6_2->setText( tr2i18n( "Zooming Speed" ) );    textLabel2_5_2->setText( tr2i18n( "Slow" ) );    textLabel3_4_2->setText( tr2i18n( "Fast" ) );    grbNormal->setTitle( tr2i18n( "Normal Smooth Zooming Mode Options" ) );    textLabel1_6->setText( tr2i18n( "Zooming Speed" ) );    textLabel2_5->setText( tr2i18n( "Slow" ) );    textLabel3_4->setText( tr2i18n( "Fast" ) );    groupBox1->setTitle( tr2i18n( "The zooming mode you want to use" ) );    buttonGroup2->setTitle( QString::null );    textLabel3->setText( tr2i18n( "Normal Smooth Zooming Mode" ) );    textLabel4->setText( tr2i18n( "Parabolic Zooming Mode" ) );    rbNormalZoom->setText( tr2i18n( "radioButton1" ) );    rbParabolicZoom->setText( tr2i18n( "radioButton2" ) );    textLabel1_2->setText( tr2i18n( "<font color=\"#aa0000\">Note: This option requires KSmoothDock to restart for the change to take effect</font>" ) );    tabPrefs->changeTab( Widget3, tr2i18n( "Icon &Zooming" ) );        gbPosition->setTitle(i18n("Position"));    lbPosition->setText(i18n("Panel Position"));    groupBox15->setTitle( tr2i18n( "Icon Sizes" ) );    groupBox3->setTitle( tr2i18n( "Normal Zooming Mode" ) );    textLabel2_2->setText( tr2i18n( "Small icon size" ) );    textLabel2_2_2->setText( tr2i18n( "Big icon size" ) );    textLabel8->setText( tr2i18n( "When scaling quick launcher icons, load base icons with size" ) );    cbbBaseIconSizeNZ->clear();    cbbBaseIconSizeNZ->insertItem( tr2i18n( "64 x 64" ) );    cbbBaseIconSizeNZ->insertItem( tr2i18n( "128 x 128" ) );    QToolTip::add( cbbBaseIconSizeNZ, tr2i18n( "Bigger size may give clear look for quick launcher icons, but may also slow down KSmoothDock" ) );    groupBox4->setTitle( tr2i18n( "Parabolic Zooming Mode" ) );    textLabel2_2_3->setText( tr2i18n( "Small icon size" ) );    textLabel2_2_2_2->setText( tr2i18n( "Big icon size" ) );    textLabel8_2->setText( tr2i18n( "When scaling quick launcher icons, load base icons with size" ) );    cbbBaseIconSizePZ->clear();    cbbBaseIconSizePZ->insertItem( tr2i18n( "64 x 64" ) );    cbbBaseIconSizePZ->insertItem( tr2i18n( "128 x 128" ) );    QToolTip::add( cbbBaseIconSizePZ, tr2i18n( "Bigger size may give clear look for quick launcher icons, but may also slow down KSmoothDock" ) );    tabPrefs->changeTab( TabPage, tr2i18n( "Arran&gement" ) );    cbbPosition->insertItem(tr2i18n("Top"));    cbbPosition->insertItem(tr2i18n("Bottom"));    cbbPosition->insertItem(tr2i18n("Left"));    cbbPosition->insertItem(tr2i18n("Right"));    groupBox17->setTitle( tr2i18n( "Hide Mode" ) );        textLabel5_3->setText( tr2i18n( "Hide automatically" ) );    cbAutohide->setText( tr2i18n( "checkBox11" ) );    tabPrefs->changeTab( TabPage_2, tr2i18n( "H&iding" ) );    groupBox5->setTitle( tr2i18n( "Borders" ) );    textLabel4_2->setText( tr2i18n( "Borders color" ) );    btnBorderColor->setText( QString::null );    cbBorders->setText( tr2i18n( "checkBox8" ) );    textLabel3_2->setText( tr2i18n( "Show borders" ) );    groupBox6->setTitle( tr2i18n( "Colors" ) );    textLabel5_2->setText( tr2i18n( "Background color" ) );    btnBgColor->setText( QString::null );    btnSepColor->setText( QString::null );    btnActiveDeskColor->setText( QString::null );    btnInactiveDeskColor->setText( QString::null );    textLabel6_2->setText( tr2i18n( "Separator color" ) );    textLabel7_2_2->setText( tr2i18n( "Inactive desktop color" ) );    textLabel7_2->setText( tr2i18n( "Active desktop color" ) );    tabPrefs->changeTab( TabPage_3, tr2i18n( "&Appearance" ) );    groupBox10->setTitle( tr2i18n( "Opacity" ) );    textLabel10->setText( tr2i18n( "Dock Opacity" ) );    //groupBox9->setTitle( tr2i18n( "Two-screen support" ) );    //textLabel11->setText( tr2i18n( "Left monitor's screen width" ) );    //cbXinerama->setText( tr2i18n( "checkBox8" ) );    //textLabel1->setText( tr2i18n( "Enable two-screen support" ) );    tabPrefs->changeTab( TabPage_4, tr2i18n( "&Misc" ) );    grbTooltips->setTitle( tr2i18n( "Tooltips font" ) );    groupBox13->setTitle( tr2i18n( "Colors" ) );    textLabel3_3->setText( tr2i18n( "Background color" ) );    textLabel2->setText( tr2i18n( "Text color" ) );    ttColor->setText( QString::null );    ttBgColor->setText( QString::null );    textLabel1_4->setText( tr2i18n( "Show tooltips" ) );    cbTooltips->setText( tr2i18n( "checkBox14" ) );    tabPrefs->changeTab( TabPage_5, tr2i18n( "&Tooltips" ) );    buttonGroup3->setTitle( tr2i18n( "Clock style" ) );    rb24->setText( tr2i18n( "radioButton5" ) );    rb12->setText( tr2i18n( "radioButton6" ) );    textLabel5->setText( tr2i18n( "12 hours clock (AM, PM)" ) );    textLabel4_3->setText( tr2i18n( "24 hours clock" ) );    groupBox14->setTitle( tr2i18n( "Clock font" ) );    textLabel2_4->setText( tr2i18n( "Text color" ) );    btnClockTextColor->setText( QString::null );    tabPrefs->changeTab( TabPage_6, tr2i18n( "&Clock" ) );}void ConfigDialog::cbTaskbar_stateChanged( int ){    cbShowWinAllDesks->setEnabled(cbTaskbar->isChecked());}void ConfigDialog::buttonQuit_clicked(){    hide();}void ConfigDialog::cbBorders_stateChanged( int ){    btnBorderColor->setEnabled(cbBorders->isChecked());}void ConfigDialog::cbXinerama_stateChanged( int ) {    intScrWidth->setEnabled(cbXinerama->isChecked());}

⌨️ 快捷键说明

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