chore: auto-commit (23 archivos)
- CMakeLists.txt - app.md - appicon.ico - main.cpp - perf_tests.cpp - perf_tests.h - qa_panel.cpp - qa_panel.h - qa_state.cpp - qa_state.h - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// tab_basic — Text default + sort + filter chips. Caso minimo.
|
||||
#include "tabs.h"
|
||||
#include "qa_state.h"
|
||||
#include "data_table/data_table.h"
|
||||
#include <imgui.h>
|
||||
|
||||
namespace tables_qa::tabs {
|
||||
|
||||
namespace {
|
||||
qa::TabState g_st;
|
||||
|
||||
void seed() {
|
||||
g_st.back = {
|
||||
"1","alpha", "100",
|
||||
"2","beta", "250",
|
||||
"3","gamma", "75",
|
||||
"4","delta", "500",
|
||||
"5","epsilon","12",
|
||||
};
|
||||
qa::rebuild_ptrs(g_st);
|
||||
}
|
||||
} // anon
|
||||
|
||||
void render_basic() {
|
||||
if (g_st.back.empty()) seed();
|
||||
|
||||
data_table::TableInput tbl;
|
||||
tbl.name = "basic";
|
||||
tbl.headers = {"id", "name", "value"};
|
||||
tbl.types = {
|
||||
data_table::ColumnType::Int,
|
||||
data_table::ColumnType::String,
|
||||
data_table::ColumnType::Float,
|
||||
};
|
||||
tbl.cells = g_st.ptrs.data();
|
||||
tbl.rows = 5;
|
||||
tbl.cols = 3;
|
||||
|
||||
ImGui::BeginChild("##basic_host", ImVec2(-1, -1));
|
||||
g_st.last_events.clear();
|
||||
data_table::render("##basic_tbl", {tbl}, g_st.dt,
|
||||
&g_st.last_events, qa::toggles().show_chrome);
|
||||
ImGui::EndChild();
|
||||
qa::consume_events(g_st.last_events);
|
||||
}
|
||||
|
||||
} // namespace tables_qa::tabs
|
||||
Reference in New Issue
Block a user