UI: Create UI Validation Helper Class

Pull UI validation and its helpers to their own class. This class will
be used to validate forms and perform UI-action checks such as
checking stream keys aren't empty and in this diff now holds the logic
to ensure there is a source before the person starts a stream.
This commit is contained in:
JohannMG
2019-11-19 16:57:49 -08:00
committed by jp9000
parent bcddf4ddbf
commit c4396e03a7
5 changed files with 77 additions and 48 deletions

View File

@@ -245,6 +245,7 @@ set(obs_SOURCES
combobox-ignorewheel.cpp
spinbox-ignorewheel.cpp
record-button.cpp
ui-validation.cpp
url-push-button.cpp
volume-control.cpp
adv-audio-control.cpp
@@ -302,6 +303,7 @@ set(obs_HEADERS
menu-button.hpp
mute-checkbox.hpp
record-button.hpp
ui-validation.hpp
url-push-button.hpp
volume-control.hpp
adv-audio-control.hpp