summaryrefslogtreecommitdiff
path: root/include/ui.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui.hpp')
-rw-r--r--include/ui.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui.hpp b/include/ui.hpp
index 3a8ce66..ebfa210 100644
--- a/include/ui.hpp
+++ b/include/ui.hpp
@@ -95,6 +95,7 @@ void ui_destroy_earnings();
// Custom imgui widgets.
namespace ImGui
{
+ void InputTextWithError(const char* text, char* buffer, size_t buf_size, bool has_error);
int TextInputWithAutocomplete(const char* hint, char* buffer, size_t buf_size, char** suggestions, int suggestion_count, bool has_error);
void FormContactAutocomplete(contact* buffer, bool has_error);
@@ -103,7 +104,7 @@ namespace ImGui
void FormContactTypeCombo(contact_type* type);
void FormCostCenterCombo(char* costcenter_id);
void FormProjectCombo(char* project_id);
- void FormTaxRateCombo(char* tax_rate_id, char* orig_country, char* dest_country);
+ void FormTaxRateCombo(char* tax_rate_id, char* orig_country, char* dest_country, bool has_error);
bool FormCurrencyCombo(char* currency);
void FormToggleCombo(bool *buffer, char* option1, char* option2);
} \ No newline at end of file