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: */
|
---|
28 | class QHBoxLayout;
|
---|
29 | class QILabel;
|
---|
30 | class QILineEdit;
|
---|
31 |
|
---|
32 |
|
---|
33 | class SHARED_LIBRARY_STUFF UIVMNamePathSelector : public QIWithRetranslateUI<QWidget>
|
---|
34 | {
|
---|
35 | Q_OBJECT;
|
---|
36 |
|
---|
37 | signals:
|
---|
38 |
|
---|
39 | public:
|
---|
40 |
|
---|
41 | UIVMNamePathSelector(QWidget *pParent = 0);
|
---|
42 |
|
---|
43 | public slots:
|
---|
44 |
|
---|
45 | QString path() const;
|
---|
46 | void setPath(const QString &path);
|
---|
47 |
|
---|
48 | QString name() const;
|
---|
49 | void setName(const QString &name);
|
---|
50 |
|
---|
51 | protected:
|
---|
52 |
|
---|
53 | void retranslateUi() /* override */;
|
---|
54 |
|
---|
55 | private slots:
|
---|
56 |
|
---|
57 |
|
---|
58 | private:
|
---|
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.