/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef WELCOME_PAGE_PREFERENCES_FRAME_H
#define WELCOME_PAGE_PREFERENCES_FRAME_H

#include <QFrame>
#include <QAbstractButton>

namespace Ui {
class WelcomePagePreferencesFrame;
}

class WelcomePagePreferencesFrame : public QFrame
{
    Q_OBJECT

public:
    explicit WelcomePagePreferencesFrame(QWidget *parent = 0);
    ~WelcomePagePreferencesFrame();

    void unstash();

private:
    Ui::WelcomePagePreferencesFrame *ui;

    bool stashed_learn_visible_;
    bool stashed_tips_visible_;
    bool stashed_tips_events_;
    bool stashed_tips_sponsorship_;
    bool stashed_tips_tips_;
    bool stashed_tips_auto_advance_;
    unsigned stashed_tips_interval_;

    void updateTipsSubCheckboxes();

private slots:
    void learnVisibleToggled(bool checked);
    void tipsVisibleToggled(bool checked);
    void tipsEventsToggled(bool checked);
    void tipsSponsorshipToggled(bool checked);
    void tipsTipsToggled(bool checked);
    void tipsAutoAdvanceToggled(bool checked);
    void tipsIntervalValueChanged(int value);
    void restoreButtonBoxClicked(QAbstractButton *button);
};

#endif // WELCOME_PAGE_PREFERENCES_FRAME_H
