@@ -108,10 +108,12 @@ const std::vector<item> config_items()
108108 item::FONTPICKERCTRL,
109109 wxSystemSettings::GetFont (wxSYS_DEFAULT_GUI_FONT)}}},
110110 {_ (" Margin" ),
111- {{" col.DATE" , 0 , 150 , 150 },
111+ {{" col.DATE" , 0 , 150 , 80 },
112112 {" col.FLOAT" , 0 , 120 , 80 },
113113 {" col.INT" , 0 , 100 , 60 },
114- {" col.STRING" , 0 , 500 , 100 }}},
114+ {" col.STRING SMALL" , 0 , 500 , 60 },
115+ {" col.STRING MEDIUM" , 0 , 500 , 200 },
116+ {" col.STRING LARGE" , 0 , 500 , 400 }}},
115117 {_ (" Colour" ),
116118 {{_ (" list.Readonly colour" ),
117119 item::COLOURPICKERWIDGET,
@@ -723,9 +725,6 @@ bool wex::listview::insert_item(
723725 (void )std::stoi (col);
724726 break ;
725727
726- case column::STRING:
727- break ;
728-
729728 default :
730729 break ;
731730 }
@@ -979,7 +978,7 @@ bool wex::listview::load(const strings_t& l)
979978 tok.end (),
980979 [this , &i](const auto &)
981980 {
982- append_columns ({{std::to_string (i++ + 1 ), column::STRING, 50 }});
981+ append_columns ({{std::to_string (i++ + 1 ), column::STRING_MEDIUM, 100 }});
983982 });
984983 }
985984
@@ -1300,7 +1299,9 @@ int wxCALLBACK compare_cb(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData)
13001299 return ascending ? wex::compare (std::stoi (str1), std::stoi (str2)) :
13011300 wex::compare (std::stoi (str2), std::stoi (str1));
13021301
1303- case wex::column::STRING:
1302+ case wex::column::STRING_SMALL:
1303+ case wex::column::STRING_MEDIUM:
1304+ case wex::column::STRING_LARGE:
13041305 if (!wex::find_replace_data::get ()->match_case ())
13051306 {
13061307 return ascending ? wex::icompare (str1, str2) :
@@ -1344,9 +1345,6 @@ bool wex::listview::set_item(long index, int column, const std::string& text)
13441345 (void )std::stoi (text);
13451346 break ;
13461347
1347- case column::STRING:
1348- break ;
1349-
13501348 default :
13511349 break ;
13521350 }
0 commit comments