/usr/share/SuperCollider/SCClassLibrary/QtCollider/enums.sc is in supercollider-common 1:3.6.3~repack-5.
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 | QAlignment {
classvar dict;
*initClass {
dict = IdentityDictionary.new;
dict.put( \left, 16r1 | 16r80 );
dict.put( \center, 16r4 | 16r80 );
dict.put( \right, 16r2 | 16r80 );
dict.put( \topLeft, 16r1 | 16r20 );
dict.put( \top, 16r4 | 16r20 );
dict.put( \topRight, 16r2 | 16r20 );
dict.put( \bottomLeft, 16r1 | 16r40 );
dict.put( \bottom, 16r4 | 16r40 );
dict.put( \bottomRight, 16r2 | 16r40 );
}
*new { arg alignment; ^dict[alignment]; }
}
QOrientation {
classvar dict;
*initClass {
dict = IdentityDictionary.new;
dict.put( \horizontal, 1 );
dict.put( \vertical, 2 );
}
*new { arg alignment; ^dict[alignment]; }
}
QLimits {
classvar dict;
*initClass {
dict = IdentityDictionary.new;
dict.put( \maxWidgetSize, 16777215 );
}
*new { arg limit; ^dict[limit]; }
}
QKey {
classvar
<left = 16r1000012,
<up = 16r1000013,
<right = 16r1000014,
<down = 16r1000015;
}
QKeyModifiers {
classvar
<shift = 16r2000000,
<control = 16r4000000,
<alt = 16r8000000,
<meta = 16r10000000,
<keypad = 16r20000000;
*toCocoa { arg mods;
var cmods = 0;
if (mods & QKeyModifiers.shift > 0) {cmods = cmods | 131072};
if (mods & QKeyModifiers.alt > 0 ) {cmods = cmods | 524288};
Platform.case (
\osx,
{
if (mods & QKeyModifiers.control > 0) {cmods = cmods | 1048576}; // Cmd
if (mods & QKeyModifiers.meta > 0) {cmods = cmods | 262144}; // Ctrl
},
{ if (mods & QKeyModifiers.control > 0) {cmods = cmods | 262144} } // Ctrl
);
if (mods & QKeyModifiers.keypad > 0) {cmods = cmods | 2097152};
// TODO: caps-lock, func, help
^cmods;
}
}
QWebFontFamily {
classvar
<standard = 0,
<fixed = 1,
<serif = 2,
<sansSerif = 3,
<cursive = 4,
<fantasy = 5;
*new { arg symbol; ^this.perform(symbol); }
}
QCurve {
classvar
<step = 0,
<linear = 1, <lin = 1,
<sine = 2, <sin = 2,
<welch = 3, <wel = 3,
<exponential = 4, <exp = 4,
<squared = 5, <sqr = 5,
<cubed = 6, <cub = 6;
*new { arg curve;
^ if (curve.isNumber) {curve.asFloat} {this.perform(curve).asInteger};
}
}
QColorGroup {
classvar
<normal = 0,
<active = 0,
<disabled = 1,
<inactive = 2;
*new { arg name; ^this.perform(name) }
}
QColorRole {
classvar
<window = 10,
<windowText = 0,
<button = 1,
<buttonText = 8,
<brightText = 7,
<base = 9,
<baseText = 6,
<alternateBase = 16,
<toolTipBase = 18,
<toolTipText = 19,
<highlight = 12,
<highlightText = 13,
<link = 14,
<linkVisited = 15,
<light = 2,
<midlight = 3,
<middark = 5,
<dark = 4,
<shadow = 11;
*new { arg name; ^this.perform(name) }
}
|