VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.h@ 103977

Last change on this file since 103977 was 103315, checked in by vboxsync, 10 months ago

FE/Qt: Machine settings / Display page / Recording tab and corresponding editors: Wiping out unwanted dependencies.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/* $Id: UIFilmContainer.h 103315 2024-02-12 15:23:30Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIFilmContainer class declaration.
4 */
5
6/*
7 * Copyright (C) 2013-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef FEQT_INCLUDED_SRC_widgets_UIFilmContainer_h
29#define FEQT_INCLUDED_SRC_widgets_UIFilmContainer_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QWidget>
36
37/* GUI includes: */
38#include "UILibraryDefs.h"
39
40/* Forward declarations: */
41class QScrollArea;
42class QVBoxLayout;
43class UIFilm;
44
45/** QWidget subclass providing GUI with QScrollArea-based container for UIFilm widgets.
46 * @todo Rename to something more suitable like UIScreenThumbnailContainer. */
47class SHARED_LIBRARY_STUFF UIFilmContainer : public QWidget
48{
49 Q_OBJECT;
50
51public:
52
53 /** Constructs film-container passing @a pParent to the base-class. */
54 UIFilmContainer(QWidget *pParent = 0);
55
56 /** Returns the film-container check-box values. */
57 QVector<bool> value() const;
58 /** Defines the film-container check-box @a values. */
59 void setValue(const QVector<bool> &values);
60
61private:
62
63 /** Prepares all. */
64 void prepare();
65 /** Prepares layout. */
66 void prepareLayout();
67 /** Prepares scroller. */
68 void prepareScroller();
69
70 /** Holds the main layout intance. */
71 QVBoxLayout *m_pMainLayout;
72 /** Holds the scroller intance. */
73 QScrollArea *m_pScroller;
74 /** Holds the list of film widgets. */
75 QList<UIFilm*> m_widgets;
76};
77
78#endif /* !FEQT_INCLUDED_SRC_widgets_UIFilmContainer_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