[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b399a7d 40/46: Remove automatic column auto-s
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b399a7d 40/46: Remove automatic column auto-sizing in wxGrid-based census view |
Date: |
Wed, 22 Jul 2020 11:05:16 -0400 (EDT) |
branch: master
commit b399a7db8ee24af7ef5668a8bc531cd076bcc2f2
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>
Remove automatic column auto-sizing in wxGrid-based census view
This is too slow to be usable for now, so disable it completely until a
more efficient (constant time, rather than O(N*M), where N and M are
numbers of columns and rows respectively) version is implemented.
---
census_view.cpp | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/census_view.cpp b/census_view.cpp
index 81e564f..068e4f7 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -2274,15 +2274,6 @@ void CensusGridView::update_visible_columns()
grid_table_->AppendCols(new_columns_count - old_columns_count);
}
- // Recompute the best fitting sizes if the columns have changed.
- // Ideally, we would only do it for the new columns, but this would be
- // more complicated, and for now we prefer to keep the things simple.
- if(autosize_columns_)
- {
- // Pass false to avoid setting min size to the best size.
- grid_window_->AutoSizeColumns(false);
- }
-
grid_window_->SetGridCursor
(cursor_row
,std::min(cursor_col, new_columns_count - 1)
- [lmi-commits] [lmi] master 3c3d0c0 36/46: Explain grid customizations in the function creating it, (continued)
- [lmi-commits] [lmi] master 3c3d0c0 36/46: Explain grid customizations in the function creating it, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 337d81f 37/46: Make UponDeleteCells() more efficient for large censuses, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 2922db9 44/46: Disallow single cell operations when non-current row is selected, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master d337a22 45/46: Upgrade wx, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master c679655 19/46: Replace table_type_converter::get_all() with register_all(), Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 7dc508e 35/46: Don't select the first row initially in the grid census view, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 810de0a 26/46: Remove unnecessary wxGrid::IsCellEditControlEnabled() calls, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master adc4089 28/46: Optimize changing grid dimensions when pasting into the census, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master be4c2a4 32/46: Add a comment explaining why the first column is read-only, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master b7944ba 38/46: Resize only columns, not rows, in update_visible_columns(), Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master b399a7d 40/46: Remove automatic column auto-sizing in wxGrid-based census view,
Greg Chicares <=
- [lmi-commits] [lmi] master d4ad57b 42/46: Disallow "Edit/Run" cell when multiple grid rows are selected, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master d39ff1d 07/46: Use wxGridCellAttrPtr instead of manual reference counting, Greg Chicares, 2020/07/22