// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- /* * Copyright (C) 2011 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: Neil Jagdish Patel */ #ifndef _PANEL_CONTROLLER_H_ #define _PANEL_CONTROLLER_H_ #include #include #include "launcher/EdgeBarrierController.h" #include "unity-shared/MenuManager.h" #include "unity-shared/Introspectable.h" namespace unity { namespace panel { class PanelView; class Controller : public sigc::trackable, public unity::debug::Introspectable { public: typedef std::shared_ptr Ptr; typedef std::vector> PanelVector; Controller(menu::Manager::Ptr const&, ui::EdgeBarrierController::Ptr const&); ~Controller(); std::vector const& GetTrayXids() const; PanelVector& panels() const; std::vector const& GetGeometries() const; // NOTE: nux::Property maybe? void SetOpacity(float opacity); void SetOpacityMaximizedToggle(bool enabled); float opacity() const; bool IsMouseInsideIndicator(nux::Point const& mouse_position) const; protected: std::string GetName() const; void AddProperties(debug::IntrospectionData&); private: class Impl; std::unique_ptr pimpl; }; } } #endif // _PANEL_CONTROLLER_H_