This file is indexed.

/usr/share/SuperCollider/SCClassLibrary/QtCollider/QDialog.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
QFileDialog : QObject {
  *qtClass { ^'QcFileDialog' }

  *new { arg okFunc, cancelFunc, fileMode, acceptMode, stripResult = false;

    var me = super.new( [fileMode, acceptMode] );

    if( okFunc.notNil ) {
      me.connectFunction( 'accepted(VariantList)', {
        |me, result|
        if( stripResult )
          { okFunc.performList(\value, result) }
          { okFunc.value(result) }
      });
    };

    if( cancelFunc.notNil ) {
      me.connectFunction( 'rejected()', { cancelFunc.value() } );
    };

    me.invokeMethod('show', synchronous:false);

    ^me;
  }
}

QDialog {
  *implementsClass {^'Dialog'}

  *getPaths { arg okFunc, cancelFunc, allowsMultiple=true;
    var fileMode;
    if( allowsMultiple ) { fileMode = 3 } { fileMode = 1 };
    ^QFileDialog.new( okFunc, cancelFunc, fileMode, 0 );
  }

  *openPanel { arg okFunc, cancelFunc, multipleSelection=false;
    var fileMode;
    if( multipleSelection ) { fileMode = 3 } { fileMode = 1 };
    ^QFileDialog.new( okFunc, cancelFunc, fileMode, 0, stripResult:multipleSelection.not );
  }

  *savePanel { arg okFunc, cancelFunc;
    ^QFileDialog.new( okFunc, cancelFunc, 0, 1, stripResult:true );
  }
}