aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-02-23 01:21:43 +0000
committerrowanbeentje <rowan@beent.je>2009-02-23 01:21:43 +0000
commit40e5f768c40608f6d661d32e6dec9fefe64608e2 (patch)
treec95301a9b724d38f83bd4f34a8c0df7edf7a4a5d /Source/TablesList.h
parentbb8dfb0ad769b551ad2fd6944315c5292246ad7e (diff)
downloadsequelpro-40e5f768c40608f6d661d32e6dec9fefe64608e2.tar.gz
sequelpro-40e5f768c40608f6d661d32e6dec9fefe64608e2.tar.bz2
sequelpro-40e5f768c40608f6d661d32e6dec9fefe64608e2.zip
A patch to improve View support, addressing Issue #130. This patch undoes the damage caused by r333, making views viewable again, and extends support by preventing errors in the info pane, by drawing views with a different icon to easily differentiate them, by making all source/index information non-editable to match GUI to behaviour, and to tweak the interface slightly to match.
Diffstat (limited to 'Source/TablesList.h')
-rw-r--r--Source/TablesList.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/TablesList.h b/Source/TablesList.h
index d2cb20da..b4875dd9 100644
--- a/Source/TablesList.h
+++ b/Source/TablesList.h
@@ -25,6 +25,12 @@
#import <Cocoa/Cocoa.h>
#import <MCPKit_bundled/MCPKit_bundled.h>
+enum sp_table_types
+{
+ SP_TABLETYPE_TABLE = 0,
+ SP_TABLETYPE_VIEW = 1
+};
+
@class CMMCResult;
@class CMMCPConnection;
@@ -47,6 +53,7 @@
CMMCPConnection *mySQLConnection;
NSMutableArray *tables;
+ NSMutableArray *tableTypes;
// NSUserDefaults *prefs;
BOOL structureLoaded, contentLoaded, statusLoaded, alertSheetOpened;
}
@@ -70,7 +77,9 @@
//getter methods
- (NSString *)tableName;
+- (int)tableType;
- (NSArray *)tables;
+- (NSArray *)tableTypes;
- (BOOL)structureLoaded;
- (BOOL)contentLoaded;
- (BOOL)statusLoaded;