aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
Commit message (Collapse)AuthorAgeFilesLines
* - Lion compatibility improvement: add support for fullscreen windows, on ↵rowanbeentje2011-08-161-13/+40
| | | | | | | | | | | the main window only; hide SSH/SSL status when entering fullscreen mode, to prevent drawing issues - Lion compatibility improvement: update tab colours under 10.7 to match system styles - Lion compatibility improvement: fix issues dragging tabs out of windows and into other tab bars - Lion compatibility improvement: fix QuickLook issues under 10.7, including windows which couldn't be closed, fullscreened, or crashes - Fix exceptions in the bundle controller when using tab switching keys - Lion compatibility improvement: use overlay scrollers where possible
* - Review changes made in r3376 and revert a number of regressionsrowanbeentje2011-08-141-6/+4
|
* Fix encoding issues, particularly giving errors when selecting tables and ↵rowanbeentje2011-08-071-1/+5
| | | | | | | | | | | displaying NULLs within tables when the connection encoding is incorrectly detected (Issue #1100): - No longer rely on a combination of mysql_options(..., MYSQL_SET_CHARSET_NAME, ...utf8...) and mysql_character_set_name() to detect the connection encoding; this incorrectly misses init_connect commands; instead use SHOW_VARIABLES a$ - Combine initial version check/timezone check/encoding check on startup, reducing connection queries and thus improving connection speed - Add support for abbreviated MySQL timezone definitions - Combine MCPKit's -connect and -connectWithLogin:password:host:port:socket: methods to reduce code duplication and fix argument handling for the latter method
* merged latest SP_REFACTOR changessqlprodev2011-08-021-13/+83
|
* - Fix saving .spf documents without SSH key locations stored, addressing ↵rowanbeentje2011-06-061-1/+2
| | | | exceptions when re-saving old .spf files
* - Ensure blank passwords for MySQL connections are passed in as NULL ↵rowanbeentje2011-05-291-5/+2
| | | | instead of an empty string; the MySQL manual suggests that maybe we should be doing this, and it may address Issue #1065.
* merging SP_REFACTOR branch with trunksqlprodev2011-05-191-16/+24
|
* • added URL scheme command ↵Bibiko2011-05-111-0/+14
| | | | sequelpro://SP_PROCESS_ID@passToDoc/RunQueryInQueryEditor/ which executes a passed SQL query and displays the result if any in the data table of the query editor
* * Fixes most parts of #1006 (Translation of file names)dmoagx2011-05-101-1/+1
| | | | * Update strings files
* Add the ability to double click a tab to duplicate the connection in a new ↵stuconnolly2011-05-091-6/+1
| | | | tab (equivalent to the 'Open Database in New Tab' menu item). Implements issue #1040.
* Minor tidy up.stuconnolly2011-05-081-9/+12
|
* Fixes source text encoding problems accidentally introduced in r3273sqlprodev2011-04-141-2/+2
|
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-2/+23
| | | | 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-15/+200
| | | | UI code from functional code
* - When restoring connections and sessions, correctly clear and restore ↵rowanbeentje2011-04-041-1/+18
| | | | keychain names and accounts. This addresses incorrect password use, fixing Issue #1020
* Fix Issue #1019 (Sidebar width not remembered):rowanbeentje2011-04-011-3/+6
| | | | | | | - This may be due to an Apple bug. I tracked it down to purely SPDatabaseDocument having a reference outlet to the activity scroll view. - Removing the reference worked as a fix; removing all code that used that reference did not. - Renaming the reference, and removing SPTableInfo's use of a reference, appears to act as a workaround. If the reference is not renamed, the bug still mainfests (!!!)
* - Fix .spfs files not being added to the Recent Documents menu, addressing ↵rowanbeentje2011-03-311-3/+1
| | | | Issue #1011
* Fix more compiler warnings, including a few bugsrowanbeentje2011-03-081-37/+41
|
* Fix more compiler warnings.stuconnolly2011-03-041-1/+1
|
* - Fix more compiler warningsrowanbeentje2011-03-041-2/+2
|
* Fix compiler warnings.stuconnolly2011-03-011-2/+6
|
* fixed compiler warningssqlprodev2011-03-011-1/+2
|
* fixed compiler warningssqlprodev2011-03-011-1/+1
|
* - Don't bring the task window to the front before re-adding it to the ↵rowanbeentje2011-02-061-1/+0
| | | | parent window on making that tab foremost, which is unneccessary and can cause switching to the previous Space. This addresses Issue #970.
* • changed the behaviour of ⇧⌘K (Show/Hide Console) slightlyBibiko2011-02-011-16/+17
| | | | - the main purpose of that keyboard short-cut is the SHOW the Console window even if it's visible but hidden under other windows; now ⇧⌘K orders out the Console window if it's invisible or visible but mot the front most window; if it's the front most window ⇧⌘K will hide it
* • fixed updateWindowTitle: threading issueBibiko2011-02-011-1/+1
| | | | | | - if (![NSThread isMainThread]) return [self updateWindowTitle:sender]; will run forever if called not from main thread; instead do: if (![NSThread isMainThread]) return [[self onMainThread] updateWindowTitle:sender];
* - Ensure window title updates occur on the main thread, fixing crashes ↵rowanbeentje2011-01-311-6/+10
| | | | under race conditions
* • show activity pane for running Bundle process automatically if the ↵Bibiko2011-01-201-0/+33
| | | | process runs longer than 1 sec and hide it if no process runs anymore to inform the user better
* • while saving connection/session as spf(s) make "Remember Query Editor ↵Bibiko2011-01-171-2/+6
| | | | | | content" checked as default - issue 900
* • added sequelpro URL scheme commands passToDoc/SetText/<text>, ↵Bibiko2011-01-141-0/+40
| | | | passToDoc/InsertText/<text> and passToDoc/SetSelectedTextRange/<range> which work on the first responder of the called SPDatabaseDocument regardless of the NSApp first responder for long running scripts
* • changed sequelpro URL command SyntaxHighlighting to be connection ↵Bibiko2011-01-101-137/+0
| | | | independent - added example BASH script at http://www.sequelpro.com/docs/URL_scheme_sequelpro://_Usage#Use_Sequel_Pro_to_do_a_syntax_highlighting_of_a_given_SQL_query_HTML_formatted
* Address Issue #857:rowanbeentje2010-12-201-13/+2
| | | | | | | | - Replace master connection and database view split views with full BWSplitViews so controls appear in Interface Builder; use those settings to apply which panes resize, and any max/min constraints - Remove split view delegate code which is no longer necessary after these changes - Fix a bug marking the master database view split view thumb as applying to all DatabaseDocument splits views, fixing cursor issues - Update Connection Controller/BWToolkit split view delegate setup to fix resizing issues
* * Recognize "performance_schema" as system DB (added in 5.5)dmoagx2010-12-181-1/+2
|
* • minor improvements, commenting, cleaning for URL scheme commandsBibiko2010-12-171-1/+16
|
* • improved timing behaviour for a SPDatabaseDocument if it receives a ↵Bibiko2010-12-171-5/+18
| | | | sequence of URL scheme commands
* • allow to some sequelpro URL scheme commands like select a table/db the ↵Bibiko2010-12-171-42/+50
| | | | usage without a specific SP_PROCESS_ID
* • sequelpro URL scheme supportBibiko2010-12-151-5/+281
| | | | | - added command "SyntaxHighlighting/format" which returns the syntax highlighted string due to the format settings (up to now html and htmlcss) - added command "CreateSyntaxForTables/item1/item2/…/{format}" which returns all CREATE SYNTAX statements of the passed items and if passed syntax highlighted due to format (optional)
* • URL scheme commands:Bibiko2010-12-141-3/+35
| | | | - display some error tooltips and improved the cancellation via ⌘. of the sequelpro://SP_PROCESS_ID@passToDoc/ExecuteQuery command
* • HTML output windowBibiko2010-12-131-0/+3
| | | | | - a BASH script called via window.system.run() inherits the current shell vars and the associated SP_PROCESS_ID if set to make it easier to run sequelpro URL scheme commands from JavaScript via BASH - improved error handling
* • made usage of more constants to avoid double-storing stringsBibiko2010-12-121-13/+13
| | | | • fixed JavaScript alert and confirm window in HTML output window
* - Fix an issue where after failing to select a database the database ↵rowanbeentje2010-12-111-2/+6
| | | | dropdown stayed disabled
* • avoided to execute SHOW VARIABLES LIKE 'character_set_database' twice ↵Bibiko2010-12-101-2/+1
| | | | for setting shell variables for Bundle commands
* • Bundle CommandsBibiko2010-12-091-1/+1
| | | | | | - added shell vars SP_CURRENT_EDITED_COLUMN_NAME, SP_CURRENT_EDITED_TABLE for Input Field scoped commands if invoked from a table cell field editor - added shell var SP_TABLE_DATA_SOURCE (content or query) - fixed table row change trigger for custom query tableView
* • Bundle command supportBibiko2010-12-071-0/+22
| | | | | - fixed issue for commands without assigning a key equivalent - output table meta data about type, type grouping, length, auto_inc, PRI key etc. for Data Table scope commands and sequelpro url scheme command ExecuteQuery
* • finished implementation of SPChooseMenuItemDialogBibiko2010-12-061-0/+2
| | | | | • simplified bundle command handling and handling for bundle commands which have the same key equivalent to be able to group similar bundle commands • minor code improvements
* - Add the ability to stop animation of the task indicator, and use it to ↵rowanbeentje2010-12-051-0/+13
| | | | pause the task indicator animation when custom queries are paused and waiting for user interaction after an error
* • Bundle CommandsBibiko2010-12-011-9/+27
| | | | | - make sure that each HTML output window will be released - if a triggered command will outputs its result in an HTML window invoke it only if the HTML output window is already open; this enables the user to "switch on/off" such a trigger
* • Bundle Editor / Bundle commandsBibiko2010-12-011-16/+20
| | | | | | | - enabled trigger support to run a command if db, table, or table row was changed - HTML output window will be ordered out without making it the key window to remain the first responder • SPTableTExtFieldCell - forgotten to remove expansionFrameWithFrame: method
* • progress on trigger support for Bundle commandsBibiko2010-12-011-0/+17
|
1193' href='#n1193'>1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559