VirtualBox

Changeset 20412 in vbox


Ignore:
Timestamp:
Jun 8, 2009 2:42:47 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 3948: Mini-ToolBar for Full-screen & Seamless modes - VM Settings / General Page / Advanced Tab - updated with show-hide Mini ToolBar option.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h

    r20242 r20412  
    150150    static const char* GUI_FirstRun;
    151151    static const char* GUI_SaveMountedAtRuntime;
     152    static const char* GUI_ShowMiniToolBar;
    152153    static const char* GUI_LastCloseAction;
    153154    static const char* GUI_SuppressMessages;
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxMiniToolBar.h

    r20393 r20412  
    5151    VBoxMiniToolBar (QWidget *aParent, Alignment aAlignment);
    5252
     53    void setActive (bool aIsActive);
    5354    void setIsSeamlessMode (bool aIsSeamless);
    5455
     
    9697    int mPositionY;
    9798
     99    bool mIsActive;
    98100    bool mIsSeamless;
    99101
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r20395 r20412  
    900900            mIsAutoSaveMedia = false;
    901901
     902        str = cmachine.GetExtraData (VBoxDefs::GUI_ShowMiniToolBar);
     903        if (str == "no")
     904            mMiniToolBar->setActive (false);
     905
    902906        /* Check if one of extended modes to be activated on loading */
    903907        QString fsMode = cmachine.GetExtraData (VBoxDefs::GUI_Fullscreen);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxDefs.cpp

    r20139 r20412  
    3232const char* VBoxDefs::GUI_FirstRun = "GUI/FirstRun";
    3333const char* VBoxDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime";
     34const char* VBoxDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
    3435const char* VBoxDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
    3536const char* VBoxDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxMiniToolBar.cpp

    r20397 r20412  
    4545    , mHideAfterSlide (false)
    4646    , mPolished (false)
     47    , mIsActive (true)
    4748    , mIsSeamless (false)
    4849    , mAlignment (aAlignment)
     
    107108}
    108109
     110void VBoxMiniToolBar::setActive (bool aIsActive)
     111{
     112    mIsActive = aIsActive;
     113}
     114
    109115void VBoxMiniToolBar::setIsSeamlessMode (bool aIsSeamless)
    110116{
     
    147153                mSlideToScreen = true;
    148154            }
    149             show();
     155            if (mIsActive) show();
    150156            mScrollTimer.start (mScrollDelay, this);
    151157        }
    152         else
    153             show();
     158        else if (mIsActive) show();
    154159
    155160        if (mAutoHide)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsGeneral.cpp

    r20352 r20412  
    7070    mCbSaveMounted->setChecked (saveRtimeImages != "no");
    7171
     72    /* Show Mini ToolBar in fullscreen/seamless */
     73    QString showMiniToolBar = mMachine.GetExtraData (VBoxDefs::GUI_ShowMiniToolBar);
     74    mCbShowToolBar->setChecked (showMiniToolBar != "no");
     75
    7276    /* Snapshot folder */
    7377    mPsSnapshot->setPath (aMachine.GetSnapshotFolder());
     
    96100    mMachine.SetExtraData (VBoxDefs::GUI_SaveMountedAtRuntime,
    97101                           mCbSaveMounted->isChecked() ? "yes" : "no");
     102
     103    /* Show Mini ToolBar in fullscreen/seamless */
     104    mMachine.SetExtraData (VBoxDefs::GUI_ShowMiniToolBar,
     105                           mCbShowToolBar->isChecked() ? "yes" : "no");
    98106
    99107    /* Saved state folder */
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsGeneral.ui

    r19837 r20412  
    164164           </spacer>
    165165          </item>
     166          <item row="2" column="0" >
     167           <widget class="QLabel" name="mLbMedia" >
     168            <property name="text" >
     169             <string>Removable Media:</string>
     170            </property>
     171            <property name="alignment" >
     172             <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     173            </property>
     174           </widget>
     175          </item>
    166176          <item row="2" column="1" >
    167177           <widget class="QCheckBox" name="mCbSaveMounted" >
     
    183193           </widget>
    184194          </item>
    185           <item row="2" column="0" >
    186            <widget class="QLabel" name="mLbAdvanced" >
    187             <property name="text" >
    188              <string>Removable Media:</string>
    189             </property>
    190             <property name="alignment" >
    191              <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     195          <item row="3" column="0" >
     196           <widget class="QLabel" name="mLbToolBar" >
     197            <property name="text" >
     198             <string>Mini ToolBar:</string>
     199            </property>
     200            <property name="alignment" >
     201             <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     202            </property>
     203           </widget>
     204          </item>
     205          <item row="3" column="1" >
     206           <widget class="QCheckBox" name="mCbShowToolBar" >
     207            <property name="sizePolicy" >
     208             <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
     209              <horstretch>0</horstretch>
     210              <verstretch>0</verstretch>
     211             </sizepolicy>
     212            </property>
     213            <property name="whatsThis" >
     214             <string>If checked, show the Mini ToolBar in Fullscreen and Seamless modes.</string>
     215            </property>
     216            <property name="text" >
     217             <string>Show In &amp;Fullscreen/Seamless</string>
     218            </property>
     219            <property name="checked" >
     220             <bool>true</bool>
    192221            </property>
    193222           </widget>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette