VirtualBox

Ignore:
Timestamp:
Nov 10, 2008 10:40:32 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Tray Support: Styling; Reduced the number of VMs per menu to 10 and added numbering.

Location:
trunk/src/VBox/Frontends/VirtualBox4/include
Files:
2 edited

Legend:

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

    r13580 r14046  
    2424#define __VBoxDefs_h__
    2525
     26/* Qt includes */
    2627#include <qevent.h>
     28#include <QUuid>
    2729
    2830#define LOG_GROUP LOG_GROUP_GUI
     
    6567#if defined (VBOX_GUI_DEBUG)
    6668
     69#include <QThread>
     70#include <QDateTime>
     71
    6772#include <VBox/types.h> // for uint64_t type
    68 
    69 #include <qthread.h>
    70 #include <qdatetime.h>
    7173
    7274/**
     
    104106#endif // VBOX_GUI_DEBUG
    105107
    106 /* A common namespace for all enums */
     108/** Null UUID constant to be used as a default value for reference parameters */
     109extern const QUuid QUuid_null;
     110
     111/** Common namespace for all enums */
    107112struct VBoxDefs
    108113{
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSelectorWnd.h

    r14022 r14046  
    3636    #include <QSystemTrayIcon>
    3737#endif
    38 #include <QUuid>
    3938
    4039class VBoxSnapshotsWgt;
     
    7069
    7170    void fileMediaMgr();
    72     VBoxVMItem* getSelectedItem();
    73 #ifdef VBOX_GUI_WITH_SYSTRAY
    74     void iconActivated (QSystemTrayIcon::ActivationReason aReason);
    75     void showWindow();
    76 #endif
    7771    void fileSettings();
    7872    void fileExit();
     
    8175    void vmSettings (const QString &aCategory = QString::null,
    8276                     const QString &aControl = QString::null,
    83                      const QUuid &aMachineId = QUuid());
    84     void vmDelete (const QUuid &aMachineId = QUuid());
    85     void vmStart (const QUuid &aMachineId = QUuid());
    86     void vmDiscard (const QUuid &aMachineId = QUuid());
    87     void vmPause (bool, const QUuid &aMachineId = QUuid());
    88     void vmRefresh (const QUuid &aMachineId = QUuid());
    89     void vmShowLogs (const QUuid &aMachineId = QUuid());
     77                     const QUuid & = QUuid_null);
     78    void vmDelete (const QUuid & = QUuid_null);
     79    void vmStart (const QUuid & = QUuid_null);
     80    void vmDiscard (const QUuid & = QUuid_null);
     81    void vmPause (bool, const QUuid & = QUuid_null);
     82    void vmRefresh (const QUuid & = QUuid_null);
     83    void vmShowLogs (const QUuid & = QUuid_null);
    9084
    9185#ifdef VBOX_GUI_WITH_SYSTRAY
    92     void refreshSysTray(bool a_bRetranslate = false);
     86    void refreshSysTray (bool aRetranslate = false);
    9387#endif
     88
    9489    void refreshVMList();
    9590    void refreshVMItem (const QUuid &aID, bool aDetails,
     
    9893
    9994    void showContextMenu (const QPoint &aPoint);
     95
     96#ifdef VBOX_GUI_WITH_SYSTRAY
     97    void trayIconActivated (QSystemTrayIcon::ActivationReason aReason);
     98    void showWindow();
     99#endif
    100100
    101101protected:
     
    142142    QAction *fileExitAction;
    143143    QAction *vmNewAction;
    144 #ifdef VBOX_GUI_WITH_SYSTRAY
    145     QAction *trayShowWindowAction;
    146     QAction *trayExitAction;
    147 #endif
    148144    QAction *vmConfigAction;
    149145    QAction *vmDeleteAction;
     
    154150    QAction *vmShowLogsAction;
    155151
     152#ifdef VBOX_GUI_WITH_SYSTRAY
     153    QAction *mTrayShowWindowAction;
     154    QAction *mTrayExitAction;
     155#endif
     156
    156157    VBoxHelpActions mHelpActions;
    157158
    158159#ifdef VBOX_GUI_WITH_SYSTRAY
    159160    /* The systray icon */
    160     QSystemTrayIcon *trayIcon;
    161     QMenu *trayIconMenu;
     161    QSystemTrayIcon *mTrayIcon;
     162    QMenu *mTrayIconMenu;
    162163#endif
    163164
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