Changeset 14296 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include
- Timestamp:
- Nov 18, 2008 12:36:47 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39479
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSelectorWnd.h
r14046 r14296 44 44 class VBoxVMModel; 45 45 class VBoxVMItem; 46 class VBoxTrayIcon; 46 47 47 48 class QTabWidget; … … 49 50 class QEvent; 50 51 51 class VBoxSelectorWnd : public QIWithRetranslateUI2 <QMainWindow>52 class VBoxSelectorWnd : public QIWithRetranslateUI2 <QMainWindow> 52 53 { 53 54 Q_OBJECT; … … 82 83 void vmRefresh (const QUuid & = QUuid_null); 83 84 void vmShowLogs (const QUuid & = QUuid_null); 84 85 #ifdef VBOX_GUI_WITH_SYSTRAY86 void refreshSysTray (bool aRetranslate = false);87 #endif88 85 89 86 void refreshVMList(); … … 159 156 #ifdef VBOX_GUI_WITH_SYSTRAY 160 157 /* The systray icon */ 161 QSystemTrayIcon *mTrayIcon; 162 QMenu *mTrayIconMenu; 158 VBoxTrayIcon *mTrayIcon; 163 159 #endif 164 160 … … 179 175 }; 180 176 177 #ifdef VBOX_GUI_WITH_SYSTRAY 178 179 Q_DECLARE_METATYPE(QUuid); 180 181 class VBoxTrayIcon : public QSystemTrayIcon 182 { 183 Q_OBJECT; 184 185 public: 186 187 VBoxTrayIcon (VBoxSelectorWnd* aParent, VBoxVMModel* aVMModel); 188 virtual ~VBoxTrayIcon (); 189 190 void refresh (); 191 void retranslateUi (); 192 193 protected: 194 195 VBoxVMItem* GetItem (QObject* aObject); 196 197 signals: 198 199 public slots: 200 201 202 private slots: 203 204 void showSubMenu(); 205 void hideSubMenu (); 206 207 void vmSettings(); 208 void vmDelete(); 209 void vmStart(); 210 void vmDiscard(); 211 void vmPause(bool aPause); 212 void vmRefresh(); 213 void vmShowLogs(); 214 215 private: 216 217 /* The vm list model */ 218 VBoxVMModel *mVMModel; 219 220 VBoxSelectorWnd* mParent; 221 QMenu *mTrayIconMenu; 222 QAction *mVmConfigAction; 223 QAction *mVmDeleteAction; 224 QAction *mVmStartAction; 225 QAction *mVmDiscardAction; 226 QAction *mVmPauseAction; 227 QAction *mVmRefreshAction; 228 QAction *mVmShowLogsAction; 229 }; 230 231 #endif // VBOX_GUI_WITH_SYSTRAY 232 181 233 #endif // __VBoxSelectorWnd_h__ -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMListView.h
r14022 r14296 67 67 ULONG snapshotCount() const { return mSnapshotCount; } 68 68 69 QAction* vmActionConfig() const { return vmConfigAction; }70 QAction* vmActionDelete() const { return vmDeleteAction; }71 QAction* vmActionStart() const { return vmStartAction; }72 QAction* vmActionDiscard() const { return vmDiscardAction; }73 QAction* vmActionPause() const { return vmPauseAction; }74 QAction* vmActionRefresh() const { return vmRefreshAction; }75 QAction* vmActionShowLogs() const { return vmShowLogsAction; }76 77 69 QString toolTipText() const; 78 70 … … 88 80 bool switchTo(); 89 81 90 /* Updates all internal actions depending on the VM's state. */91 void updateActions();92 void retranslateUi();93 94 82 private: 95 83 … … 97 85 VBoxSelectorWnd *mParent; 98 86 CMachine mMachine; 99 100 QAction *vmConfigAction;101 QAction *vmDeleteAction;102 QAction *vmStartAction;103 QAction *vmDiscardAction;104 QAction *vmPauseAction;105 QAction *vmRefreshAction;106 QAction *vmShowLogsAction;107 87 108 88 /* Cached machine data (to minimize server requests) */ … … 122 102 123 103 ULONG mPid; 124 125 private slots:126 127 void vmSettings();128 void vmDelete();129 void vmStart();130 void vmDiscard();131 void vmPause(bool aPause);132 void vmRefresh();133 void vmShowLogs();134 104 }; 135 105
Note:
See TracChangeset
for help on using the changeset viewer.