add support for binding actions to multibyte characters

This commit is contained in:
Andrzej Rybczak
2012-08-25 01:32:12 +02:00
parent 3750533026
commit 6829a8e05c
10 changed files with 289 additions and 213 deletions

View File

@@ -45,21 +45,21 @@ struct Column
bool display_empty_tag;
};
struct NcmpcppKeys
struct KeyConfiguration
{
typedef std::pair<
std::multimap<int, Action *>::iterator
, std::multimap<int, Action *>::iterator
std::multimap<Action::Key, Action *>::iterator
, std::multimap<Action::Key, Action *>::iterator
> Binding;
void GenerateKeybindings();
void GenerateBindings();
std::multimap<int, Action *> Bindings;
std::multimap<Action::Key, Action *> Bindings;
};
struct NcmpcppConfig
struct Configuration
{
NcmpcppConfig();
Configuration();
const std::string &GetHomeDirectory();
void CheckForCommandLineConfigFilePath(char **argv, int argc);
@@ -208,8 +208,8 @@ struct NcmpcppConfig
std::string config_file_path;
};
extern NcmpcppKeys Key;
extern NcmpcppConfig Config;
extern KeyConfiguration Keys;
extern Configuration Config;
void CreateDir(const std::string &dir);