VirtualBox

Changeset 6822 in vbox


Ignore:
Timestamp:
Feb 6, 2008 10:11:39 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27937
Message:

FE/Qt: 1) New OS type icons. 2) Set the VM-specific OS type icon as the VM console window icon.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
10 added
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r6715 r6822  
    134134    idle_timer = new QTimer (this);
    135135
    136     /* application icon */
    137     setIcon( QPixmap::fromMimeSource( "ico40x01.png" ) );
     136    /* default application icon (will change to the VM-specific icon in
     137     * openView()) */
     138    setIcon (QPixmap::fromMimeSource ("ico40x01.png"));
    138139
    139140    /* ensure status bar is created */
     
    665666
    666667    CMachine cmachine = csession.GetMachine();
     668
     669    /* Set the VM-specific application icon */
     670    setIcon (vboxGlobal().vmGuestOSTypeIcon (cmachine.GetOSTypeId()));
    667671
    668672    /* restore the position of the window and some options */
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMListBox.cpp

    r5999 r6822  
    9999#endif
    100100
    101 /** 
     101/**
    102102 * Searches for a main window of the given process.
    103  * 
     103 *
    104104 * @param aPid process ID to search for
    105  * 
     105 *
    106106 * @return window ID on success or <tt>(WId) ~0</tt> otherwise.
    107107 */
     
    122122#elif defined (Q_WS_MAC)
    123123
    124     /** @todo Figure out how to get access to another windows of another process... 
     124    /** @todo Figure out how to get access to another windows of another process...
    125125     * Or at least check that it's not a VBoxVRDP process. */
    126126    NOREF (aPid);
    127127    return (WId) 0;
    128128
    129 #else   
     129#else
    130130
    131131    return (WId) ~0;
     
    515515}
    516516
    517 /** 
     517/**
    518518 * Returns @a true if we can activate and bring the VM console window to
    519519 * foreground, and @a false otherwise.
     
    529529}
    530530
    531 /** 
     531/**
    532532 * Tries to switch to the main window of the VM process.
    533  * 
     533 *
    534534 * @return true if successfully switched and false otherwise.
    535535 */
     
    540540#else
    541541    WId id = (WId) mMachine.ShowConsoleWindow();
    542 #endif 
     542#endif
    543543    AssertWrapperOk (mMachine);
    544544    if (!mMachine.isOk())
     
    556556#elif defined (Q_WS_MAC)
    557557    /*
    558      * This is just for the case were the other process cannot steal 
     558     * This is just for the case were the other process cannot steal
    559559     * the focus from us. It will send us a PSN so we can try.
    560560     */
     
    702702    /* draw the OS type icon with border, vertically centered */
    703703    aP->drawPixmap (marg, osTypeY, pmOSType);
    704     qDrawShadePanel (aP, marg, osTypeY, pmOSType.width(), pmOSType.height(),
    705                      cg, false, 1);
    706704
    707705    aP->setPen (isSelected() ? cg.highlightedText() : cg.text());
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxCloseVMDlg.ui

    r5999 r6822  
    7070                                </sizepolicy>
    7171                            </property>
    72                             <property name="frameShape">
    73                                 <enum>Panel</enum>
    74                             </property>
    75                             <property name="frameShadow">
    76                                 <enum>Raised</enum>
    77                             </property>
    7872                            <property name="pixmap">
    7973                                <pixmap>os_other.png</pixmap>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewVMWzd.ui

    r5999 r6822  
    336336                                        <verstretch>0</verstretch>
    337337                                    </sizepolicy>
    338                                 </property>
    339                                 <property name="frameShape">
    340                                     <enum>Panel</enum>
    341                                 </property>
    342                                 <property name="frameShadow">
    343                                     <enum>Raised</enum>
    344338                                </property>
    345339                                <property name="lineWidth">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxTakeSnapshotDlg.ui

    r5999 r6822  
    7070                                    <verstretch>0</verstretch>
    7171                                </sizepolicy>
    72                             </property>
    73                             <property name="frameShape">
    74                                 <enum>Panel</enum>
    75                             </property>
    76                             <property name="frameShadow">
    77                                 <enum>Raised</enum>
    7872                            </property>
    7973                            <property name="pixmap">
Note: See TracChangeset for help on using the changeset viewer.

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