// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- /* * Copyright (C) 2014 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: Marco Trevisan */ #ifndef UNITYSHELL_SPREAD_FILTER_H #define UNITYSHELL_SPREAD_FILTER_H #include #include #include #include #include "Introspectable.h" namespace unity { class SearchBar; namespace spread { class Filter : public debug::Introspectable, public sigc::trackable { public: typedef std::shared_ptr Ptr; Filter(); nux::RWProperty text; bool Visible() const; nux::Geometry const& GetAbsoluteGeometry() const; std::set const& FilteredWindows() const; protected: // Introspectable std::string GetName() const; void AddProperties(debug::IntrospectionData&); private: void UpdateFilteredWindows(); nux::ObjectPtr search_bar_; nux::ObjectPtr view_window_; nux::animation::AnimateValue fade_animator_; std::set filtered_windows_; }; } // namespace spread } // namespace unity #endif