Commit Graph

4132 Commits

Author SHA1 Message Date
Pietro Gagliardi a858300f25 Filled in image.cpp. Also switched on WIC since we'll need it for uiArea, though uiTable will still need classic GDI. Now let's integrate this into uiTable. 2018-06-09 19:24:36 -04:00
Pietro Gagliardi 3aee505f4e Weirdness workarounds. 2018-06-09 14:32:04 -04:00
Pietro Gagliardi ff64685655 More work. List View is starting to show its dumbness again. 2018-06-09 13:57:43 -04:00
Pietro Gagliardi 1c9f9627c0 Started image support for Windows tables. 2018-06-09 12:15:50 -04:00
Pietro Gagliardi c6c4dbd580 Started handling colors in the Windows table code. 2018-06-09 10:40:42 -04:00
Pietro Gagliardi 06a8044c2c Oops, forgot to keep the string queue full. It works! Now to switch to custom draw. 2018-06-08 22:11:46 -04:00
Pietro Gagliardi 69e91a9678 Fixed build errors and some logic errors. Let's hope it works! 2018-06-08 22:05:11 -04:00
Pietro Gagliardi 71a310909d Oops 2018-06-08 21:45:30 -04:00
Pietro Gagliardi 41d63bd0cf And finished rewriting table.cpp. That wasn't too bad for just text columns. Let's hope it works. 2018-06-08 21:44:55 -04:00
Pietro Gagliardi 516eb312fc Rearranged stuff in table.cpp on Windows and started rewriting it to handle owner-data in the new API. 2018-06-08 21:16:06 -04:00
Pietro Gagliardi 3aa16e844d Adjusted uiTableModel on Windows for owner-data list views. 2018-06-08 01:35:23 -04:00
Pietro Gagliardi ca2115ca57 Removed some old files from wintable that we won't use anymore. 2018-06-08 01:23:11 -04:00
Pietro Gagliardi 0adad7743a Drop mixing of C and C++ class allocations, including placement new. This is the easiest change I can make to the Windows table code for now... 2018-06-07 22:54:01 -04:00
Pietro Gagliardi 7a40bdfb3f Amazingly, it worked the first time! Just a quick logic error here. 2018-06-07 22:30:43 -04:00
Pietro Gagliardi 66ca3315cf Fixed compile errors. Now for runtime errors, if any! 2018-06-07 22:25:17 -04:00
Pietro Gagliardi d6ac22a20a Finished rewriting table.c. Now to test. 2018-06-07 21:50:38 -04:00
Pietro Gagliardi b7151388e3 Started rewriting the column constructors. 2018-06-05 22:47:11 -04:00
Pietro Gagliardi 18d8a8fe22 Converted column functions and editable handlers on GTK+. 2018-06-05 22:00:54 -04:00
Pietro Gagliardi 75a5a050cb Split the uiTableModel GTK+ code into its own file, tablemodel.c. 2018-06-04 23:46:30 -04:00
Pietro Gagliardi 94fa10b35e Started rewriting GTK+ uiTable. Did uiTableModel first. 2018-06-04 23:39:52 -04:00
Pietro Gagliardi 7a5577db94 Deleted now-irrelevant code from OLD_table.m. 2018-06-04 23:28:46 -04:00
Pietro Gagliardi 3c063c71d5 And one more TODO before we move on. 2018-06-04 22:15:05 -04:00
Pietro Gagliardi 0a6a781be7 And implemented row background colors and button clicks. OS X implementation done for now! 2018-06-04 22:14:05 -04:00
Pietro Gagliardi 3fa15d5277 Fixed graphical glitches in the OS X Table. Finally. SOMEHOW. 2018-06-04 20:17:15 -04:00
Pietro Gagliardi 8c611cf95d And added the rest of the column types to the tester. 2018-06-04 20:13:35 -04:00
Pietro Gagliardi 71e02a5c6e And set up the constraints for the other column types. 2018-06-04 20:09:09 -04:00
Pietro Gagliardi 8a0ca54e93 Fixed constraint issues in tablecolumn.m for text-containing columns. I guess that one constraint function needs to go... 2018-06-04 20:03:05 -04:00
Pietro Gagliardi 2cfbb0144e Fixed segfaults. Now to fix logic errors. (Technically one of the two changes here is a logic error too.) 2018-06-04 18:17:05 -04:00
Pietro Gagliardi 3bb050777b Started converting the test program. First column works fine, second segfaults. 2018-06-03 23:23:48 -04:00
Pietro Gagliardi 2b428d50f6 And fixed build errors. Now I just need to rewrite the tester and try this out... 2018-06-03 23:06:44 -04:00
Pietro Gagliardi 8fc4a9aaf5 Filled in the rest of tablecolumn.m: wrote the NSTableColumn subclasses and implemented the public functions. Let's build and see what breaks! 2018-06-03 22:37:36 -04:00
Pietro Gagliardi 6457e1668f Rewrote uiTableModelRowChanged() to properly update rows. We can do this now that we have the setup for row updates and reuse, but this is better than calling reloadData anyway (and reloadData doesn't update the row view, but we (almost) do, so...)... 2018-06-03 21:39:49 -04:00
Pietro Gagliardi 247d63be60 Added a table.h and simplified uiprivTableColumn into an abstract interface. 2018-06-03 20:55:08 -04:00
Pietro Gagliardi da2a4c1e36 Started building back the uiTable implementation. 2018-06-03 19:59:05 -04:00
Pietro Gagliardi 8ee5c61fe8 And added button columns. Now to start writing the rest of the uiTable glue. 2018-06-03 19:21:01 -04:00
Pietro Gagliardi b74b987fff Added progressbar columns. 2018-06-03 18:34:29 -04:00
Pietro Gagliardi 54ca41afb6 Moved common/table.c out of the way for now; it's not relevant with the proposed colum changes and definite data changes. 2018-06-03 17:57:17 -04:00
Pietro Gagliardi c04f3d3fbe Adjusted tablecolumn.m to use the new data functions. 2018-06-03 17:39:02 -04:00
Pietro Gagliardi 43b1a46669 Wrote the common table data functions. 2018-06-03 17:28:54 -04:00
Pietro Gagliardi 705bf2d9bf Planned a new system for transferring data between tables and models, based on uiAttribute. 2018-06-03 17:18:01 -04:00
Pietro Gagliardi 9c519f1bfa Added checkboxes and consolidated all the columns with or without text. Progressbars and buttons will be separate object types. I do need to redo the data-passing method, and now that there's uiAttribute I can just model a better one off that. 2018-06-03 16:50:35 -04:00
Pietro Gagliardi d1b7d14a82 Added image columns. 2018-06-03 14:13:32 -04:00
Pietro Gagliardi 5d57666764 Started writing the new table column code on OS X. This new code will take full advantage of NSTableView features like the reuse cache. Right now we just have the boilerplate for text-only columns. 2018-06-03 13:28:42 -04:00
Pietro Gagliardi 2f83428ebe Trying out a new uiTable API. This will make implementations easier, and figures that very few people need dynamic control over table column layout or contents. 2018-06-03 12:26:23 -04:00
Niklas Mischkulnig 3e5f4b3674 Fix area setSize macOS 2018-06-01 15:45:55 +02:00
Niklas Mischkulnig 773856fa90 Fix uiAttributedStringDelete 2018-05-31 17:49:44 +02:00
Pietro Gagliardi c4ce1072c7 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-31 08:21:40 -04:00
Pietro Gagliardi 7911ed0e81 Merge branch 'master' into table 2018-05-31 08:21:21 -04:00
Pietro Gagliardi cda991b7e2
Merge pull request #376 from mischnic/datetime-unreg
Fix uiDateTimePicker-related crashes in test on OS X: they were not being destroyed properly.
2018-05-31 08:20:16 -04:00
Niklas Mischkulnig 1b4c898a0c Fix datetimepicker crash 2018-05-31 13:03:19 +02:00