亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? configdialog.cpp

?? Amarok是一款在LINUX或其他類UNIX操作系統中運行的音頻播放器軟件。 經過兩年開發后
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************begin                : 2004/02/07copyright            : (C) Mark Kretschmannemail                : markey@web.de***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#include "amarok.h"#include "amarokconfig.h"#include "app.h"#include "collectiondb.h"#include "config.h" // Has USE_MYSQL#include "configdialog.h"#include "contextbrowser.h"#include "dbsetup.h"#include "debug.h"#include "directorylist.h"#include "enginecontroller.h"#include "mediabrowser.h"#include "mediumpluginmanager.h"#include "Options1.h"#include "Options2.h"#include "Options4.h"#include "Options5.h"#include "Options7.h"#include "Options8.h"#include "osd.h"#include "playlistwindow.h"#include "playerwindow.h"#include "plugin/pluginconfig.h"#include "pluginmanager.h"#include <qgroupbox.h>#include <qlabel.h>#include <qlayout.h>#include <qlineedit.h>#include <qmessagebox.h>#include <qobjectlist.h>#include <qpushbutton.h>#include <qradiobutton.h>#include <qspinbox.h>#include <qtextcodec.h>#include <qtooltip.h>#include <qvbox.h>#include <kapplication.h> //kapp#include <kcombobox.h>#include <kiconloader.h>#include <klineedit.h>#include <klocale.h>#include <kpushbutton.h>#include <kstandarddirs.h>namespace Amarok {    int databaseTypeCode( const QString type )    {        // can't use kconfigxt for the database comboxbox since we need the DBConnection id and not the index        int dbType = DbConnection::sqlite;        if ( type == "MySQL")            dbType = DbConnection::mysql;        else if ( type == "Postgresql" )            dbType = DbConnection::postgresql;        return dbType;    }}int AmarokConfigDialog::s_currentPage = 0;//////////////////////////////////////////////////////////////////////////////////////////// PUBLIC//////////////////////////////////////////////////////////////////////////////////////////AmarokConfigDialog::AmarokConfigDialog( QWidget *parent, const char* name, KConfigSkeleton *config )        : KConfigDialog( parent, name, config )        , m_engineConfig( 0 )        , m_opt4( 0 ){    setWFlags( WDestructiveClose );    // IMPORTANT Don't simply change the page names, they are used as identifiers in other parts of the app.            m_opt1 = new Options1( 0, "General" );#ifdef Q_WS_MAC            m_opt1->kcfg_ShowSplashscreen->setEnabled(false);            m_opt1->kcfg_ShowTrayIcon->setEnabled(false);            m_opt1->kcfg_AnimateTrayIcon->setEnabled(false);            m_opt1->kcfg_ShowPlayerWindow->setEnabled(false);#endif            m_opt2 = new Options2( 0, "Appearance" );            m_opt4 = new Options4( 0, "Playback" );#ifdef Q_WS_X11    Options5 *opt5 = new Options5( 0, "OSD" );#endif    QVBox    *opt6 = new QVBox;            m_opt7 = new Options7( 0, "Collection" );    Options8 *opt8 = new Options8( 0, "Scrobbler" );    QVBox    *opt9 = new QVBox;    // Sound System    opt6->setName( "Engine" );    opt6->setSpacing( KDialog::spacingHint() );    QWidget *groupBox, *aboutEngineButton;    groupBox            = new QGroupBox( 2, Qt::Horizontal, i18n("Sound System"), opt6 );    m_engineConfigFrame = new QGroupBox( 1, Qt::Horizontal, opt6 );    m_soundSystem       = new QComboBox( false, groupBox );    aboutEngineButton   = new QPushButton( i18n("About"), groupBox );    QToolTip::add( m_soundSystem, i18n("Click to select the sound system to use for playback.") );    QToolTip::add( aboutEngineButton, i18n("Click to get the plugin information.") );    /// Populate the engine selection combo box    KTrader::OfferList offers = PluginManager::query( "[X-KDE-Amarok-plugintype] == 'engine'" );    KTrader::OfferList::ConstIterator end( offers.end() );    for( KTrader::OfferList::ConstIterator it = offers.begin(); it != end; ++it ) {        // Don't list the <no engine> (void engine) entry if it's not currently active,        // cause there's no point in choosing this engine (it's a dummy, after all).        if( (*it)->property( "X-KDE-Amarok-name" ).toString() == "void-engine"            && AmarokConfig::soundSystem() != "void-engine" ) continue;        m_soundSystem->insertItem( (*it)->name() );        // Save name properties in QMap for lookup        m_pluginName[(*it)->name()] = (*it)->property( "X-KDE-Amarok-name" ).toString();        m_pluginAmarokName[(*it)->property( "X-KDE-Amarok-name" ).toString()] = (*it)->name();    }    // Collection#if !defined(USE_MYSQL) && !defined(USE_POSTGRESQL)    m_opt7->databaseBox->hide();#endif#ifndef USE_MYSQL    //FIXME we do this because this widget breaks the Apply button (always enabled).    //It breaks because it is set to type="password" in the .kcfg file. Setting to    //type="string" also fixes this bug, but means the password is stored in plain    //text. This is a temporary fix so that the majority of users get a fixed Apply    //button.    delete m_opt7->dbSetupFrame->kcfg_MySqlPassword2;#endif    m_opt7->collectionFoldersBox->setColumns( 1 );    new CollectionSetup( m_opt7->collectionFoldersBox ); //TODO this widget doesn't update the apply/ok buttons    // Media Devices    opt9->setName( "Media Devices" );    opt9->setSpacing( KDialog::spacingHint() );    QVBox *topbox = new QVBox( opt9 );    topbox->setSpacing( KDialog::spacingHint() );    QGroupBox *mediaBox  = new QGroupBox( 2, Qt::Horizontal, i18n("Media Devices"), topbox );    mediaBox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );    QVBox *vbox = new QVBox( mediaBox );    vbox->setSpacing( KDialog::spacingHint() );    m_deviceManager = new MediumPluginManager( vbox );    QHBox *hbox = new QHBox( topbox );    hbox->setSpacing( KDialog::spacingHint() );    hbox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );    KPushButton *autodetect = new KPushButton( i18n( "Autodetect Devices" ), hbox );    autodetect->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );    connect( autodetect, SIGNAL(clicked()), m_deviceManager, SLOT(redetectDevices()) );    KPushButton *add = new KPushButton( i18n( "Add Device..." ), hbox );    add->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );    connect( add, SIGNAL(clicked()), m_deviceManager, SLOT(newDevice()) );    QFrame *frame = new QFrame( topbox );    frame->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );    // add pages    addPage( m_opt1, i18n( "General" ), Amarok::icon( "settings_general" ), i18n( "Configure General Options" ) );    addPage( m_opt2, i18n( "Appearance" ), Amarok::icon( "settings_view" ), i18n( "Configure Amarok's Appearance" ) );    addPage( m_opt4, i18n( "Playback" ), Amarok::icon( "settings_playback" ), i18n( "Configure Playback" ) );#ifdef Q_WS_X11    addPage( opt5,   i18n( "OSD" ), Amarok::icon( "settings_indicator" ), i18n( "Configure On-Screen-Display" ) );#endif    addPage( opt6,   i18n( "Engine" ), Amarok::icon( "settings_engine" ), i18n( "Configure Engine" ) );    addPage( m_opt7, i18n( "Collection" ), Amarok::icon( "collection" ), i18n( "Configure Collection" ) );    addPage( opt8,   i18n( "last.fm" ), Amarok::icon( "audioscrobbler" ), i18n( "Configure last.fm Support" ) );    addPage( opt9,   i18n( "Media Devices" ), Amarok::icon( "device" ), i18n( "Configure Portable Player Support" ) );    // Show information labels (must be done after insertions)    QObjectList *list = queryList( "QLabel", "infoPixmap" );    QPixmap const info = KGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge );    for( QObject *label = list->first(); label; label = list->next() )        static_cast<QLabel*>(label)->setPixmap( info );    delete list;    //stop KFont Requesters getting stupidly large    list = queryList( "QLabel", "m_sampleLabel" );    for( QObject *label = list->first(); label; label = list->next() )        static_cast<QLabel*>(label)->setMaximumWidth( 250 );    delete list;    connect( m_deviceManager, SIGNAL(changed()), SLOT(updateButtons()) );    connect( m_soundSystem, SIGNAL(activated( int )), SLOT(updateButtons()) );    connect( aboutEngineButton, SIGNAL(clicked()), SLOT(aboutEngine()) );#ifdef Q_WS_X11    connect( opt5, SIGNAL(settingsChanged()), SLOT(updateButtons()) ); //see options5.ui.h#endif    connect( m_opt2->styleComboBox, SIGNAL( activated( int ) ), SLOT( updateButtons() ) );    connect( m_opt7->dbSetupFrame->databaseEngine, SIGNAL( activated( int ) ), SLOT( updateButtons() ) );    connect( m_opt1->kComboBox_browser, SIGNAL( activated( int ) ), SLOT( updateButtons() ) );    connect( m_opt1->kLineEdit_customBrowser, SIGNAL( textChanged( const QString& ) ), SLOT( updateButtons() ) );}AmarokConfigDialog::~AmarokConfigDialog(){    DEBUG_FUNC_INFO    s_currentPage = activePageIndex();    delete m_engineConfig;    delete m_deviceManager;}/** Reimplemented from KConfigDialog */void AmarokConfigDialog::addPage( QWidget *page, const QString &itemName, const QString &pixmapName, const QString &header, bool manage ){    // Add the widget pointer to our list, for later reference

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品中午字幕| 一本一道综合狠狠老| 亚洲最大成人综合| 亚洲美女一区二区三区| 国产精品人人做人人爽人人添| 国产亚洲女人久久久久毛片| 国产性天天综合网| 国产清纯白嫩初高生在线观看91| 久久久国产精品不卡| 久久久久久久久99精品| 国产女同性恋一区二区| 国产精品欧美一区喷水| 国产精品夫妻自拍| 亚洲日本一区二区| 亚洲国产你懂的| 日韩 欧美一区二区三区| 久久精品国产**网站演员| 国产在线国偷精品产拍免费yy| 国产成人在线网站| 99久久伊人久久99| 欧美剧在线免费观看网站 | 成人午夜精品一区二区三区| 岛国精品一区二区| 91久久免费观看| 91麻豆精品国产91久久久资源速度| 日韩女优av电影在线观看| 久久人人超碰精品| 亚洲啪啪综合av一区二区三区| 一区二区三区在线观看欧美| 日韩精品一级中文字幕精品视频免费观看 | 日韩欧美国产一二三区| 久久久影视传媒| 亚洲日本在线天堂| 麻豆91精品91久久久的内涵| 国产成人久久精品77777最新版本| 色综合久久久久网| 日韩免费电影一区| 亚洲精品大片www| 国产一区欧美一区| 欧美日韩一二三区| 欧美激情综合在线| 青青草原综合久久大伊人精品优势| 国产91精品免费| 欧美老年两性高潮| 亚洲色欲色欲www| 国产一区二区不卡在线| 精品视频一区三区九区| 国产精品全国免费观看高清| 青青草91视频| 欧美日韩一本到| 国产精品情趣视频| 精品一区二区综合| 欧美精品在线观看播放| 亚洲人成7777| 国产成人av电影在线观看| 日韩三区在线观看| 亚洲在线视频免费观看| fc2成人免费人成在线观看播放| 91精品国产色综合久久 | 99久久精品情趣| 精品粉嫩超白一线天av| 亚洲国产成人av网| 91一区二区三区在线播放| 久久精品夜夜夜夜久久| 精品亚洲国内自在自线福利| 欧美日本一道本在线视频| 一区二区三区精品在线| 不卡一卡二卡三乱码免费网站| 精品国产乱码久久久久久夜甘婷婷| 性久久久久久久久久久久| 91国产免费看| 夜夜爽夜夜爽精品视频| 色综合色狠狠天天综合色| 日韩毛片一二三区| jlzzjlzz亚洲日本少妇| 中文字幕制服丝袜成人av | 亚洲视频在线一区| www.亚洲国产| 日韩伦理电影网| 色综合婷婷久久| 一区二区三区在线看| 欧洲在线/亚洲| 午夜精品一区二区三区电影天堂| 欧美无乱码久久久免费午夜一区| 亚洲午夜在线电影| 欧美日韩亚洲不卡| 日本欧洲一区二区| 2023国产精品自拍| 大美女一区二区三区| 最新成人av在线| 欧美性视频一区二区三区| 亚洲成人综合在线| 精品欧美乱码久久久久久| 国产大陆a不卡| 亚洲日本在线天堂| 欧美一区三区二区| 国产乱子轮精品视频| 国产亚洲午夜高清国产拍精品| 成人高清免费观看| 亚洲午夜精品在线| 欧美电视剧在线看免费| 成人国产免费视频| 婷婷开心激情综合| 国产区在线观看成人精品| 一本久久a久久精品亚洲| 日韩高清不卡一区二区| 久久久精品人体av艺术| 色老头久久综合| 久88久久88久久久| 综合电影一区二区三区 | 国产毛片精品视频| 亚洲视频小说图片| 日韩欧美中文一区二区| 成人动漫视频在线| 日本欧美一区二区在线观看| 欧美激情一区不卡| 91麻豆精品国产91久久久久久久久| 国产成人亚洲综合a∨猫咪| 亚洲一二三专区| 中文字幕精品一区二区三区精品| 欧美日韩一级片在线观看| 粉嫩aⅴ一区二区三区四区五区| 亚洲国产精品久久久久秋霞影院| 欧美激情综合五月色丁香| 91精品国产色综合久久不卡蜜臀 | 国产91对白在线观看九色| 亚洲va韩国va欧美va精品| 日本一区二区免费在线观看视频| 欧美久久久久久久久久| 日本道在线观看一区二区| 成人一区二区三区视频在线观看| 午夜精品免费在线| 亚洲欧美国产三级| 久久久精品日韩欧美| 欧美tickling网站挠脚心| 欧美三级午夜理伦三级中视频| av一区二区三区| 丁香婷婷综合五月| 国产一区二区不卡在线| 久久精品72免费观看| 日韩黄色在线观看| 亚洲自拍偷拍图区| 自拍偷拍国产精品| 亚洲欧洲另类国产综合| 欧美国产成人在线| 国产视频一区二区在线观看| 精品国内二区三区| 欧美大片在线观看一区二区| 欧美日韩精品二区第二页| 色综合色综合色综合| 99re亚洲国产精品| 91蝌蚪porny九色| 91免费看视频| 欧洲生活片亚洲生活在线观看| 99久久婷婷国产综合精品| 91麻豆精品在线观看| 色老汉一区二区三区| 欧美午夜精品久久久久久孕妇| 欧美系列在线观看| 欧美日韩精品一区二区| 欧美高清激情brazzers| 91精品国产91久久综合桃花| 欧美成人艳星乳罩| 久久综合久久综合亚洲| 欧美国产成人在线| 亚洲欧美日韩在线| 夜夜嗨av一区二区三区中文字幕| 亚洲高清一区二区三区| 日本亚洲欧美天堂免费| 激情综合网天天干| 成人免费毛片高清视频| 91蝌蚪porny成人天涯| 欧美精品日日鲁夜夜添| wwwwxxxxx欧美| 国产精品电影一区二区三区| 一区二区成人在线观看| 日本不卡一区二区三区高清视频| 精品亚洲成av人在线观看| 成人av电影在线网| 欧美人伦禁忌dvd放荡欲情| 亚洲精品一区二区三区99| 中文字幕在线不卡一区| 五月婷婷激情综合| 国产毛片精品国产一区二区三区| 99综合影院在线| 91精品国产欧美一区二区| 国产亚洲成av人在线观看导航| 亚洲人成网站色在线观看| 看电视剧不卡顿的网站| 91最新地址在线播放| 欧美一区三区二区| 中文字幕在线一区| 麻豆一区二区在线| 色综合久久六月婷婷中文字幕| 欧美一区国产二区| 亚洲男人电影天堂| 激情五月婷婷综合| 精品视频1区2区3区| 中文字幕国产一区| 日韩av在线播放中文字幕|