/* * Copyright (C) 2012 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authored by: Andrea Azzarone */ #ifndef UNITYSHELL_HUD_ABSTRACT_VIEW_H #define UNITYSHELL_HUD_ABSTRACT_VIEW_H #include #include #include #include #include #include "unity-shared/Introspectable.h" namespace unity { namespace hud { class AbstractView : public nux::View, public unity::debug::Introspectable { NUX_DECLARE_OBJECT_TYPE(AbstractView, nux::View); public: typedef nux::ObjectPtr Ptr; AbstractView(); virtual void AboutToShow() = 0; virtual void AboutToHide() = 0; virtual void ResetToDefault() = 0; virtual void SearchFinished() = 0; virtual void SetIcon(std::string const& icon_name, unsigned int tile_size, unsigned int size, unsigned int padding) = 0; virtual void SetQueries(Hud::Queries queries) = 0; virtual void SetMonitorOffset(int x, int y) = 0; virtual void ShowEmbeddedIcon(bool show) = 0; virtual nux::Geometry GetContentGeometry() = 0; virtual nux::View* default_focus() const = 0; // signals sigc::signal search_changed; sigc::signal search_activated; sigc::signal query_activated; sigc::signal query_selected; sigc::signal layout_changed; }; } // namespace hud } // namespace unity #endif // UNITYSHELL_HUD_ABSTRACT_VIEW_H