1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
3
* Copyright (C) 2010, 2011 Canonical Ltd
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.
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.
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/>.
17
* Authored by: Jason Smith <jason.smith@canonical.com>
18
* Tim Penhey <tim.penhey@canonical.com>
21
#include "LauncherOptions.h"
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;
41
launch_animation = LAUNCH_ANIMATION_PULSE;
42
reveal_trigger = RevealTrigger::EDGE;
44
urgent_animation = URGENT_ANIMATION_WIGGLE;
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(); });