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
hide_mode.changed.connect(sigc::mem_fun (this, &Options::OnHideModeChanged));
31
launch_animation.changed.connect(sigc::mem_fun (this, &Options::OnLaunchAnimationChanged));
32
urgent_animation.changed.connect(sigc::mem_fun (this, &Options::OnUrgentAnimationChanged));
33
auto_hide_animation.changed.connect(sigc::mem_fun (this, &Options::OnAutoHideAnimationChanged));
34
backlight_mode.changed.connect(sigc::mem_fun (this, &Options::OnBacklightModeChanged));
35
icon_size.changed.connect(sigc::mem_fun (this, &Options::OnIconSizeChanged));
36
tile_size.changed.connect(sigc::mem_fun (this, &Options::OnTileSizeChanged));
37
floating.changed.connect(sigc::mem_fun (this, &Options::OnFloatingChanged));
38
background_alpha.changed.connect(sigc::mem_fun (this, &Options::OnBackgroundAlphaChanged));
39
edge_decay_rate.changed.connect(sigc::mem_fun (this, &Options::OnEdgeOptionChanged));
40
edge_overcome_pressure.changed.connect(sigc::mem_fun (this, &Options::OnEdgeOptionChanged));
41
edge_stop_velocity.changed.connect(sigc::mem_fun (this, &Options::OnEdgeOptionChanged));
42
edge_reveal_pressure.changed.connect(sigc::mem_fun (this, &Options::OnEdgeOptionChanged));
45
void Options::OnEdgeOptionChanged(int value)
47
option_changed.emit();
50
void Options::OnHideModeChanged(LauncherHideMode value)
52
option_changed.emit();
55
void Options::OnLaunchAnimationChanged(LaunchAnimation value)
57
option_changed.emit();
60
void Options::OnUrgentAnimationChanged(UrgentAnimation value)
62
option_changed.emit();
65
void Options::OnAutoHideAnimationChanged(AutoHideAnimation value)
67
option_changed.emit();
70
void Options::OnBacklightModeChanged(BacklightMode value)
72
option_changed.emit();
75
void Options::OnIconSizeChanged(int value)
77
option_changed.emit();
80
void Options::OnTileSizeChanged(int value)
82
option_changed.emit();
85
void Options::OnFloatingChanged(bool value)
87
option_changed.emit();
90
void Options::OnBackgroundAlphaChanged(float value)
92
option_changed.emit();
b'\\ No newline at end of file'