comparison m-toolbox/classes/@repogui/repogui.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % REPOGUI is a graphical interface for interacting with an LTPDA
2 % repository.
3 %
4 % CALL: repogui
5 % repogui(h) % to draw the gui in another figure pointed to by
6 % % handle, h
7 %
8 % M Hewitson 22-09-08
9 %
10 % $Id: repogui.m,v 1.4 2011/04/08 08:56:25 hewitson Exp $
11 %
12 classdef repogui < handle
13
14 properties (SetAccess=private, GetAccess=private)
15 handle = [];
16 panels = [];
17 connection = [];
18 username = '';
19 dbuser = '';
20 dbpass = '';
21 Gproperties = [];
22 Nconditions = 0;
23 tableSelected = 1;
24 end
25
26 methods
27 function mainfig = repogui(varargin)
28
29 % Build the main figure
30 mainfig = buildMainfig(mainfig, varargin{:});
31
32 % Build panels
33 buildConnectPanel(mainfig);
34 buildSubmitPanel(mainfig);
35 buildQueryPanel(mainfig);
36 buildRetrievePanel(mainfig);
37 buildHLQPanel(mainfig);
38
39 % Make the GUI visible.
40 set(mainfig.handle,'Visible','on')
41 end
42 end % End public methods
43
44 methods (Static=true)
45 % General
46 objs = getWorkspaceObjs(varargin);
47
48 % Main figure
49 varargout = cb_mainfigClose(varargin);
50 varargout = cb_tabChanged(varargin);
51
52 % Connect panel
53 varargout = cb_select_repo(varargin);
54 varargout = cb_select_db(varargin);
55 varargout = cb_get_dbs(varargin);
56 varargout = cb_connect(varargin);
57
58 % Submit panel
59 varargout = cb_workspaceObjsList(varargin);
60 varargout = cb_refreshObjsList(varargin);
61 varargout = cb_submit(varargin);
62 varargout = cb_treegui(varargin);
63
64 % Query panel
65 varargout = getFields(varargin);
66 varargout = getTables(varargin);
67 varargout = buildquery(varargin);
68 varargout = sqlResultsGUI(varargin);
69 varargout = cb_fieldSelect(varargin);
70 varargout = cb_tableSelect(varargin);
71 varargout = cb_condPlusBtn(varargin);
72 varargout = cb_condSubtractBtn(varargin);
73 varargout = cb_executeQuery(varargin);
74
75 varargout = createTable(varargin)
76
77 % Retrieve panel
78 varargout = cb_importBtn(varargin);
79 varargout = cb_saveBtn(varargin);
80
81 end
82
83 methods (Access = private)
84
85 varargout = buildMainfig(varargin);
86 varargout = buildConnectPanel(varargin);
87 varargout = buildSubmitPanel(varargin);
88 varargout = buildQueryPanel(varargin);
89 varargout = buildConditions(varargin);
90 varargout = buildRetrievePanel(varargin);
91 varargout = buildHLQPanel(varargin);
92
93 end
94
95 methods (Access = public)
96
97 % Callbacks
98
99 % Connect panel
100
101 % Submit panel
102 varargout = setWorkspaceObjsList(varargin);
103 end
104
105 end
106
107 % END