This file is indexed.

/usr/share/kde4/apps/kwin/aurorae/DecorationButton.qml is in kde-window-manager-common 4:4.11.8-0ubuntu6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/********************************************************************
Copyright (C) 2012 Martin Gräßlin <mgraesslin@kde.org>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
import QtQuick 1.1

Item {
    id: button
    property string buttonType : ""
    property bool hovered: false
    property bool pressed: false
    property bool toggled: false
    enabled: {
        switch (button.buttonType) {
        case "X":
            return decoration.closeable;
        case "A":
        case "R":
            return decoration.maximizeable;
        case "I":
            return decoration.minimizeable;
        case "_":
            return false;
        default:
            return true;
        }
    }
    MouseArea {
        anchors.fill: parent
        acceptedButtons: {
            switch (button.buttonType) {
            case "M":
                return Qt.LeftButton | Qt.RightButton;
            case "A":
            case "R":
                return Qt.LeftButton | Qt.RightButton | Qt.MiddleButton;
            default:
                return Qt.LeftButton;
            }
        }
        hoverEnabled: true
        onEntered: button.hovered = true
        onPositionChanged: decoration.titleMouseMoved(mouse.button, mouse.buttons)
        onExited: button.hovered = false
        onPressed: button.pressed = true
        onReleased: button.pressed = false
        onClicked: {
            switch (button.buttonType) {
            case "M":
                // menu
                decoration.menuClicked();
                break;
            case "N":
                // app menu
                decoration.appMenuClicked();
                break;
            case "S":
                // all desktops
                decoration.toggleOnAllDesktops();
                break;
            case "H":
                // help
                decoration.showContextHelp();
                break;
            case "I":
                // minimize
                decoration.minimize();
                break;
            case "A":
            case "R":
                // maximize
                decoration.maximize(mouse.button);
                break;
            case "X":
                // close
                decoration.closeWindow();
                break;
            case "F":
                // keep above
                decoration.toggleKeepAbove();
                break;
            case "B":
                // keep below
                decoration.toggleKeepBelow();
                break;
            case "L":
                // shade
                decoration.toggleShade();
                break;
            }
        }
        onDoubleClicked: {
            if (button.buttonType == "M") {
                decoration.closeWindow();
            }
        }
        Component.onCompleted: {
            switch (button.buttonType) {
            case "S":
                // all desktops
                button.toggled = decoration.onAllDesktops;
                break;
            case "F":
                button.toggled = decoration.keepAbove;
                break;
            case "B":
                button.toggled = decoration.keepBelow;
                break;
            case "L":
                button.toggled = decoration.shade;
                break;
            }
        }
        Connections {
            target: decoration
            onShadeChanged: {
                if (button.buttonType != "L") {
                    return;
                }
                button.toggled = decoration.shade;
            }
            onKeepBelowChanged: {
                if (button.buttonType != "B") {
                    return;
                }
                button.toggled = decoration.keepBelow;
            }
            onKeepAboveChanged: {
                if (button.buttonType != "F") {
                    return;
                }
                button.toggled = decoration.keepAbove;
            }
            onDesktopChanged: {
                if (button.buttonType != "S") {
                    return;
                }
                button.toggled = decoration.onAllDesktops;
            }
        }
    }
}