VirtualBox

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

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

FE/Qt: bugref: 6769 Adding a path/name selector widget to our new vm wizards.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: UIVMNamePathSelector.h 72177 2018-05-09 15:57:09Z 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;
31class QIToolButton;
32
33class SHARED_LIBRARY_STUFF UIVMNamePathSelector : public QIWithRetranslateUI<QWidget>
34{
35 Q_OBJECT;
36
37signals:
38
39 void sigNameChanged(const QString &strName);
40
41public:
42
43 UIVMNamePathSelector(QWidget *pParent = 0);
44
45public slots:
46
47 QString path() const;
48 void setPath(const QString &path);
49
50 QString name() const;
51 void setName(const QString &name);
52 void setNameFieldValidator(const QString &strValidatorString);
53
54protected:
55
56 void retranslateUi() /* override */;
57
58private slots:
59
60 void sltOpenPathSelector();
61
62private:
63
64 void prepareWidgets();
65 QString defaultMachineFolder() const;
66
67 QHBoxLayout *m_pMainLayout;
68 QILineEdit *m_pPath;
69 QILineEdit *m_pName;
70 QILabel *m_pSeparator;
71 QIToolButton *m_pFileDialogButton;
72
73};
74
75#endif /* !___UIVMNamePathSelector_h___ */
Note: See TracBrowser for help on using the repository browser.

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