Pietro Gagliardi
|
e4992dbcb2
|
Began the work for moving everything to the new control sizing system.
|
2014-06-25 22:07:37 -04:00 |
Pietro Gagliardi
|
0e620c4d34
|
Fixed window.go from the previous commit to improve documentation and change function behavior.
|
2014-06-11 09:51:00 -04:00 |
papplampe
|
4fa35b2239
|
added Center function to window
|
2014-06-11 11:41:31 +02:00 |
Pietro Gagliardi
|
43b3f1c2a8
|
Partial go fmt. Will do the rest over the next few commits. While I'm not too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...)
|
2014-06-10 09:55:14 -04:00 |
Pietro Gagliardi
|
427a0f3a74
|
Big change to Window: split Open()'s functionality into Create() and Open(); they no longer return errors.
|
2014-06-03 23:08:51 -04:00 |
Pietro Gagliardi
|
59870e80f0
|
Quick changes: turned "Window has been opened" to "Window has been created" since I'm going to separate creating and opening (Open() will call Create()).
|
2014-06-03 22:54:28 -04:00 |
Pietro Gagliardi
|
9e185d815e
|
Documented that event channels can be assigned to each other to collapse events.
|
2014-04-10 11:59:40 -04:00 |
Pietro Gagliardi
|
2647d28f2b
|
Removed the initText parameter from sysData.make() and changed all invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
|
2014-04-01 16:43:56 -04:00 |
Pietro Gagliardi
|
34ce16d586
|
Separated file creation dates from the package comment.
|
2014-03-12 21:55:45 -04:00 |
Pietro Gagliardi
|
26c6b97ce1
|
Removed ui.Event(); all event channels are initialized with their objects now.
|
2014-03-12 21:47:39 -04:00 |
Pietro Gagliardi
|
a68bdec2fd
|
Removed error returns from [all controls].SetText() and Window.SetTitle().
|
2014-03-10 10:45:15 -04:00 |
Pietro Gagliardi
|
3ed9c0b75d
|
Removed error returns from Window.Show() and Window.Hide(). Also properly locked the Window's mutex lock in both functions.
|
2014-03-09 21:47:22 -04:00 |
Pietro Gagliardi
|
45e0779790
|
Split sysData.show() into separate show() and firstShow() to accomodate Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
|
2014-03-09 21:40:14 -04:00 |
Pietro Gagliardi
|
b166c0f114
|
And the uitask message fixed was the issue all along. Now it works.
|
2014-02-24 14:16:05 -05:00 |
Pietro Gagliardi
|
d08ad65c4c
|
Potential fix: show the window before getting control preferred sizes; need to make setRect() locking first.
|
2014-02-24 14:05:38 -05:00 |
Pietro Gagliardi
|
fb82e651a4
|
Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README.
|
2014-02-19 11:41:10 -05:00 |
Pietro Gagliardi
|
b1b05c2b1f
|
Removed all //package ui comments.
|
2014-02-17 18:01:32 -05:00 |
Pietro Gagliardi
|
1be9c1a105
|
Removed another TODO in window.go related to resizing. Also a note I forgot to say a few commits ago: setWindowSize() also keeps the OS-decided window position.
|
2014-02-15 13:12:46 -05:00 |
Pietro Gagliardi
|
99feed7628
|
Removed setting the initial width and height in sysData.make() (this gets rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly.
|
2014-02-15 13:07:46 -05:00 |
Pietro Gagliardi
|
a65e5d8743
|
Fixed build errors in the previous commits.
|
2014-02-15 12:45:17 -05:00 |
Pietro Gagliardi
|
2c97007551
|
Resolved some of window.go's TODOs.
|
2014-02-15 12:04:01 -05:00 |
Pietro Gagliardi
|
3a69fa9f2d
|
Window-related TODOs.
|
2014-02-14 23:19:35 -05:00 |
Pietro Gagliardi
|
9403224eb0
|
Windows no longer need to be Controls after I reworked the parent-child system so that children do not need ot know what their parents are.
|
2014-02-14 11:13:10 -05:00 |
Pietro Gagliardi
|
80f43a613a
|
Renamed Control.apply() to Control.make().
|
2014-02-14 11:12:08 -05:00 |
Pietro Gagliardi
|
8407bfb0cb
|
Changed manual sysData construction to use a helper function instead.
|
2014-02-14 11:02:59 -05:00 |
Pietro Gagliardi
|
91113a32bf
|
Removed Control.setParent() as the parent/child hierarchy is now unidirectional.
|
2014-02-13 11:45:10 -05:00 |
Pietro Gagliardi
|
5626b9e35c
|
Added sizing of windows and the main window control. It presently deadlocks; I'll need to redo my mutexes...
|
2014-02-13 05:28:26 -05:00 |
Pietro Gagliardi
|
942490e1aa
|
Adjusted Control and Window for the new system.
|
2014-02-12 21:23:53 -05:00 |
Pietro Gagliardi
|
a9ff388944
|
Added Window.SetTitle(). Also oops, forgot to mark the window as created.
|
2014-02-12 18:14:37 -05:00 |
Pietro Gagliardi
|
ddfb5c7603
|
Added buttons.
|
2014-02-12 11:29:20 -05:00 |
Pietro Gagliardi
|
49d0375975
|
Added initial window size and the Window.SetTitle() function.
|
2014-02-12 10:51:27 -05:00 |
Pietro Gagliardi
|
3f8fe0e710
|
Separated initial text from sysData and fixed errors in the previous commits.
|
2014-02-12 10:43:57 -05:00 |
Pietro Gagliardi
|
e9e2c0f269
|
Set up restrictions tracking. Added a restriction that a window and its controls are fixed to the window once it has been open. Started accounting for parent windows in controls.
|
2014-02-12 10:29:56 -05:00 |
Pietro Gagliardi
|
73fa611b37
|
All build errors resolved. Now to test...
|
2014-02-11 19:18:03 -05:00 |
Pietro Gagliardi
|
b918496ae4
|
Filled in the standard window procedure.
|
2014-02-11 18:22:39 -05:00 |
Pietro Gagliardi
|
9794814e93
|
Started implementing the public API: added the Window and Control types and the skeleton of the Windows implementation.
|
2014-02-11 16:14:15 -05:00 |