add support for switching between user-defined sequence of screens using Tab

This commit is contained in:
Andrzej Rybczak
2010-01-24 00:05:03 +01:00
parent af12b75b93
commit f991a41c1a
6 changed files with 113 additions and 20 deletions

View File

@@ -38,6 +38,8 @@
const std::string config_dir = home_path + HOME_FOLDER;
const int null_key = std::numeric_limits<int>::max();
class BasicScreen; // forward declaration for screens sequence
struct Column
{
Column() : right_alignment(0), display_empty_tag(1) { }
@@ -189,7 +191,7 @@ struct ncmpcpp_config
bool header_text_scrolling;
bool statusbar_visibility;
bool centered_cursor;
bool screen_switcher_browser_only;
bool screen_switcher_previous;
bool autocenter_mode;
bool wrapped_search;
bool space_selects;
@@ -232,6 +234,8 @@ struct ncmpcpp_config
unsigned search_engine_default_search_mode;
size_t selected_item_suffix_length;
std::list<BasicScreen *> screens_seq;
};
extern ncmpcpp_config Config;