comparison m-toolbox/classes/@repogui2/repogui2.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 % REPOGUI2 is a graphical interface for interacting with an LTPDA
2 % repository.
3 %
4 % CALL: repogui2
5 % repogui2(h) % to draw the gui in another figure pointed to by
6 % % handle, h
7 %
8 % M Hewitson 22-09-08
9 %
10 % $Id: repogui2.m,v 1.3 2011/04/08 08:56:36 hewitson Exp $
11 %
12 classdef repogui2 < 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 = repogui2(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
38 % Make the GUI visible.
39 set(mainfig.handle,'Visible','on')
40 end
41 end % End public methods
42
43 methods (Static=true)
44 % General
45 objs = getWorkspaceObjs(varargin);
46
47 % Main figure
48 varargout = cb_mainfigClose(varargin);
49 varargout = cb_tabChanged(varargin);
50
51 % Connect panel
52 varargout = cb_select_repo(varargin);
53 varargout = cb_select_db(varargin);
54 varargout = cb_get_dbs(varargin);
55 varargout = cb_connect(varargin);
56
57 % Submit panel
58 varargout = cb_workspaceObjsList(varargin);
59 varargout = cb_refreshObjsList(varargin);
60 varargout = cb_submit(varargin);
61
62 % Query panel
63 varargout = getFields(varargin);
64 varargout = getTables(varargin);
65 varargout = buildquery(varargin);
66 varargout = sqlResultsGUI(varargin);
67 varargout = cb_fieldSelect(varargin);
68 varargout = cb_tableSelect(varargin);
69 varargout = cb_condPlusBtn(varargin);
70 varargout = cb_condSubtractBtn(varargin);
71 varargout = cb_executeQuery(varargin);
72
73 % Retrieve panel
74 varargout = cb_importBtn(varargin);
75 varargout = cb_saveBtn(varargin);
76
77 end
78
79 methods (Access = private)
80
81 varargout = buildMainfig(varargin);
82 varargout = buildConnectPanel(varargin);
83 varargout = buildSubmitPanel(varargin);
84 varargout = buildQueryPanel(varargin);
85 varargout = buildConditions(varargin);
86 varargout = buildRetrievePanel(varargin);
87
88 end
89
90 methods (Access = public)
91
92 % Callbacks
93
94 % Connect panel
95
96 % Submit panel
97 varargout = setWorkspaceObjsList(varargin);
98 end
99
100 end
101
102 % END