NDEVR
API Documentation
TranslationCombo.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/QCustomComboBox.h>
4#include <NDEVR/Translator.h>
5namespace NDEVR
6{
11 class NDEVR_WIDGETS_API TranslationCombo : public QCustomComboBox
12 {
13 public:
16 TranslationCombo(QWidget* parent = nullptr);
21 void setTranslation(const Translator& translator);
25 protected:
27 };
28}
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
QCustomComboBox(QWidget *parent=nullptr)
Constructs a QCustomComboBox with the given parent widget.
TranslationCombo(QWidget *parent=nullptr)
Constructs a TranslationCombo widget.
Translator currentTranslation() const
Returns the currently selected Translator.
void setTranslation(const Translator &translator)
Sets the currently active translation in the combo box.
void updateTranslationsFromDisk()
Scans the disk for available translation files and populates the combo box.
Dictionary< String, Translator > m_translations
Maps language names to their Translator objects.
Provides language translation services for the application.
Definition Translator.h:61
The primary namespace for the NDEVR SDK.