(Qt UI) Add AI Service category

This commit is contained in:
twinaphex 2019-08-23 19:52:13 +02:00
parent f6d2768181
commit 9589621619
3 changed files with 48 additions and 0 deletions

View File

@ -140,3 +140,32 @@ QWidget *LoggingPage::widget()
{
return create_widget(DISPLAYLIST_LOGGING_SETTINGS_LIST);
}
/* AI SERVICE */
AIServiceCategory::AIServiceCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_AI_SERVICE_SETTINGS);
setCategoryIcon("menu_drivers");
}
QVector<OptionsPage*> AIServiceCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new AIServicePage(this);
return pages;
}
AIServicePage::AIServicePage(QObject *parent) :
OptionsPage(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_AI_SERVICE_SETTINGS);
}
QWidget *AIServicePage::widget()
{
return create_widget(DISPLAYLIST_AI_SERVICE_SETTINGS_LIST);
}

View File

@ -89,6 +89,24 @@ public:
QWidget *widget();
};
/***********************************************************
AI Service
************************************************************/
class AIServiceCategory : public OptionsCategory
{
public:
AIServiceCategory(QWidget *parent);
QVector<OptionsPage*> pages();
};
class AIServicePage : public OptionsPage
{
Q_OBJECT
public:
AIServicePage(QObject *parent = nullptr);
QWidget *widget();
};
/************************************************************
Video
************************************************************/

View File

@ -164,6 +164,7 @@ ViewOptionsDialog::ViewOptionsDialog(MainWindow *mainwindow, QWidget *parent) :
addCategory(new RecordingCategory(this));
addCategory(new OnscreenDisplayCategory(this));
addCategory(new UserInterfaceCategory(mainwindow, this));
addCategory(new AIServiceCategory(this));
addCategory(new AchievementsCategory(this));
addCategory(new NetworkCategory(this));
addCategory(new PlaylistsCategory(this));