Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
RendererSelectDialog.cpp
1/*
2Copyright (C) 2017,2018,2022 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#include "RendererSelectDialog.h"
17#include <QComboBox>
18
19namespace AeonGames
20{
21 RendererSelectDialog::RendererSelectDialog ( QWidget *parent, Qt::WindowFlags f ) :
22 QDialog ( parent, f )
23 {
24 mUi.setupUi ( this );
25 }
26
28 = default;
29
30 void RendererSelectDialog::SetRenderers ( const QStringList & renderers )
31 {
32 mUi.mRendererComboBox->clear();
33 mUi.mRendererComboBox->addItems ( renderers );
34 }
36 {
37 return mUi.mRendererComboBox->currentText();
38 }
39}
void SetRenderers(const QStringList &renderers)
Populate the dialog with available renderers.
RendererSelectDialog(QWidget *parent=Q_NULLPTR, Qt::WindowFlags f=Qt::WindowFlags())
Construct the renderer selection dialog.
const QString GetSelected() const
Get the name of the selected renderer.
<- This is here just for the literals
Definition AABB.hpp:31