summaryrefslogtreecommitdiff
path: root/sysdata.go
AgeCommit message (Collapse)Author
2014-08-30Out with the old...Pietro Gagliardi
2014-07-03Added Post() and implemented it on Windows.Pietro Gagliardi
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer).
2014-07-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-07-01Removed WindowHandler.Pietro Gagliardi
2014-06-30Made Window.Closing a callback closure.Pietro Gagliardi
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-28Implemented the new events in the portable code.Pietro Gagliardi
2014-06-28Migrated window.go and sysdata.go to the new API. Controls will need to be ↵Pietro Gagliardi
migrated as well.
2014-06-26Added Checkbox.SetChecked() and implemented it on GTK+.Pietro Gagliardi
2014-06-25Made the new sizing system work on Windows.Pietro Gagliardi
2014-06-25Began the work for moving everything to the new control sizing system.Pietro Gagliardi
2014-06-25Added the necessary work to make new regular Labels work on the other platforms.Pietro Gagliardi
2014-06-11Fixed the implementation of sysData.center() on Windows to be thread-safe; ↵Pietro Gagliardi
also added center() to the _xSysData interface.
2014-06-10More go fmt.Pietro Gagliardi
2014-06-09Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) ↵Pietro Gagliardi
and implemented it on Mac OS X.
2014-05-29Checked to see if the previous commit worked after removing the leftover ↵Pietro Gagliardi
Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well.
2014-05-17Found a method in NSArrayController via Stack Overflow which lets me ↵Pietro Gagliardi
suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension.
2014-04-12Fixed Listboxes on Mac OS X having an initial selection.Pietro Gagliardi
2014-04-12Fixed Comboboxes on Mac OS X having an initial selection. This also lays the ↵Pietro Gagliardi
groundwork for adding Combobox/Listbox.Select() as a public function...
2014-04-07Split out the common resizing code into its own function so that it's all in ↵Pietro Gagliardi
one place. This will also affect what happens if I switch to DeferWindowPos() on Windows.
2014-04-01Removed the initText parameter from sysData.make() and changed all ↵Pietro Gagliardi
invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
2014-04-01Changed the cSysData dummy functions to an interface that a dummy sysData ↵Pietro Gagliardi
instance is tested against to make sure that not only all functions exist, but also that they are all the correct type.
2014-03-23Added Area resizing. Everything mostly works, but not making things smaller...Pietro Gagliardi
2014-03-17Changed the new resizing code so that it uses the same allocated slice per ↵Pietro Gagliardi
window instead of making a new one to store all the resize requests each time.
2014-03-17Changed window resizes so that the actual Control.setRect() functions ↵Pietro Gagliardi
appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
2014-03-16Changed Area to use a delegate handler object that implements the new ↵Pietro Gagliardi
AreaHandler interface for handling events. Also updated the GTK+ backend with this change, and made a few more tweaks to the documentation in area.go.
2014-03-15Added portable code for Area's MouseEvent.Pietro Gagliardi
2014-03-14Added Area support in sysdata.go so the package can compile again. Now to do ↵Pietro Gagliardi
that big change mentioned in the previous commit: overhaul of the GTK+ signal system.
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Removed ui.Event(); all event channels are initialized with their objects now.Pietro Gagliardi
2014-03-11Removed error returns from Combobox.Delete(), Listbox.Delete(), and ↵Pietro Gagliardi
sysData.delete(), since they are no longer used. Updated the TODO file to mark this issue closed.
2014-03-10Removed error returns from sysData.setText() now that we no longer care.Pietro Gagliardi
2014-03-09Removed now-unused error returns from sysData.show() and sysData.hide().Pietro Gagliardi
2014-03-09Split sysData.show() into separate show() and firstShow() to accomodate ↵Pietro Gagliardi
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-09Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() ↵Pietro Gagliardi
because screw Windows being different.
2014-03-08Added Combobox/Listbox.Len() and its GTK+ implementation.Pietro Gagliardi
2014-03-03Fixed Mac OS X control placement flipping. This is done by passing the ↵Pietro Gagliardi
height of the window around setRect() calls to avoid polling the content view frame each time.
2014-02-25Added password entry fields; they are the alternate mode of LineEdit.Pietro Gagliardi
2014-02-25Added portable parts of ProgressBar.Pietro Gagliardi
2014-02-23Added the preferred widget size basework and its GTK+ implementation.Pietro Gagliardi
2014-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-18Buffered the event channels, as per skelterjohn's suggestion; I thought this ↵Pietro Gagliardi
would fix the faults I now get, but it doesn't...
2014-02-18Made event dispatch asynchronous to avoid deadlocks; right now events that ↵Pietro Gagliardi
cannot be dispatched get dropped.
2014-02-15Added Combobox.Delete() and Listbox.Delete() and added some TODOs.Pietro Gagliardi
2014-02-15More error handling reduction.Pietro Gagliardi
2014-02-15Reduced the number of unnecessary error returns based on MSDN. The TODOs ↵Pietro Gagliardi
that used to be there have been moved to a new file; similar files for Mac and Linux will also be made.
2014-02-15Removed setting the initial width and height in sysData.make() (this gets ↵Pietro Gagliardi
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-15Added sysData.setWindowSize(), which will simplify a few things in ↵Pietro Gagliardi
Window.Open() and Control.make().