6 Class.initClassTree( GUI );
8 this.style = "Plastique";
9 this.palette = QPalette.light;
21 *debugLevel_ { arg level;
23 ^this.primitiveFailed;
26 ///////////////////// redirection of GUI classes /////////////////////////////
29 *compositeView { ^QView }
30 *hLayoutView { ^QHLayoutView }
31 *vLayoutView { ^QVLayoutView }
33 *scrollView { ^QScrollView; }
35 *staticText { ^QStaticText }
37 *checkBox { ^QCheckBox; }
38 *textField { ^QTextField }
39 *numberBox { ^QNumberBox }
41 *multiSliderView { ^QMultiSliderView }
42 *rangeSlider { ^QRangeSlider }
43 *slider2D { ^QSlider2D }
44 *tabletSlider2D { ^this.notImplemented( "TabletSlider2D"); }
46 *listView { ^QListView }
47 *treeView { ^QTreeView }
48 *popUpMenu { ^QPopUpMenu }
49 *textView { ^QTextView; }
51 *freqScope { ^PlusFreqScopeWindow }
52 *freqScopeView { ^PlusFreqScope }
53 *scopeView { ^QScope }
54 *stethoscope1 { ^QStethoscope }
55 *stethoscope { ^QStethoscope2 }
56 *soundFileView { ^QSoundFileView }
57 *envelopeView { ^QEnvelopeView }
58 *tabletView { ^this.notImplemented( "TabletView"); }
59 *movieView { ^this.notImplemented( "MovieView"); }
60 *levelIndicator { ^QLevelIndicator }
61 *webView { ^QWebView }
63 *userView { ^QUserView }
65 *dragSource { ^QDragSource; }
66 *dragSink { ^QDragSink; }
67 *dragBoth { ^QDragBoth; }
71 *ezScroller { ^EZScroller }
72 *ezSlider { ^EZSlider }
73 *ezListView { ^EZListView }
74 *ezPopUpMenu { ^EZPopUpMenu}
75 *ezNumber { ^EZNumber}
76 *ezRanger { ^EZRanger }
78 *hLayout { ^QHLayout }
79 *vLayout { ^QVLayout }
80 *gridLayout { ^QGridLayout }
81 *stackLayout { ^QStackLayout }
86 *image { ^this.notImplemented( "Image" ) }
88 *notImplemented { arg class;
89 //("QtGUI: " ++ class.asString ++ " is not implemented yet").postln;
93 //////////////////////////////////////////////////////////////////////
97 ^this.primitiveFailed;
100 *style_ { arg styleName;
101 protect { this.prSetStyle(styleName) } { |err| if(err.isNil){style = styleName} };
104 *stringBounds { arg aString, aFont;
105 var bounds = this.prStringBounds( aString, aFont );
113 ^this.primitiveFailed;
118 ^this.primitiveFailed;
123 ^this.primitiveFailed;
127 var view = this.focusView;
129 if( view.respondsTo(\selectedText) ) { ^view.selectedText };
130 if( view.respondsTo(\selectedString) ) { ^view.selectedString };
135 // private ///////////////////////////////////////////////////////////
137 *prStringBounds { arg aString, aFont;
139 ^this.primitiveFailed
142 *prSetStyle { arg name;
144 ^this.primitiveFailed;