Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/space_spreadsheet.cc
| Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | static void spreadsheet_footer_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | ||||
| ED_region_header_init(region); | ED_region_header_init(region); | ||||
| } | } | ||||
| static void spreadsheet_footer_region_draw(const bContext *C, ARegion *region) | static void spreadsheet_footer_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| SpaceSpreadsheet *sspreadsheet = CTX_wm_space_spreadsheet(C); | SpaceSpreadsheet *sspreadsheet = CTX_wm_space_spreadsheet(C); | ||||
| SpaceSpreadsheet_Runtime *runtime = sspreadsheet->runtime; | SpaceSpreadsheet_Runtime *runtime = sspreadsheet->runtime; | ||||
| std::stringstream ss; | std::stringstream ss; | ||||
| ss << "Rows: "; | ss << TIP_("Rows:") << " "; | ||||
| if (runtime->visible_rows != runtime->tot_rows) { | if (runtime->visible_rows != runtime->tot_rows) { | ||||
| char visible_rows_str[16]; | char visible_rows_str[16]; | ||||
| BLI_str_format_int_grouped(visible_rows_str, runtime->visible_rows); | BLI_str_format_int_grouped(visible_rows_str, runtime->visible_rows); | ||||
| ss << visible_rows_str << " / "; | ss << visible_rows_str << " / "; | ||||
| } | } | ||||
| char tot_rows_str[16]; | char tot_rows_str[16]; | ||||
| BLI_str_format_int_grouped(tot_rows_str, runtime->tot_rows); | BLI_str_format_int_grouped(tot_rows_str, runtime->tot_rows); | ||||
| ss << tot_rows_str << " | Columns: " << runtime->tot_columns; | ss << tot_rows_str << " | " << TIP_("Columns:") << " " << runtime->tot_columns; | ||||
| std::string stats_str = ss.str(); | std::string stats_str = ss.str(); | ||||
| UI_ThemeClearColor(TH_BACK); | UI_ThemeClearColor(TH_BACK); | ||||
| uiBlock *block = UI_block_begin(C, region, __func__, UI_EMBOSS); | uiBlock *block = UI_block_begin(C, region, __func__, UI_EMBOSS); | ||||
| const uiStyle *style = UI_style_get_dpi(); | const uiStyle *style = UI_style_get_dpi(); | ||||
| uiLayout *layout = UI_block_layout(block, | uiLayout *layout = UI_block_layout(block, | ||||
| UI_LAYOUT_HORIZONTAL, | UI_LAYOUT_HORIZONTAL, | ||||
| ▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines | |||||