Ignore:
Timestamp:
Dec 3, 2012, 5:29:00 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated vendor to 0.8.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/basegui.cpp

    r133 r137  
    745745             this, SLOT(helpCheckUpdates()) );
    746746
    747         donateAct = new MyAction( this, "donate" );
    748         connect( donateAct, SIGNAL(triggered()),
    749              this, SLOT(helpDonate()) );
     747        showConfigAct = new MyAction( this, "show_config" );
     748        connect( showConfigAct, SIGNAL(triggered()),
     749             this, SLOT(helpShowConfig()) );
    750750
    751751        aboutQtAct = new MyAction( this, "about_qt" );
     
    955955        channelsSurroundAct = new MyActionGroupItem(this, channelsGroup, "channels_surround", MediaSettings::ChSurround);
    956956        channelsFull51Act = new MyActionGroupItem(this, channelsGroup, "channels_ful51", MediaSettings::ChFull51);
     957        channelsFull61Act = new MyActionGroupItem(this, channelsGroup, "channels_ful61", MediaSettings::ChFull61);
     958        channelsFull71Act = new MyActionGroupItem(this, channelsGroup, "channels_ful71", MediaSettings::ChFull71);
    957959        connect( channelsGroup, SIGNAL(activated(int)),
    958960             core, SLOT(setAudioChannels(int)) );
     
    15561558        showCLOptionsAct->change( Images::icon("cl_help"), tr("&Command line options") );
    15571559        showCheckUpdatesAct->change( Images::icon("check_updates"), tr("Check for &updates") );
    1558         donateAct->change( Images::icon("donate"), tr("&Donate") );
     1560        showConfigAct->change( Images::icon("show_config"), tr("&Open configuration folder") );
    15591561        aboutQtAct->change( QPixmap(":/icons-png/qt.png"), tr("About &Qt") );
    15601562        aboutThisAct->change( Images::icon("logo_small"), tr("About &SMPlayer") );
     
    17611763        channelsSurroundAct->change( tr("&4.0 Surround") );
    17621764        channelsFull51Act->change( tr("&5.1 Surround") );
     1765        channelsFull61Act->change( tr("&6.1 Surround") );
     1766        channelsFull71Act->change( tr("&7.1 Surround") );
    17631767
    17641768        stereoAct->change( tr("&Stereo") );
     
    19691973#endif
    19701974
    1971         QHBoxLayout * layout = new QHBoxLayout;
     1975        QVBoxLayout * layout = new QVBoxLayout;
    19721976        layout->setSpacing(0);
    19731977        layout->setMargin(0);
     
    19962000        connect( mplayerwindow, SIGNAL(mouseMoved(QPoint)),
    19972001             this, SLOT(checkMousePos(QPoint)) );
     2002        connect( mplayerwindow, SIGNAL(mouseMovedDiff(QPoint)),
     2003             this, SLOT(moveWindow(QPoint)));
    19982004}
    19992005
     
    24842490        helpMenu->addAction(showCLOptionsAct);
    24852491        helpMenu->addAction(showCheckUpdatesAct);
    2486         helpMenu->addAction(donateAct);
     2492        helpMenu->addAction(showConfigAct);
    24872493        helpMenu->addSeparator();
    24882494        helpMenu->addAction(aboutQtAct);
     
    36953701}
    36963702
    3697 void BaseGui::helpDonate() {
    3698         QMessageBox d(QMessageBox::NoIcon, tr("Donate"),
    3699                 tr("If you like SMPlayer, a really good way to support it is by sending a donation, even the smallest one is highly appreciated.") + "<br>" +
    3700         tr("You can send your donation using %1.").arg("<a href=\"https://sourceforge.net/donate/index.php?group_id=185512\">"+tr("this form")),
    3701                 QMessageBox::Ok, this);
    3702         d.setIconPixmap( Images::icon("logo", 64) );
    3703         d.exec();
     3703void BaseGui::helpShowConfig() {
     3704        QDesktopServices::openUrl(QUrl::fromLocalFile(Paths::configPath()));
    37043705}
    37053706
     
    41704171void BaseGui::playlistHasFinished() {
    41714172        qDebug("BaseGui::playlistHasFinished");
     4173        core->stop();
     4174
    41724175        exitFullscreenOnStop();
    41734176
     
    44714474        QString styleSheet = QLatin1String(file.readAll());
    44724475
     4476        QDir current = QDir::current();
     4477        QString td = Images::themesDirectory();
     4478        QString relativePath = current.relativeFilePath(td);
     4479        styleSheet.replace(QRegExp("url\\s*\\(\\s*([^\\);]+)\\s*\\)", Qt::CaseSensitive, QRegExp::RegExp2),
     4480                                                QString("url(%1\\1)").arg(relativePath + "/"));
     4481        qDebug("styeSheet: %s", styleSheet.toUtf8().constData());
     4482
    44734483        qApp->setStyleSheet(styleSheet);
    44744484}
     
    45164526}
    45174527
     4528void BaseGui::moveWindow(QPoint diff) {
     4529        if (pref->fullscreen || isMaximized()) {
     4530                return;
     4531        }
     4532        move(pos() + diff);
     4533}
    45184534
    45194535void BaseGui::showEvent( QShowEvent * ) {
Note: See TracChangeset for help on using the changeset viewer.