@@ -31,14 +31,14 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | public function applyToObject (int $selector): void |
34 | - { |
|
35 | - VoidEngine::setProperty ($selector, 'Icon', $this->selector); |
|
36 | - } |
|
34 | + { |
|
35 | + VoidEngine::setProperty ($selector, 'Icon', $this->selector); |
|
36 | + } |
|
37 | 37 | |
38 | - public function saveToFile (string $file): void |
|
39 | - { |
|
40 | - VoidEngine::callMethod ($this->selector, 'Save', $file); |
|
41 | - } |
|
38 | + public function saveToFile (string $file): void |
|
39 | + { |
|
40 | + VoidEngine::callMethod ($this->selector, 'Save', $file); |
|
41 | + } |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | class Bitmap extends WFObject |
@@ -7,14 +7,14 @@ discard block |
||
7 | 7 | public $class = 'System.Drawing.Image'; |
8 | 8 | public $namespace = 'System.Drawing'; |
9 | 9 | |
10 | - public function __construct () |
|
10 | + public function __construct() |
|
11 | 11 | { |
12 | - parent::__construct ($this->class); |
|
12 | + parent::__construct($this->class); |
|
13 | 13 | } |
14 | 14 | |
15 | - public function loadFromFile (string $path) |
|
15 | + public function loadFromFile(string $path) |
|
16 | 16 | { |
17 | - return $this->fromFile ($path); |
|
17 | + return $this->fromFile($path); |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
@@ -23,21 +23,21 @@ discard block |
||
23 | 23 | public $class = 'System.Drawing.Icon'; |
24 | 24 | public $namespace = 'System.Drawing'; |
25 | 25 | |
26 | - public function __construct (string $file) |
|
26 | + public function __construct(string $file) |
|
27 | 27 | { |
28 | - parent::__construct ($this->class); |
|
28 | + parent::__construct($this->class); |
|
29 | 29 | |
30 | - $this->fromFile ($file); |
|
30 | + $this->fromFile($file); |
|
31 | 31 | } |
32 | 32 | |
33 | - public function applyToObject (int $selector): void |
|
33 | + public function applyToObject(int $selector): void |
|
34 | 34 | { |
35 | - VoidEngine::setProperty ($selector, 'Icon', $this->selector); |
|
35 | + VoidEngine::setProperty($selector, 'Icon', $this->selector); |
|
36 | 36 | } |
37 | 37 | |
38 | - public function saveToFile (string $file): void |
|
38 | + public function saveToFile(string $file): void |
|
39 | 39 | { |
40 | - VoidEngine::callMethod ($this->selector, 'Save', $file); |
|
40 | + VoidEngine::callMethod($this->selector, 'Save', $file); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | public $class = 'System.Drawing.Bitmap'; |
47 | 47 | public $namespace = 'System.Drawing'; |
48 | 48 | |
49 | - public function __construct (string $filename) |
|
49 | + public function __construct(string $filename) |
|
50 | 50 | { |
51 | - parent::__construct ($this->class, $this->namespace, [$filename, 'string']); |
|
51 | + parent::__construct($this->class, $this->namespace, [$filename, 'string']); |
|
52 | 52 | } |
53 | 53 | } |
@@ -18,11 +18,11 @@ |
||
18 | 18 | |
19 | 19 | protected $items; |
20 | 20 | |
21 | - public function __construct (string $text = '') |
|
21 | + public function __construct(string $text = '') |
|
22 | 22 | { |
23 | - parent::__construct (null, $this->class); |
|
23 | + parent::__construct(null, $this->class); |
|
24 | 24 | |
25 | 25 | $this->text = $text; |
26 | - $this->items = new WFObject ($this->getProperty ('DropDownItems')); |
|
26 | + $this->items = new WFObject($this->getProperty('DropDownItems')); |
|
27 | 27 | } |
28 | 28 | } |
@@ -10,12 +10,12 @@ |
||
10 | 10 | protected $panel2; |
11 | 11 | |
12 | 12 | public function __construct (Component $parent = null) |
13 | - { |
|
13 | + { |
|
14 | 14 | parent::__construct ($parent, $this->class); |
15 | 15 | |
16 | 16 | $this->panel1 = new SplitterPanel ($this->getProperty ('Panel1')); |
17 | 17 | $this->panel2 = new SplitterPanel ($this->getProperty ('Panel2')); |
18 | - } |
|
18 | + } |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | class SplitterPanel extends Control |
@@ -9,18 +9,18 @@ |
||
9 | 9 | protected $panel1; |
10 | 10 | protected $panel2; |
11 | 11 | |
12 | - public function __construct (Component $parent = null) |
|
12 | + public function __construct(Component $parent = null) |
|
13 | 13 | { |
14 | - parent::__construct ($parent, $this->class); |
|
14 | + parent::__construct($parent, $this->class); |
|
15 | 15 | |
16 | - $this->panel1 = new SplitterPanel ($this->getProperty ('Panel1')); |
|
17 | - $this->panel2 = new SplitterPanel ($this->getProperty ('Panel2')); |
|
16 | + $this->panel1 = new SplitterPanel($this->getProperty('Panel1')); |
|
17 | + $this->panel2 = new SplitterPanel($this->getProperty('Panel2')); |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
21 | 21 | class SplitterPanel extends Control |
22 | 22 | { |
23 | - public function __construct (int $selector) |
|
23 | + public function __construct(int $selector) |
|
24 | 24 | { |
25 | 25 | $this->selector = $selector; |
26 | 26 | } |
@@ -6,6 +6,6 @@ |
||
6 | 6 | |
7 | 7 | class FastColoredTextBox extends NoVisual |
8 | 8 | { |
9 | - public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
9 | + public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
10 | 10 | public $namespace = 'FastColoredTextBox'; |
11 | 11 | } |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -EngineAdditions::loadModule ('FastColoredTextBox.dll'); |
|
5 | +EngineAdditions::loadModule('FastColoredTextBox.dll'); |
|
6 | 6 | |
7 | 7 | class FastColoredTextBox extends NoVisual |
8 | 8 | { |
9 | - public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
9 | + public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
10 | 10 | public $namespace = 'FastColoredTextBox'; |
11 | 11 | } |
@@ -8,11 +8,11 @@ discard block |
||
8 | 8 | |
9 | 9 | protected $items; |
10 | 10 | |
11 | - public function __construct () |
|
11 | + public function __construct() |
|
12 | 12 | { |
13 | - parent::__construct ($this->class); |
|
13 | + parent::__construct($this->class); |
|
14 | 14 | |
15 | - $this->items = new WFObject ($this->getProperty ('MenuItems')); |
|
15 | + $this->items = new WFObject($this->getProperty('MenuItems')); |
|
16 | 16 | } |
17 | 17 | } |
18 | 18 | |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | |
23 | 23 | protected $items; |
24 | 24 | |
25 | - public function __construct () |
|
25 | + public function __construct() |
|
26 | 26 | { |
27 | - parent::__construct ($this->class); |
|
27 | + parent::__construct($this->class); |
|
28 | 28 | |
29 | - $this->items = new WFObject ($this->getProperty ('MenuItems')); |
|
29 | + $this->items = new WFObject($this->getProperty('MenuItems')); |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | |
37 | 37 | protected $items; |
38 | 38 | |
39 | - public function __construct (string $text = '') |
|
39 | + public function __construct(string $text = '') |
|
40 | 40 | { |
41 | - parent::__construct (null, $this->class); |
|
41 | + parent::__construct(null, $this->class); |
|
42 | 42 | |
43 | 43 | $this->text = $text; |
44 | - $this->items = new WFObject ($this->getProperty ('MenuItems')); |
|
44 | + $this->items = new WFObject($this->getProperty('MenuItems')); |
|
45 | 45 | } |
46 | 46 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | protected $items; |
10 | 10 | |
11 | 11 | public function __construct (Component $parent = null) |
12 | - { |
|
12 | + { |
|
13 | 13 | parent::__construct ($parent, $this->class); |
14 | 14 | |
15 | 15 | $this->items = new WFObject ($this->getProperty ('TabPages')); |
@@ -8,11 +8,11 @@ discard block |
||
8 | 8 | |
9 | 9 | protected $items; |
10 | 10 | |
11 | - public function __construct (Component $parent = null) |
|
11 | + public function __construct(Component $parent = null) |
|
12 | 12 | { |
13 | - parent::__construct ($parent, $this->class); |
|
13 | + parent::__construct($parent, $this->class); |
|
14 | 14 | |
15 | - $this->items = new WFObject ($this->getProperty ('TabPages')); |
|
15 | + $this->items = new WFObject($this->getProperty('TabPages')); |
|
16 | 16 | } |
17 | 17 | } |
18 | 18 | |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | { |
21 | 21 | public $class = 'System.Windows.Forms.TabPage'; |
22 | 22 | |
23 | - public function __construct (string $text = '') |
|
23 | + public function __construct(string $text = '') |
|
24 | 24 | { |
25 | - parent::__construct (null, $this->class); |
|
25 | + parent::__construct(null, $this->class); |
|
26 | 26 | |
27 | 27 | $this->text = $text; |
28 | 28 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | { |
7 | 7 | public $class = 'System.Windows.Forms.FolderBrowserDialog'; |
8 | 8 | |
9 | - public function get_path () |
|
9 | + public function get_path() |
|
10 | 10 | { |
11 | - return $this->getProperty ('SelectedPath'); |
|
11 | + return $this->getProperty('SelectedPath'); |
|
12 | 12 | } |
13 | 13 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | { |
7 | 7 | public $class = 'System.Windows.Forms.MessageBox'; |
8 | 8 | |
9 | - public function __construct () |
|
9 | + public function __construct() |
|
10 | 10 | { |
11 | - parent::__construct ($this->class); |
|
11 | + parent::__construct($this->class); |
|
12 | 12 | } |
13 | 13 | } |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | class CheckBox extends Control |
6 | 6 | { |
7 | - public $class = 'System.Windows.Forms.CheckBox'; |
|
7 | + public $class = 'System.Windows.Forms.CheckBox'; |
|
8 | 8 | } |