mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 03:55:08 +02:00
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
//
|
|
// PreferencesDialog.h
|
|
// interface/src/ui
|
|
//
|
|
// Created by Stojce Slavkovski on 2/20/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_PreferencesDialog_h
|
|
#define hifi_PreferencesDialog_h
|
|
|
|
#include "ui_preferencesDialog.h"
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
|
|
#include "scripting/WebWindowClass.h"
|
|
|
|
class PreferencesDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PreferencesDialog(QWidget* parent = nullptr);
|
|
|
|
void avatarDescriptionChanged();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent* resizeEvent);
|
|
|
|
private:
|
|
void loadPreferences();
|
|
void savePreferences();
|
|
|
|
Ui_PreferencesDialog ui;
|
|
|
|
QString _displayNameString;
|
|
|
|
WebWindowClass* _marketplaceWindow = NULL;
|
|
|
|
private slots:
|
|
void accept();
|
|
void openSnapshotLocationBrowser();
|
|
void openScriptsLocationBrowser();
|
|
void headURLChanged(const QString& newValue, const QString& modelName);
|
|
void bodyURLChanged(const QString& newValue, const QString& modelName);
|
|
void fullAvatarURLChanged(const QString& newValue, const QString& modelName);
|
|
};
|
|
|
|
#endif // hifi_PreferencesDialog_h
|