VirtualBox

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

Last change on this file since 100347 was 98103, checked in by vboxsync, 22 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/* $Id: UIFilmContainer.h 98103 2023-01-17 14:15:46Z 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 "QIWithRetranslateUI.h"
39#include "UILibraryDefs.h"
40
41/* Other VBox includes: */
42#include <VBox/com/com.h>
43
44/* Forward declarations: */
45class QCheckBox;
46class QScrollArea;
47class QVBoxLayout;
48class UIFilm;
49
50/** QWidget subclass providing GUI with QScrollArea-based container for UIFilm widgets.
51 * @todo Rename to something more suitable like UIScreenThumbnailContainer. */
52class SHARED_LIBRARY_STUFF UIFilmContainer : public QWidget
53{
54 Q_OBJECT;
55
56public:
57
58 /** Constructs film-container passing @a pParent to the base-class. */
59 UIFilmContainer(QWidget *pParent = 0);
60
61 /** Returns the film-container check-box values. */
62 QVector<BOOL> value() const;
63 /** Defines the film-container check-box @a values. */
64 void setValue(const QVector<BOOL> &values);
65
66private:
67
68 /** Prepares all. */
69 void prepare();
70 /** Prepares layout. */
71 void prepareLayout();
72 /** Prepares scroller. */
73 void prepareScroller();
74
75 /** Holds the main layout intance. */
76 QVBoxLayout *m_pMainLayout;
77 /** Holds the scroller intance. */
78 QScrollArea *m_pScroller;
79 /** Holds the list of film widgets. */
80 QList<UIFilm*> m_widgets;
81};
82
83#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