.. _program_listing_file__tmp_ws_src_log_view_include_log_view_panels_search_panel.h: Program Listing for File search_panel.h ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/log_view/include/log_view/panels/search_panel.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef LOG_VIEW_SEARCH_PANEL_H_ #define LOG_VIEW_SEARCH_PANEL_H_ #include #include namespace log_view { class SearchPanel : public PanelInterface { public: SearchPanel(int height, int width, int y, int x, LogFilter& filter) : PanelInterface(height, width, y, x), filter_(filter) {} virtual ~SearchPanel() {} virtual void refresh(); virtual void clearSearch(); virtual void toggle(); virtual bool handleInput(int val); protected: virtual bool canFocus() const { return !show_results_; } virtual bool canInput() const { return true; } virtual int inputOffset() const { return 8; } LogFilter& filter_; bool show_results_ = false; }; typedef std::shared_ptr SearchPanelPtr; } // namespace log_view #endif // LOG_VIEW_SEARCH_PANEL_H_