~azzar1/unity/fix-trash-li-blocking

« back to all changes in this revision

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

  • 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, 2011 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
#include "LauncherOptions.h"
 
22
 
 
23
namespace unity
 
24
{
 
25
namespace launcher
 
26
{
 
27
 
 
28
Options::Options()
 
29
{
 
30
  // defaults from XML file
 
31
  auto_hide_animation = FADE_AND_SLIDE;
 
32
  background_alpha = 0.6667;
 
33
  backlight_mode = BACKLIGHT_ALWAYS_ON;
 
34
  edge_decay_rate = 1500;
 
35
  edge_overcome_pressure = 2000;
 
36
  edge_responsiveness = 2.0f;
 
37
  edge_reveal_pressure = 2000;
 
38
  edge_stop_velocity = 6500;
 
39
  hide_mode = LAUNCHER_HIDE_NEVER;
 
40
  icon_size = 48;
 
41
  launch_animation = LAUNCH_ANIMATION_PULSE;
 
42
  reveal_trigger = RevealTrigger::EDGE;
 
43
  tile_size = 54;
 
44
  urgent_animation = URGENT_ANIMATION_WIGGLE;
 
45
  edge_resist = true;
 
46
  show_for_all = false;
 
47
 
 
48
  auto_hide_animation.changed.connect   ([&] (AutoHideAnimation value)-> void { option_changed.emit(); });
 
49
  background_alpha.changed.connect      ([&] (float value)            -> void { option_changed.emit(); });
 
50
  backlight_mode.changed.connect        ([&] (BacklightMode value)    -> void { option_changed.emit(); });
 
51
  edge_decay_rate.changed.connect       ([&] (int value)              -> void { option_changed.emit(); });
 
52
  edge_overcome_pressure.changed.connect([&] (int value)              -> void { option_changed.emit(); });
 
53
  edge_responsiveness.changed.connect   ([&] (float value)            -> void { option_changed.emit(); });
 
54
  edge_reveal_pressure.changed.connect  ([&] (int value)              -> void { option_changed.emit(); });
 
55
  edge_stop_velocity.changed.connect    ([&] (int value)              -> void { option_changed.emit(); });
 
56
  hide_mode.changed.connect             ([&] (LauncherHideMode value) -> void { option_changed.emit(); });
 
57
  icon_size.changed.connect             ([&] (int value)              -> void { option_changed.emit(); });
 
58
  launch_animation.changed.connect      ([&] (LaunchAnimation value)  -> void { option_changed.emit(); });
 
59
  reveal_trigger.changed.connect        ([&] (RevealTrigger vallue)   -> void { option_changed.emit(); });
 
60
  tile_size.changed.connect             ([&] (int value)              -> void { option_changed.emit(); });
 
61
  urgent_animation.changed.connect      ([&] (UrgentAnimation value)  -> void { option_changed.emit(); });
 
62
  edge_resist.changed.connect           ([&] (bool value)             -> void { option_changed.emit(); });
 
63
}
 
64
 
 
65
 
 
66
}
 
67
}