[382] | 1 | /** @file
|
---|
| 2 | *
|
---|
| 3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
[17730] | 4 | * VBoxHelpActions class declaration
|
---|
[382] | 5 | */
|
---|
| 6 |
|
---|
| 7 | /*
|
---|
[28800] | 8 | * Copyright (C) 2009 Oracle Corporation
|
---|
[382] | 9 | *
|
---|
| 10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
| 11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
| 12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
[5999] | 13 | * General Public License (GPL) as published by the Free Software
|
---|
| 14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
| 15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
| 16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
[382] | 17 | */
|
---|
| 18 |
|
---|
[17730] | 19 | #ifndef __VBoxHelpActions_h__
|
---|
| 20 | #define __VBoxHelpActions_h__
|
---|
[382] | 21 |
|
---|
[17730] | 22 | /* Qt includes */
|
---|
[7369] | 23 | #include <QObject>
|
---|
[382] | 24 |
|
---|
[17730] | 25 | class QMenu;
|
---|
[12010] | 26 | class QAction;
|
---|
| 27 |
|
---|
| 28 | /**
|
---|
| 29 | * Help Menu action container.
|
---|
| 30 | *
|
---|
| 31 | * Contains actions for all help menu items and methods to insert them to a
|
---|
| 32 | * QMenu and to perform NLS string translation.
|
---|
| 33 | *
|
---|
| 34 | * Instances of this class are to be created as members of QWidget classes that
|
---|
| 35 | * need a Help menu. The containing class usually passes itself as an argument
|
---|
| 36 | * to the #setup() method and then calls #addTo() to add actions to its Help
|
---|
| 37 | * menu. The #retranslateUi() method is called when it is necessary to
|
---|
| 38 | * re-translate all action NLS according to the current language.
|
---|
| 39 | */
|
---|
| 40 | struct VBoxHelpActions
|
---|
| 41 | {
|
---|
| 42 | VBoxHelpActions()
|
---|
| 43 | : contentsAction (NULL), webAction (NULL)
|
---|
| 44 | , resetMessagesAction (NULL), registerAction (NULL)
|
---|
| 45 | , updateAction (NULL), aboutAction (NULL)
|
---|
| 46 | {}
|
---|
| 47 |
|
---|
| 48 | void setup (QObject *aParent);
|
---|
| 49 | void addTo (QMenu *aMenu);
|
---|
| 50 | void retranslateUi();
|
---|
| 51 |
|
---|
| 52 | QAction *contentsAction;
|
---|
| 53 | QAction *webAction;
|
---|
| 54 | QAction *resetMessagesAction;
|
---|
| 55 | QAction *registerAction;
|
---|
| 56 | QAction *updateAction;
|
---|
| 57 | QAction *aboutAction;
|
---|
| 58 | };
|
---|
| 59 |
|
---|
[17730] | 60 | #endif /* __VBoxHelpActions_h__ */
|
---|
[12010] | 61 |
|
---|