X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fapplication.hpp;h=61fe46e2480dc855210e586230c2e6960e070101;hb=e23d7aa0d9980c3c269cbddb4cfbb32350d7425c;hp=c618f80d9c1abeee91a1ee61e54d46d8d3c7b9b3;hpb=4971985821bf983a56a8e6399a8609f0e4dacbe7;p=pulseview.git diff --git a/pv/application.hpp b/pv/application.hpp index c618f80d..61fe46e2 100644 --- a/pv/application.hpp +++ b/pv/application.hpp @@ -23,20 +23,28 @@ #include #include +#include +#include #include +#include "globalsettings.hpp" + using std::shared_ptr; using std::pair; using std::vector; -class Application : public QApplication +class Application : public QApplication, public pv::GlobalSettingsInterface { Q_OBJECT public: Application(int &argc, char* argv[]); + QStringList get_languages(); + void switch_language(const QString& language); + void on_setting_changed(const QString &key, const QVariant &value); + void collect_version_info(shared_ptr context); void print_version_info(); @@ -58,6 +66,8 @@ private: vector< pair > input_format_list_; vector< pair > output_format_list_; vector< pair > pd_list_; + + QTranslator app_translator_, qt_translator_, qtbase_translator_; }; #endif // PULSEVIEW_PV_APPLICATION_HPP