~3v1n0/unity/light-shortcuts

« back to all changes in this revision

Viewing changes to dash/previews/MoviePreview.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-04-26 12:41:09 UTC
  • Revision ID: mail@3v1n0.net-20130426124109-t3b2shjah2omiqa2
Unity: Remove all the views, but the Shortcuts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
 
/*
3
 
 * Copyright 2012 Canonical Ltd.
4
 
 *
5
 
 * This program is free software: you can redistribute it and/or modify it
6
 
 * under the terms of the GNU Lesser General Public License version 3, as
7
 
 * published by the  Free Software Foundation.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful, but
10
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
12
 
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
13
 
 * License for more details.
14
 
 *
15
 
 * You should have received a copy of both the GNU Lesser General Public
16
 
 * License version 3 along with this program.  If not, see
17
 
 * <http://www.gnu.org/licenses/>
18
 
 *
19
 
 * Authored by: Nick Dedekind <nick.dedekind@canonical.com>
20
 
 *
21
 
 */
22
 
 
23
 
#ifndef MOVIEPREVIEW_H
24
 
#define MOVIEPREVIEW_H
25
 
 
26
 
#include "Preview.h"
27
 
 
28
 
namespace unity
29
 
{
30
 
namespace dash
31
 
{
32
 
namespace previews
33
 
{
34
 
class PreviewRatingsWidget;
35
 
 
36
 
class MoviePreview : public Preview
37
 
{
38
 
public:
39
 
  typedef nux::ObjectPtr<MoviePreview> Ptr;
40
 
  NUX_DECLARE_OBJECT_TYPE(MoviePreview, Preview);
41
 
 
42
 
  MoviePreview(dash::Preview::Ptr preview_model);
43
 
  ~MoviePreview();
44
 
 
45
 
  // From debug::Introspectable
46
 
  std::string GetName() const;
47
 
  void AddProperties(GVariantBuilder* builder);
48
 
 
49
 
protected:
50
 
  virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
51
 
  virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);
52
 
  virtual void PreLayoutManagement();
53
 
 
54
 
  virtual void OnNavigateOut();
55
 
  virtual void OnNavigateInComplete();
56
 
 
57
 
  virtual void SetupViews();
58
 
  
59
 
protected:
60
 
  nux::ObjectPtr<PreviewRatingsWidget> rating_;
61
 
};
62
 
 
63
 
}
64
 
}
65
 
}
66
 
 
67
 
#endif // MOVIEPREVIEW_H