From 4cb9f0b6ab99875d487ae9c2c438595978222a3e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 27 May 2009 13:30:34 +0000 Subject: Redesigned table information pane. --- Source/SPExtendedTableInfo.h | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Source/SPExtendedTableInfo.h (limited to 'Source/SPExtendedTableInfo.h') diff --git a/Source/SPExtendedTableInfo.h b/Source/SPExtendedTableInfo.h new file mode 100644 index 00000000..8cdea5e4 --- /dev/null +++ b/Source/SPExtendedTableInfo.h @@ -0,0 +1,69 @@ +// +// $Id$ +// +// SPExtendedTableInfo.h +// sequel-pro +// +// Created by Jason Hallford (jason.hallford@byu.edu) on Th July 08 2004. +// sequel-pro Copyright (c) 2002-2003 Lorenz Textor. All rights reserved. +// +// 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 + +@class SPTableData, SPDatabaseData, CMMCPConnection; + +@interface SPExtendedTableInfo : NSObject +{ + IBOutlet SPTableData *tableDataInstance; + IBOutlet SPDatabaseData *databaseDataInstance; + + IBOutlet NSTextField *tableRowNumber; + IBOutlet NSTextField *tableRowFormat; + IBOutlet NSTextField *tableRowAvgLength; + IBOutlet NSTextField *tableRowAutoIncrement; + IBOutlet NSTextField *tableDataSize; + IBOutlet NSTextField *tableSizeFree; + IBOutlet NSTextField *tableIndexSize; + IBOutlet NSTextField *tableMaxDataSize; + IBOutlet NSTextField *tableCreatedAt; + IBOutlet NSTextField *tableUpdatedAt; + + IBOutlet NSTextView *tableCommentsTextView; + IBOutlet NSTextView *tableCreateSyntaxTextView; + + IBOutlet NSPopUpButton *tableTypePopUpButton; + IBOutlet NSPopUpButton *tableEncodingPopUpButton; + IBOutlet NSPopUpButton *tableCollationPopUpButton; + + NSString *selectedTable; + + CMMCPConnection *connection; +} + +@property (readwrite, assign) CMMCPConnection *connection; + +// IBAction methods +- (IBAction)reloadTable:(id)sender; +- (IBAction)updateTableType:(id)sender; +- (IBAction)updateTableEncoding:(id)sender; +- (IBAction)updateTableCollation:(id)sender; + +// Others +- (void)loadTable:(NSString *)table; + +@end -- cgit v1.2.3