display: rewrite Display::Columns and Display::SongsInColumns

This commit is contained in:
Andrzej Rybczak
2012-08-26 20:45:54 +02:00
parent b299806a90
commit 9e071b074c
5 changed files with 190 additions and 127 deletions

View File

@@ -35,11 +35,12 @@ enum SortMode { smName, smMTime, smCustomFormat };
struct Column
{
Column() : right_alignment(0), display_empty_tag(1) { }
Column() : stretch_limit(-1), right_alignment(0), display_empty_tag(1) { }
std::basic_string<my_char_t> name;
std::string type;
unsigned width;
int width;
int stretch_limit;
Color color;
bool fixed;
bool right_alignment;
@@ -219,7 +220,9 @@ struct Configuration
double locked_screen_width_part;
size_t selected_item_prefix_length;
size_t selected_item_suffix_length;
size_t now_playing_prefix_length;
size_t now_playing_suffix_length;
BasicScreen *startup_screen;