aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructureDelegate.m
Commit message (Collapse)AuthorAgeFilesLines
* Rework linebreak handling in content and custom query result views, as ↵rowanbeentje2011-09-211-1/+1
| | | | | | | | | | | triggered by Issue #1184: - Display table cells on a single line for preview purposes - Display gray pilcrow/reverse pilcrow placeholders instead of linebreaks - If a cell contains linebreaks, automatically trigger sheet editing mode - Handle newly displayed linebreaks in column width detection - If using the up/down arrow keys in a field editor, allow them to select the previous/next line within an editor if appropriat (instead of always moving to the previous/next row)
* When moving a field in the structure view, only use the default value if it ↵stuconnolly2011-08-091-34/+48
| | | | actually has one. Fixes issue #1140.
* merging SP_REFACTOR branch with trunksqlprodev2011-05-191-0/+2
|
* • improve BIT field type supportBibiko2011-05-051-1/+1
| | | | | | | | - caught some more exceptional cases - re-factored byte to bit conversion (really do not know why the old code wasn't working anymore); this should fix i1042 - disabled unisgned/zerofill check boxes in Structure for BIT - insert correct default BIT field default value if any after adding a new row -- this works for 5.5 but for MySQL 5.0.x it seems that providing a default value is a MySQL bug (further checks are needed)
* - Add the ability to double-click in empty areas of the main tableviews to ↵rowanbeentje2011-04-251-0/+1
| | | | add new rows/records
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-8/+0
| | | | postNotificationOnMainThread: which also exists in TCMPortMapper.framework; NSUserDefaults access now permitted in SP_REFACTOR blocks for a few prefs keys
* Make some minor changes after reviewing r3271:rowanbeentje2011-04-141-3/+3
| | | | | | - Fix a few encoding issues - Recode a few [NSApp keyWindow] uses back to [SPDatabaseDocument parentWindow] following discussion; possibly for later refactoring into use of an error method
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-3/+13
| | | | UI code from functional code
* - Fix more compiler warningsrowanbeentje2011-03-151-1/+1
| | | | | - Tweak README
* Fix more compiler warnings.stuconnolly2011-03-141-2/+2
|
* Fix more compiler warnings.stuconnolly2011-03-041-1/+1
|
* fixed compiler warningssqlprodev2011-03-011-1/+5
|
* - Revert r3187, which only masked an underlying bug and caused double ↵rowanbeentje2011-02-111-1/+4
| | | | | | | | | columns in views - In SPTableStructureDelete, don't request the encoding if the table is reloading; this prevents multithreaded data fetches and race conditions causing Issue #974. - Alter SPTableData to use thread mutexes instead of a boolean to prevent threading issues, which also fixes Issue #974 in a different way. Alter race condition checks to block their threads instead of returning bogus information to prevent state issues. - Alter table loading to no longer load trigger information until required, speeding up use of other views and cleaning up the console log.
* - Rework the Add Index indexes menu and the auto_increment index required ↵rowanbeentje2011-01-041-1/+2
| | | | | | | | | | | | | menu to use tag-based values when generating queries, allowing localisation of menu contents without using those localised values in queries. This addresses I$ - Remove the ability to specify a FULLTEXT auto_increment index, as I believe this isn't possible. - Prevent sheet reuse from specifying invalid storage types for PRIMARY KEYs - Fix exceptions when adding indexes to a table where every field is already indexed - Fix initialField/indexedFieldNames check to improve on r3061 - Fix toggling advanced index view after closing the sheet with the view open - Update localisable strings
* • fixed table structure logic for date/time fieldsBibiko2010-11-051-2/+5
| | | | - fixes issue 886
* Add a new category to SPDatabaseDocument, allowing code cleanup and moving ↵rowanbeentje2010-11-031-2/+2
| | | | | | | | | | | central functionality out of SPTablesList: - Centralise control over table loading, moving it away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Centralise control over the main tab view, moving control away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Simplify and clean up view loading logic - Improve thread safety - Update localisable strings
* • TableStructure sheet to ask for the to be used index of an ↵Bibiko2010-11-011-1/+13
| | | | | | auto_increment field now runs doc-modal not app-modal - the used strategy is to ask the user for an index whenever the user set the Extra field to 'auto_increment' and not as part of the 'addRowToDb' method
* • improved Structure editing logic to allow to choose auto_increment for ↵Bibiko2010-11-011-4/+23
| | | | | | Extra only if table has no auto_increment field set since MySQL allows only one auto column - the user has still the chance to type 'auto_increment' into the Extra manually
* Tidy up SPTableStructure including moving all the private field type ↵stuconnolly2010-10-281-7/+7
| | | | validation methods to their own class, SPTableFieldValidation.
* Add SPDefaultPasteboardDragType constant.stuconnolly2010-10-281-5/+5
|
* Split out all of SPTableStructure's delegate and datasource methods into ↵stuconnolly2010-10-261-0/+567
their own category.