Move tui_source_window to tui-source.h
[deliverable/binutils-gdb.git] / gdb / tui / tui-source.h
index fc129ab8f264475d8c5f768f889f84b57d7c9f1c..6faaa2e9e0f4ced7869bd22405475e96df6bfa7e 100644 (file)
 #include "tui/tui-data.h"
 
 struct symtab;
-struct tui_win_info;
+
+/* A TUI source window.  */
+
+struct tui_source_window : public tui_source_window_base
+{
+  tui_source_window ();
+  ~tui_source_window ();
+
+  DISABLE_COPY_AND_ASSIGN (tui_source_window);
+
+  const char *name () const override
+  {
+    return SRC_NAME;
+  }
+
+  bool location_matches_p (struct bp_location *loc, int line_no) override;
+
+  bool showing_source_p (const char *filename) const;
+
+protected:
+
+  void do_scroll_vertical (int num_to_scroll) override;
+
+private:
+
+  void style_changed ();
+
+  /* A token used to register and unregister an observer.  */
+  gdb::observers::token m_observable;
+};
 
 extern enum tui_status tui_set_source_content (tui_source_window_base *,
                                               struct symtab *, 
This page took 0.024096 seconds and 4 git commands to generate.