diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-11-01 14:09:04 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-11-01 14:09:04 +0100 |
| commit | a2918b9724a65ba147cfafc6bcf8d410a647330b (patch) | |
| tree | 3b8ca3ee934a239f458b889f06beb673fa32ffa4 /src/ui/ui_invoices.cpp | |
| parent | 9b8664daf17dac9efb1f4add9d00c562e4ddbf40 (diff) | |
export ui, localizations
Diffstat (limited to 'src/ui/ui_invoices.cpp')
| -rw-r--r-- | src/ui/ui_invoices.cpp | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index 3987b72..ebf84d4 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -200,7 +200,7 @@ static void draw_invoice_form(invoice* buffer, bool viewing_only = false) ImGui::Separator(); - if (ImGui::FileSelect("Select file...", buffer->document.original_path)) { // @locale::get + if (ImGui::FileSelect(locale::get("ui.fileselect.text"), buffer->document.original_path)) { buffer->document.copy_path[0] = 0; } @@ -400,6 +400,10 @@ static void draw_invoice_update() if (ImGui::Button(locale::get("form.back"), true, false)) { _reset_to_default_view(); } + + ImGui::Spacing(); + ImGui::Separator(3.0f); + ImGui::Spacing(); draw_invoice_form(&active_invoice); @@ -420,6 +424,10 @@ static void draw_invoice_create() if (ImGui::Button(locale::get("form.back"), true, false)) { _reset_to_default_view(); } + + ImGui::Spacing(); + ImGui::Separator(3.0f); + ImGui::Spacing(); draw_invoice_form(&active_invoice); @@ -441,6 +449,40 @@ static void draw_invoice_view() _reset_to_default_view(); } + ImGui::SameLine(); + + ImGui::PushItemWidth(100.0f); + if (ImGui::BeginCombo("##Send", locale::get("ui.sendAs"))) + { + if (ImGui::Selectable(locale::get("ui.sendAs.email"), false)) { + + } + if (ImGui::Selectable(locale::get("ui.sendAs.einvoice"), false)) { + + } + ImGui::EndCombo(); + } + ImGui::PushItemWidth(0.0f); + + ImGui::SameLine(); + + ImGui::PushItemWidth(100.0f); + if (ImGui::BeginCombo("##Export as", locale::get("ui.exportAs"))) + { + if (ImGui::Selectable("PDF", false)) { + + } + if (ImGui::Selectable("UBL", false)) { + + } + ImGui::EndCombo(); + } + ImGui::PushItemWidth(0.0f); + + ImGui::Spacing(); + ImGui::Separator(3.0f); + ImGui::Spacing(); + draw_invoice_form(&active_invoice, true); } |
