2021-05-09 00:56:48 +12:00
|
|
|
/* Copyright 2021 Aristocratos (jakob@qvantnet.com)
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
indent = tab
|
|
|
|
tab-size = 4
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _btop_globs_included_
|
2021-05-15 23:24:24 +12:00
|
|
|
#define _btop_globs_included_ 1
|
2021-05-09 00:56:48 +12:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2021-05-19 08:11:34 +12:00
|
|
|
#include <array>
|
2021-05-10 08:25:41 +12:00
|
|
|
#include <atomic>
|
2021-05-19 08:11:34 +12:00
|
|
|
#include <unordered_map>
|
2021-05-09 00:56:48 +12:00
|
|
|
|
2021-05-19 08:11:34 +12:00
|
|
|
using std::string, std::vector, std::unordered_map, std::array, std::atomic;
|
2021-05-09 00:56:48 +12:00
|
|
|
|
|
|
|
namespace Global {
|
2021-05-10 08:25:41 +12:00
|
|
|
|
|
|
|
atomic<bool> stop_all(false);
|
|
|
|
|
2021-05-22 12:13:56 +12:00
|
|
|
|
2021-05-09 00:56:48 +12:00
|
|
|
|
2021-05-19 08:11:34 +12:00
|
|
|
const unordered_map<string, unordered_map<string, vector<string>>> Menus = {
|
2021-05-09 00:56:48 +12:00
|
|
|
{ "options", {
|
|
|
|
{ "normal", {
|
|
|
|
"┌─┐┌─┐┌┬┐┬┌─┐┌┐┌┌─┐",
|
|
|
|
"│ │├─┘ │ ││ ││││└─┐",
|
|
|
|
"└─┘┴ ┴ ┴└─┘┘└┘└─┘"
|
|
|
|
} },
|
|
|
|
{ "selected", {
|
|
|
|
"╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗",
|
|
|
|
"║ ║╠═╝ ║ ║║ ║║║║╚═╗",
|
|
|
|
"╚═╝╩ ╩ ╩╚═╝╝╚╝╚═╝"
|
|
|
|
} }
|
|
|
|
} },
|
|
|
|
{ "help", {
|
|
|
|
{ "normal", {
|
|
|
|
"┬ ┬┌─┐┬ ┌─┐",
|
|
|
|
"├─┤├┤ │ ├─┘",
|
|
|
|
"┴ ┴└─┘┴─┘┴ "
|
|
|
|
} },
|
|
|
|
{ "selected", {
|
|
|
|
"╦ ╦╔═╗╦ ╔═╗",
|
|
|
|
"╠═╣║╣ ║ ╠═╝",
|
|
|
|
"╩ ╩╚═╝╩═╝╩ "
|
|
|
|
} }
|
|
|
|
} },
|
|
|
|
{ "quit", {
|
|
|
|
{ "normal", {
|
|
|
|
"┌─┐ ┬ ┬ ┬┌┬┐",
|
|
|
|
"│─┼┐│ │ │ │ ",
|
|
|
|
"└─┘└└─┘ ┴ ┴ "
|
|
|
|
} },
|
|
|
|
{ "selected", {
|
|
|
|
"╔═╗ ╦ ╦ ╦╔╦╗ ",
|
|
|
|
"║═╬╗║ ║ ║ ║ ",
|
|
|
|
"╚═╝╚╚═╝ ╩ ╩ "
|
|
|
|
} }
|
|
|
|
} }
|
|
|
|
};
|
2021-05-14 07:11:10 +12:00
|
|
|
|
|
|
|
|
2021-05-09 00:56:48 +12:00
|
|
|
|
2021-05-17 08:58:16 +12:00
|
|
|
}
|
|
|
|
|
2021-05-22 12:13:56 +12:00
|
|
|
|
|
|
|
|
2021-05-13 13:11:29 +12:00
|
|
|
#endif
|