summaryrefslogtreecommitdiffstats
path: root/src/view_helpers.hh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
commit207df6fc406e81bfeebdff7f404bd242ff3f099f (patch)
treea1a796b056909dd0a04ffec163db9363a8757808 /src/view_helpers.hh
parentReleasing progress-linux version 0.11.2-1~progress7.99u1. (diff)
downloadlnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz
lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/view_helpers.hh')
-rw-r--r--src/view_helpers.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/view_helpers.hh b/src/view_helpers.hh
index 19989e1..de3d43a 100644
--- a/src/view_helpers.hh
+++ b/src/view_helpers.hh
@@ -34,8 +34,10 @@
#include "bookmarks.hh"
#include "help_text.hh"
+#include "listview_curses.hh"
#include "logfile_fwd.hh"
#include "vis_line.hh"
+#include "xterm_mouse.hh"
class textview_curses;
class hist_source2;
@@ -51,6 +53,7 @@ typedef enum {
LNV_SCHEMA,
LNV_PRETTY,
LNV_SPECTRO,
+ LNV_GANTT,
LNV__MAX
} lnav_view_t;
@@ -85,6 +88,8 @@ bool toggle_view(textview_curses* toggle_tc);
bool handle_winch();
void layout_views();
void update_hits(textview_curses* tc);
+void clear_preview();
+void set_view_mode(ln_mode_t mode);
nonstd::optional<vis_line_t> next_cluster(
nonstd::optional<vis_line_t> (bookmark_vector<vis_line_t>::*f)(vis_line_t)
@@ -98,4 +103,13 @@ bool moveto_cluster(nonstd::optional<vis_line_t> (
vis_line_t search_forward_from(textview_curses* tc);
textview_curses* get_textview_for_mode(ln_mode_t mode);
+class lnav_behavior : public mouse_behavior {
+public:
+ void mouse_event(int button, bool release, int x, int y) override;
+
+ view_curses* lb_last_view{nullptr};
+ struct mouse_event lb_last_event;
+ struct mouse_event lb_last_release_event;
+};
+
#endif