|
|
@ -13,7 +13,10 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
static constexpr size_t TERM_MAX_X = 80;
|
|
|
|
static constexpr size_t TERM_MAX_X = 80;
|
|
|
|
static constexpr size_t TERM_MAX_Y = 24;
|
|
|
|
static constexpr size_t TERM_MAX_Y = 24;
|
|
|
|
|
|
|
|
|
|
|
|
static constexpr int KEY_ESC = 27;
|
|
|
|
static constexpr int KEY_ESC = 27;
|
|
|
|
|
|
|
|
static constexpr int KEY_DEL = 100; // d
|
|
|
|
|
|
|
|
|
|
|
|
static constexpr size_t window_height = TERM_MAX_Y-2;
|
|
|
|
static constexpr size_t window_height = TERM_MAX_Y-2;
|
|
|
|
static constexpr size_t current_window_width = TERM_MAX_X/4;
|
|
|
|
static constexpr size_t current_window_width = TERM_MAX_X/4;
|
|
|
|
static constexpr size_t n_window_width = TERM_MAX_X/4;
|
|
|
|
static constexpr size_t n_window_width = TERM_MAX_X/4;
|
|
|
@ -21,7 +24,7 @@ public:
|
|
|
|
void static init();
|
|
|
|
void static init();
|
|
|
|
void static destroy();
|
|
|
|
void static destroy();
|
|
|
|
|
|
|
|
|
|
|
|
GraphBrowser(const Graph<std::string>& g);
|
|
|
|
GraphBrowser(Graph<std::string>& g);
|
|
|
|
~GraphBrowser();
|
|
|
|
~GraphBrowser();
|
|
|
|
|
|
|
|
|
|
|
|
void mainLoop();
|
|
|
|
void mainLoop();
|
|
|
@ -36,7 +39,7 @@ private:
|
|
|
|
MENU *menu_;
|
|
|
|
MENU *menu_;
|
|
|
|
WINDOW *current_win_, *n_win, * n_of_n_win_;
|
|
|
|
WINDOW *current_win_, *n_win, * n_of_n_win_;
|
|
|
|
ITEM **items_;
|
|
|
|
ITEM **items_;
|
|
|
|
const Graph<std::string>& graph_;
|
|
|
|
Graph<std::string>& graph_;
|
|
|
|
|
|
|
|
|
|
|
|
std::deque<std::string> history_;
|
|
|
|
std::deque<std::string> history_;
|
|
|
|
};
|
|
|
|
};
|
|
|
|