VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/VBoxHelpActions.h@ 35740

Last change on this file since 35740 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * VBoxHelpActions class declaration
5 */
6
7/*
8 * Copyright (C) 2009 Oracle Corporation
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
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.
17 */
18
19#ifndef __VBoxHelpActions_h__
20#define __VBoxHelpActions_h__
21
22/* Qt includes */
23#include <QObject>
24
25class QMenu;
26class 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 */
40struct 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
60#endif /* __VBoxHelpActions_h__ */
61
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use