~3v1n0/unity/scale-window-cast-protection

1286.1.2 by Jason Smith
Add missing files
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
 */
19
20
#ifndef DESKTOPLAUNCHERICON_H
21
#define DESKTOPLAUNCHERICON_H
22
23
#include "SimpleLauncherIcon.h"
24
1635.1.31 by Tim Penhey
A few tweaks to get it to compile.
25
namespace unity
26
{
27
namespace launcher
28
{
29
1286.1.2 by Jason Smith
Add missing files
30
class DesktopLauncherIcon : public SimpleLauncherIcon
31
{
32
public:
1820.1.1 by Jason Smith
first attempt at multi-monitor launcher support
33
  DesktopLauncherIcon();
2529.14.17 by Marco Trevisan (Treviño)
DesktopLauncherIcon: add Super+D shortcut and remoteUri
34
35
  void SetShowInSwitcher(bool show_in_switcher);
36
  bool ShowInSwitcher(bool current);
1286.1.2 by Jason Smith
Add missing files
37
38
protected:
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
39
  void ActivateLauncherIcon(ActionArg arg);
4036.11.37 by Marco Trevisan (Treviño)
DesktopLauncherIcon: force it to be the first icon in switcher
40
  uint64_t SwitcherPriority() override;
1882.2.14 by Thomi Richards
Refactor of launcher icon classes.
41
  std::string GetName() const;
3440.1.31 by Marco Trevisan (Treviño)
AbstractLauncherIcon: make DesktopFile() and RemoteUri() const methods
42
  std::string GetRemoteUri() const;
1741.1.1 by Andrea Azzarone
Add a ccsm option to display a "Show Desktop" icon in the launcher.
43
44
private:
3860.3.1 by Brandon Schaefer
* When Show Deskop is active (ie. the next time you pess the icon), it will show the tooltis: Restore Windows.
45
  void UpdateTooltipText();
46
1741.1.1 by Andrea Azzarone
Add a ccsm option to display a "Show Desktop" icon in the launcher.
47
  bool show_in_switcher_;
1286.1.2 by Jason Smith
Add missing files
48
};
49
1635.1.31 by Tim Penhey
A few tweaks to get it to compile.
50
}
51
}
52
1286.1.2 by Jason Smith
Add missing files
53
#endif // DESKTOPLAUNCHERICON_H