~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/LauncherOptions.h

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

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 (C) 2010 Canonical Ltd
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify
 
6
 * it under the terms of the GNU 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,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authored by: Jason Smith <jason.smith@canonical.com>
 
18
 *              Tim Penhey <tim.penhey@canonical.com>
 
19
 */
 
20
 
 
21
#ifndef LAUNCHEROPTIONS_H
 
22
#define LAUNCHEROPTIONS_H
 
23
 
 
24
#include <memory>
 
25
#include <vector>
 
26
#include <sigc++/sigc++.h>
 
27
#include <core/core.h>
 
28
 
 
29
#include <Nux/Nux.h>
 
30
 
 
31
namespace unity
 
32
{
 
33
namespace launcher
 
34
{
 
35
 
 
36
typedef enum
 
37
{
 
38
  LAUNCHER_HIDE_NEVER,
 
39
  LAUNCHER_HIDE_AUTOHIDE,
 
40
} LauncherHideMode;
 
41
 
 
42
typedef enum
 
43
{
 
44
  LAUNCH_ANIMATION_NONE,
 
45
  LAUNCH_ANIMATION_PULSE,
 
46
  LAUNCH_ANIMATION_BLINK,
 
47
} LaunchAnimation;
 
48
 
 
49
typedef enum
 
50
{
 
51
  URGENT_ANIMATION_NONE,
 
52
  URGENT_ANIMATION_PULSE,
 
53
  URGENT_ANIMATION_WIGGLE,
 
54
} UrgentAnimation;
 
55
 
 
56
typedef enum
 
57
{
 
58
  FADE_OR_SLIDE,
 
59
  SLIDE_ONLY,
 
60
  FADE_ONLY,
 
61
  FADE_AND_SLIDE,
 
62
} AutoHideAnimation;
 
63
 
 
64
typedef enum
 
65
{
 
66
  BACKLIGHT_ALWAYS_ON,
 
67
  BACKLIGHT_NORMAL,
 
68
  BACKLIGHT_ALWAYS_OFF,
 
69
  BACKLIGHT_EDGE_TOGGLE,
 
70
  BACKLIGHT_NORMAL_EDGE_TOGGLE
 
71
} BacklightMode;
 
72
 
 
73
enum RevealTrigger
 
74
{
 
75
  EDGE,
 
76
  CORNER,
 
77
};
 
78
 
 
79
class Options : public sigc::trackable
 
80
{
 
81
public:
 
82
  typedef std::shared_ptr<Options> Ptr;
 
83
 
 
84
  Options();
 
85
 
 
86
  nux::Property<LauncherHideMode> hide_mode;
 
87
  nux::Property<LaunchAnimation> launch_animation;
 
88
  nux::Property<UrgentAnimation> urgent_animation;
 
89
  nux::Property<AutoHideAnimation> auto_hide_animation;
 
90
  nux::Property<BacklightMode> backlight_mode;
 
91
  nux::Property<RevealTrigger> reveal_trigger;
 
92
  nux::Property<int> icon_size;
 
93
  nux::Property<int> tile_size;
 
94
  nux::Property<float> background_alpha;
 
95
  nux::Property<int> edge_decay_rate;
 
96
  nux::Property<int> edge_overcome_pressure;
 
97
  nux::Property<int> edge_stop_velocity;
 
98
  nux::Property<int> edge_reveal_pressure;
 
99
  nux::Property<float> edge_responsiveness;
 
100
  nux::Property<bool> edge_resist;
 
101
  nux::Property<bool> show_for_all;
 
102
 
 
103
  sigc::signal<void> option_changed;
 
104
};
 
105
 
 
106
}
 
107
}
 
108
 
 
109
#endif // LAUNCHEROPTIONS_H