/* $Id: UIDisplayFeaturesEditor.h $ */
/** @file
 * VBox Qt GUI - UIDisplayFeaturesEditor class declaration.
 */

/*
 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
 *
 * This file is part of VirtualBox base platform packages, as
 * available from https://www.virtualbox.org.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation, in version 3 of the
 * License.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <https://www.gnu.org/licenses>.
 *
 * SPDX-License-Identifier: GPL-3.0-only
 */

#ifndef FEQT_INCLUDED_SRC_settings_editors_UIDisplayFeaturesEditor_h
#define FEQT_INCLUDED_SRC_settings_editors_UIDisplayFeaturesEditor_h
#ifndef RT_WITHOUT_PRAGMA_ONCE
# pragma once
#endif

/* GUI includes: */
#include "QIWithRetranslateUI.h"

/* Forward declarations: */
class QCheckBox;
class QGridLayout;
class QLabel;

/** QWidget subclass used as display features editor. */
class SHARED_LIBRARY_STUFF UIDisplayFeaturesEditor : public QIWithRetranslateUI<QWidget>
{
    Q_OBJECT;

public:

    /** Constructs editor passing @a pParent to the base-class. */
    UIDisplayFeaturesEditor(QWidget *pParent = 0);

    /** Defines whether 'activate on mouse hover' feature in @a fOn. */
    void setActivateOnMouseHover(bool fOn);
    /** Returns 'activate on mouse hover' feature value. */
    bool activateOnMouseHover() const;

    /** Defines whether 'disable host screen-saver' feature in @a fOn. */
    void setDisableHostScreenSaver(bool fOn);
    /** Returns 'disable host screen-saver' feature value. */
    bool disableHostScreenSaver() const;

    /** Returns minimum layout hint. */
    int minimumLabelHorizontalHint() const;
    /** Defines minimum layout @a iIndent. */
    void setMinimumLayoutIndent(int iIndent);

protected:

    /** Handles translation event. */
    virtual void retranslateUi() RT_OVERRIDE;

private:

    /** Prepares all. */
    void prepare();

    /** @name Values
     * @{ */
        /** Holds the 'activate on mouse hover' feature value. */
        bool  m_fActivateOnMouseHover;
        /** Holds the 'disable host screen-saver' feature value. */
        bool  m_fDisableHostScreenSaver;
    /** @} */

    /** @name Widgets
     * @{ */
        /** Holds the main layout instance. */
        QGridLayout *m_pLayout;
        /** Holds the label instance. */
        QLabel      *m_pLabel;
        /** Holds the check-box instance. */
        QCheckBox   *m_pCheckBoxActivateOnMouseHover;
        /** Holds the check-box instance. */
        QCheckBox   *m_pCheckBoxDisableHostScreenSaver;
    /** @} */
};

#endif /* !FEQT_INCLUDED_SRC_settings_editors_UIDisplayFeaturesEditor_h */
