VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIVMNamePathSelector.h@ 72136

Last change on this file since 72136 was 72136, checked in by vboxsync, 7 years ago

FE/Qt bugref:6769 the first implementation of a widget thru which user can enter a vm name and vm destination path.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: UIVMNamePathSelector.h 72136 2018-05-07 10:01:05Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIVMNamePathSelector class declaration.
4 */
5
6/*
7 * Copyright (C) 2008-2018 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___UIVMNamePathSelector_h___
19#define ___UIVMNamePathSelector_h___
20
21/* Qt includes: */
22#include <QLineEdit>
23
24/* GUI includes: */
25#include "QIWithRetranslateUI.h"
26
27/* Forward declarations: */
28class QHBoxLayout;
29class QILabel;
30class QILineEdit;
31
32
33class SHARED_LIBRARY_STUFF UIVMNamePathSelector : public QIWithRetranslateUI<QWidget>
34{
35 Q_OBJECT;
36
37signals:
38
39public:
40
41 UIVMNamePathSelector(QWidget *pParent = 0);
42
43public slots:
44
45 QString path() const;
46 void setPath(const QString &path);
47
48 QString name() const;
49 void setName(const QString &name);
50
51protected:
52
53 void retranslateUi() /* override */;
54
55private slots:
56
57
58private:
59
60 void prepareWidgets();
61 QString defaultMachineFolder() const;
62
63 QHBoxLayout *m_pMainLayout;
64 QILineEdit *m_pPath;
65 QILineEdit *m_pName;
66 QILabel *m_pSeparator;
67};
68
69#endif /* !___UIVMNamePathSelector_h___ */
Note: See TracBrowser for help on using the repository browser.

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