Ignore:
Timestamp:
Dec 27, 2011, 5:44:12 PM (14 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: latest svn update

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/prefadvanced.cpp

    r112 r119  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    9393        setUseCorrectPts( pref->use_correct_pts );
    9494        setActionsToRun( pref->actions_to_run );
     95        setShowTagInTitle( pref->show_tag_in_window_title );
    9596
    9697        setLogMplayer( pref->log_mplayer );
     
    122123        TEST_AND_SET(pref->use_correct_pts, useCorrectPts());
    123124        pref->actions_to_run = actionsToRun();
     125        //TEST_AND_SET(pref->show_tag_in_window_title, showTagInTitle());
     126        pref->show_tag_in_window_title = showTagInTitle(); // TODO: detect change and apply
    124127
    125128        if (pref->monitor_aspect != monitorAspect()) {
     
    280283QString PrefAdvanced::actionsToRun() {
    281284        return actions_to_run_edit->text();
     285}
     286
     287void PrefAdvanced::setShowTagInTitle(bool b) {
     288        show_tag_in_title_check->setChecked(b);
     289}
     290
     291bool PrefAdvanced::showTagInTitle() {
     292        return show_tag_in_title_check->isChecked();
    282293}
    283294
     
    419430           "audio or video filter).") );
    420431
     432        setWhatsThis(show_tag_in_title_check, tr("Show tag info in window title"),
     433                tr("If this option is enabled, information from tags will be "
     434                   "shown in window title. "
     435           "Otherwise only the filename will be shown.") );
     436
    421437        addSectionTitle(tr("Options for MPlayer"));
    422438
Note: See TracChangeset for help on using the changeset viewer.