From e0b78dfa72f5c24ba7e592d4b381fd97bfb2d407 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 11 Aug 2009 14:53:13 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20SPTooltip=20class=20-=20initial=20s?= =?UTF-8?q?etup=20-=20display=20a=20text=20or=20HTML=20tooltip=20for=20gen?= =?UTF-8?q?eral=20messages=20under=20the=20caret=20position=20or=20located?= =?UTF-8?q?=20somewhere=20via=20initializing=20=E2=80=A2=20fixed=20naming?= =?UTF-8?q?=20issue=20in=20SPNarrowDownCompletion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPNarrowDownCompletion.h | 2 +- Source/SPTooltip.h | 37 ++++++++++++++++++++++++++++++++++++ Source/SPTooltip.m | 34 +++++++++++++++++++++++++++++++++ sequel-pro.xcodeproj/project.pbxproj | 6 ++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 Source/SPTooltip.h create mode 100644 Source/SPTooltip.m diff --git a/Source/SPNarrowDownCompletion.h b/Source/SPNarrowDownCompletion.h index 6a2d4d1b..35ef7f1f 100644 --- a/Source/SPNarrowDownCompletion.h +++ b/Source/SPNarrowDownCompletion.h @@ -1,7 +1,7 @@ // // $Id: SPNarrowDownCompletion.h 744 2009-05-22 20:00:00Z bibiko $ // -// SPGrowlController.h +// SPNarrowDownCompletion.h // sequel-pro // // Created by Hans-J. Bibiko on May 14, 2009. diff --git a/Source/SPTooltip.h b/Source/SPTooltip.h new file mode 100644 index 00000000..f24e52c8 --- /dev/null +++ b/Source/SPTooltip.h @@ -0,0 +1,37 @@ +// +// $Id$ +// +// SPTooltip.h +// sequel-pro +// +// Created by Hans-J. Bibiko on August 11, 2009. +// +// This class is based on TextMate's TMDHTMLTip implementation +// (Dialog plugin) written by Ciarán Walsh and Allan Odgaard. +// see license: http://svn.textmate.org/trunk/LICENSE +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at + +#import +#import + + +@interface SPTooltip : NSWindow { + +} + +@end diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m new file mode 100644 index 00000000..c0cfd10f --- /dev/null +++ b/Source/SPTooltip.m @@ -0,0 +1,34 @@ +// +// $Id$ +// +// SPTooltip.m +// sequel-pro +// +// Created by Hans-J. Bibiko on August 11, 2009. +// +// This class is based on TextMate's TMDHTMLTip implementation +// (Dialog plugin) written by Ciarán Walsh and Allan Odgaard. +// see license: http://svn.textmate.org/trunk/LICENSE +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at + +#import "SPTooltip.h" + + +@implementation SPTooltip + +@end diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index a69ea68c..aa5d4aa0 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -215,6 +215,7 @@ BC688D811012462600D35128 /* borderlessbackground.png in Resources */ = {isa = PBXBuildFile; fileRef = BC688D801012462600D35128 /* borderlessbackground.png */; }; BC8C8532100E0A8000D7A129 /* SPTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC8C8531100E0A8000D7A129 /* SPTableView.m */; }; BC9F0881100FCF2C00A80D32 /* SPFieldEditorController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC9F0880100FCF2C00A80D32 /* SPFieldEditorController.m */; }; + BCA6271C1031B9D40047E5D5 /* SPTooltip.m in Sources */ = {isa = PBXBuildFile; fileRef = BCA6271B1031B9D40047E5D5 /* SPTooltip.m */; }; BCA6F631100FA7D700E80253 /* FieldEditorSheet.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCA6F62F100FA7D700E80253 /* FieldEditorSheet.xib */; }; BCD0AD490FBBFC340066EA5C /* SPSQLTokenizer.l in Sources */ = {isa = PBXBuildFile; fileRef = BCD0AD480FBBFC340066EA5C /* SPSQLTokenizer.l */; }; /* End PBXBuildFile section */ @@ -578,6 +579,8 @@ BC8C8531100E0A8000D7A129 /* SPTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTableView.m; sourceTree = ""; }; BC9F087F100FCF2C00A80D32 /* SPFieldEditorController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPFieldEditorController.h; sourceTree = ""; }; BC9F0880100FCF2C00A80D32 /* SPFieldEditorController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPFieldEditorController.m; sourceTree = ""; }; + BCA6271A1031B9D40047E5D5 /* SPTooltip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPTooltip.h; sourceTree = ""; }; + BCA6271B1031B9D40047E5D5 /* SPTooltip.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTooltip.m; sourceTree = ""; }; BCA6F630100FA7D700E80253 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/FieldEditorSheet.xib; sourceTree = ""; }; BCD0AD480FBBFC340066EA5C /* SPSQLTokenizer.l */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.lex; path = SPSQLTokenizer.l; sourceTree = ""; }; BCD0AD4A0FBBFC480066EA5C /* SPSQLTokenizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPSQLTokenizer.h; sourceTree = ""; }; @@ -919,6 +922,8 @@ 17E6415F0EF01F15001BC333 /* SPTableInfo.m */, 17E641600EF01F15001BC333 /* TablesList.h */, 17E641610EF01F15001BC333 /* TablesList.m */, + BCA6271A1031B9D40047E5D5 /* SPTooltip.h */, + BCA6271B1031B9D40047E5D5 /* SPTooltip.m */, ); name = Model; sourceTree = ""; @@ -1593,6 +1598,7 @@ BC05F1C5101241DF008A97F8 /* AMIndeterminateProgressIndicatorCell.m in Sources */, 584192A1101E57BB0089807F /* NSMutableArray-MultipleSort.m in Sources */, 589235321020C1230011DE00 /* SPHistoryController.m in Sources */, + BCA6271C1031B9D40047E5D5 /* SPTooltip.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; -- cgit v1.2.3