new feature: allow for fixed size columns

This commit is contained in:
Andrzej Rybczak
2009-07-10 19:17:12 +02:00
parent 209f5337ee
commit c20d8694ae
9 changed files with 90 additions and 54 deletions

View File

@@ -22,6 +22,7 @@
#define _SETTINGS_H
#include <limits>
#include <vector>
#include "home.h"
#include "libmpdclient.h"
@@ -36,6 +37,14 @@
const std::string config_dir = home_path + HOME_FOLDER;
const int null_key = std::numeric_limits<int>::max();
struct Column
{
unsigned width;
Color color;
char type;
bool fixed;
};
struct ncmpcpp_keys
{
int Up[2];
@@ -113,8 +122,8 @@ struct ncmpcpp_config
std::string mpd_host;
std::string mpd_music_dir;
std::string empty_tag;
std::string song_list_columns_format;
std::string song_list_format;
std::string song_columns_list_format;
std::string song_status_format;
std::string song_window_title_format;
std::string song_library_format;
@@ -125,6 +134,8 @@ struct ncmpcpp_config
std::string pattern;
std::vector<Column> columns;
Buffer browser_playlist_prefix;
Buffer selected_item_prefix;
Buffer selected_item_suffix;