mirror of
https://github.com/overte-org/overte.git
synced 2025-07-19 01:47:57 +02:00
37 lines
814 B
C++
37 lines
814 B
C++
//
|
|
// DialogsManager.cpp
|
|
//
|
|
//
|
|
// Created by Clement on 1/18/15.
|
|
// Copyright 2015 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
|
|
//
|
|
|
|
#include <Application.h>
|
|
#include <MainWindow.h>
|
|
|
|
#include "AddressBarDialog.h"
|
|
#include "LoginDialog.h"
|
|
|
|
#include "DialogsManager.h"
|
|
|
|
void DialogsManager::toggleAddressBar() {
|
|
maybeCreateDialog(_addressBarDialog);
|
|
|
|
if (!_addressBarDialog->isVisible()) {
|
|
_addressBarDialog->show();
|
|
}
|
|
}
|
|
|
|
void DialogsManager::toggleLoginDialog() {
|
|
maybeCreateDialog(_loginDialog);
|
|
_loginDialog->toggleQAction();
|
|
}
|
|
|
|
void DialogsManager::showLoginDialog() {
|
|
maybeCreateDialog(_loginDialog);
|
|
_loginDialog->showLoginForCurrentDomain();
|
|
}
|
|
|