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

📄 extended.cpp

📁 VLC Player Source Code
💻 CPP
字号:
/***************************************************************************** * extended.cpp : Extended controls - Undocked **************************************************************************** * Copyright (C) 2006 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videolan.org> *          Jean-Baptiste Kempf <jb@videolan.org> * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/#ifdef HAVE_CONFIG_H# include "config.h"#endif#include "dialogs/extended.hpp"#include "dialogs_provider.hpp"#include "main_interface.hpp"#include "input_manager.hpp"#include <QTabWidget>#include <QGridLayout>ExtendedDialog *ExtendedDialog::instance = NULL;ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ){    setWindowFlags( Qt::Tool );    setWindowOpacity( config_GetFloat( p_intf, "qt-opacity" ) );    setWindowTitle( qtr( "Adjustments and Effects" ) );    QGridLayout *layout = new QGridLayout( this );    layout->setLayoutMargins( 0, 2, 0, 1, 1 );    layout->setSpacing( 3 );    QTabWidget *mainTabW = new QTabWidget( this );    /* AUDIO effects */    QWidget *audioWidget = new QWidget;    QHBoxLayout *audioLayout = new QHBoxLayout( audioWidget );    QTabWidget *audioTab = new QTabWidget( audioWidget );    equal = new Equalizer( p_intf, audioTab );    audioTab->addTab( equal, qtr( "Graphic Equalizer" ) );    Spatializer *spatial = new Spatializer( p_intf, audioTab );    audioTab->addTab( spatial, qtr( "Spatializer" ) );    audioLayout->addWidget( audioTab );    mainTabW->addTab( audioWidget, qtr( "Audio Effects" ) );    /* Video Effects */    QWidget *videoWidget = new QWidget;    QHBoxLayout *videoLayout = new QHBoxLayout( videoWidget );    QTabWidget *videoTab = new QTabWidget( videoWidget );    videoEffect = new ExtVideo( p_intf, videoTab );    videoLayout->addWidget( videoTab );    videoTab->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum );    mainTabW->addTab( videoWidget, qtr( "Video Effects" ) );    syncW = new SyncControls( p_intf, videoTab );    mainTabW->addTab( syncW, qtr( "Synchronization" ) );    if( module_Exists( p_intf, "v4l2" ) )    {        ExtV4l2 *v4l2 = new ExtV4l2( p_intf, mainTabW );        mainTabW->addTab( v4l2, qtr( "v4l2 controls" ) );    }    layout->addWidget( mainTabW, 0, 0, 1, 5 );    QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );    layout->addWidget( closeButton, 1, 4, 1, 1 );    CONNECT( closeButton, clicked(), this, close() );    QPoint startPoint( 450, 0 );    MainInterface *p_mi = p_intf->p_sys->p_mi;    if( p_mi )    {        startPoint.setX( p_mi->x() );        startPoint.setY( p_mi->y() + p_mi->frameGeometry().height() );    }    readSettings( "EPanel", QSize( 400, 280 ), startPoint );    CONNECT( THEMIM->getIM(), statusChanged( int ), this, changedItem( int ) );}ExtendedDialog::~ExtendedDialog(){    writeSettings( "EPanel" );}void ExtendedDialog::changedItem( int i_status ){    if( i_status != END_S ) return;    syncW->clean();    videoEffect->clean();    equal->clean();}

⌨️ 快捷键说明

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