VirtualBox

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

Last change on this file since 76553 was 76553, checked in by vboxsync, 5 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: UIFilmContainer.h 76553 2019-01-01 01:45:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIFilmContainer class declaration.
4 */
5
6/*
7 * Copyright (C) 2013-2019 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 ___UIFilmContainer_h___
19#define ___UIFilmContainer_h___
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* Qt includes: */
25#include <QWidget>
26
27/* GUI includes: */
28#include "QIWithRetranslateUI.h"
29#include "UILibraryDefs.h"
30
31/* Other VBox includes: */
32#include <VBox/com/com.h>
33
34/* Forward declarations: */
35class QCheckBox;
36class QScrollArea;
37class QVBoxLayout;
38class UIFilm;
39
40/** QWidget subclass providing GUI with QScrollArea-based container for UIFilm widgets.
41 * @todo Rename to something more suitable like UIScreenThumbnailContainer. */
42class SHARED_LIBRARY_STUFF UIFilmContainer : public QWidget
43{
44 Q_OBJECT;
45
46public:
47
48 /** Constructs film-container passing @a pParent to the base-class. */
49 UIFilmContainer(QWidget *pParent = 0);
50
51 /** Returns the film-container check-box values. */
52 QVector<BOOL> value() const;
53 /** Defines the film-container check-box @a values. */
54 void setValue(const QVector<BOOL> &values);
55
56private:
57
58 /** Prepares all. */
59 void prepare();
60 /** Prepares layout. */
61 void prepareLayout();
62 /** Prepares scroller. */
63 void prepareScroller();
64
65 /** Holds the main layout intance. */
66 QVBoxLayout *m_pMainLayout;
67 /** Holds the scroller intance. */
68 QScrollArea *m_pScroller;
69 /** Holds the list of film widgets. */
70 QList<UIFilm*> m_widgets;
71};
72
73#endif /* !___UIFilmContainer_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use