~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/PanelView.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-11-11 18:51:08 UTC
  • mfrom: (572.1.58 unity-3.0)
  • Revision ID: neil.patel@canonical.com-20101111185108-71923a90txzvxbit
[merge] Unity 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Canonical Ltd
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef PANEL_VIEW_H
 
20
#define PANEL_VIEW_H
 
21
 
 
22
#include <Nux/View.h>
 
23
#include <Nux/TextureArea.h>
 
24
#include <NuxGraphics/GraphicsEngine.h>
 
25
 
 
26
#include "PanelHomeButton.h"
 
27
#include "IndicatorObjectFactoryRemote.h"
 
28
 
 
29
class PanelView : public nux::View
 
30
{
 
31
public:
 
32
  PanelView (NUX_FILE_LINE_PROTO);
 
33
  ~PanelView ();
 
34
 
 
35
  virtual long ProcessEvent (nux::IEvent &ievent, long TraverseInfo, long ProcessEventInfo);
 
36
  virtual void Draw (nux::GraphicsEngine& GfxContext, bool force_draw);
 
37
  virtual void DrawContent (nux::GraphicsEngine &GfxContext, bool force_draw);
 
38
 
 
39
  virtual void PreLayoutManagement ();
 
40
  virtual long PostLayoutManagement (long LayoutResult);
 
41
  
 
42
  void OnObjectAdded (IndicatorObjectProxy *proxy);
 
43
  void OnMenuPointerMoved (int x, int y);
 
44
  
 
45
  PanelHomeButton * HomeButton ();
 
46
 
 
47
private:
 
48
  void UpdateBackground ();
 
49
 
 
50
private:
 
51
  IndicatorObjectFactoryRemote *_remote;
 
52
 
 
53
  PanelHomeButton         *_home_button;
 
54
  nux::AbstractPaintLayer *_bg_layer;
 
55
  nux::HLayout            *_layout;
 
56
 
 
57
  int _last_width;
 
58
  int _last_height;
 
59
};
 
60
 
 
61
#endif // PANEL_VIEW_H