2
* Copyright (C) 2010 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
23
#include <Nux/TextureArea.h>
24
#include <NuxGraphics/OpenGLEngine.h>
26
#include "PanelHomeButton.h"
27
#include "IndicatorObjectFactoryRemote.h"
29
class PanelView : public nux::View
32
PanelView (NUX_FILE_LINE_PROTO);
35
virtual long ProcessEvent (nux::IEvent &ievent, long TraverseInfo, long ProcessEventInfo);
36
virtual void Draw (nux::GraphicsContext& GfxContext, bool force_draw);
37
virtual void DrawContent (nux::GraphicsContext &GfxContext, bool force_draw);
39
virtual void PreLayoutManagement ();
40
virtual long PostLayoutManagement (long LayoutResult);
42
void OnObjectAdded (IndicatorObjectProxy *proxy);
45
void UpdateBackground ();
48
IndicatorObjectFactoryRemote *_remote;
50
PanelHomeButton *_home_button;
51
nux::AbstractPaintLayer *_bg_layer;
52
nux::HLayout *_layout;
58
#endif // PANEL_VIEW_H