46 winrt::Microsoft::UI::Xaml::Media::SolidColorBrush selectedBrush; |
46 winrt::Microsoft::UI::Xaml::Media::SolidColorBrush selectedBrush; |
47 winrt::Microsoft::UI::Xaml::Media::SolidColorBrush selectedBorderBrush; |
47 winrt::Microsoft::UI::Xaml::Media::SolidColorBrush selectedBorderBrush; |
48 std::vector<UiTableColumn> header; |
48 std::vector<UiTableColumn> header; |
49 ui_getvaluefunc getvalue; |
49 ui_getvaluefunc getvalue; |
50 int maxrows; |
50 int maxrows; |
51 int selection = 0; |
51 int lastSelection; |
|
52 std::vector<int> selection; |
52 |
53 |
53 UiTable(winrt::Microsoft::UI::Xaml::Controls::ScrollViewer scrollW, winrt::Microsoft::UI::Xaml::Controls::Grid grid); |
54 UiTable(winrt::Microsoft::UI::Xaml::Controls::ScrollViewer scrollW, winrt::Microsoft::UI::Xaml::Controls::Grid grid); |
54 |
55 |
55 void add_header(UiModel* model); |
56 void add_header(UiModel* model); |
56 |
57 |
57 void update(UiList* list, int i); |
58 void update(UiList* list, int i); |
58 |
59 |
59 void clear(); |
60 void clear(); |
60 |
61 |
61 void row_background(int row, winrt::Microsoft::UI::Xaml::Media::Brush brush, winrt::Microsoft::UI::Xaml::Media::Brush borderBrush); |
62 void row_background(int row, winrt::Microsoft::UI::Xaml::Media::Brush brush, winrt::Microsoft::UI::Xaml::Media::Brush borderBrush); |
|
63 |
|
64 void change_rows_bg(std::vector<int> rows, winrt::Microsoft::UI::Xaml::Media::Brush brush, winrt::Microsoft::UI::Xaml::Media::Brush borderBrush); |
|
65 |
|
66 bool is_row_selected(int row); |
|
67 |
|
68 void remove_from_selection(int row); |
62 } UiTable; |
69 } UiTable; |
63 |
70 |
64 extern "C" void ui_table_update(UiList * list, int i); |
71 extern "C" void ui_table_update(UiList * list, int i); |
65 |
72 |