Mercurial > hg > ltpda
view m-toolbox/classes/@repogui2/repogui2.m @ 34:03d92954b939 database-connection-manager
Improve look of LTPDAPreferences diaolog
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% REPOGUI2 is a graphical interface for interacting with an LTPDA % repository. % % CALL: repogui2 % repogui2(h) % to draw the gui in another figure pointed to by % % handle, h % % M Hewitson 22-09-08 % % $Id: repogui2.m,v 1.3 2011/04/08 08:56:36 hewitson Exp $ % classdef repogui2 < handle properties (SetAccess=private, GetAccess=private) handle = []; panels = []; connection = []; username = ''; dbuser = ''; dbpass = ''; Gproperties = []; Nconditions = 0; tableSelected = 1; end methods function mainfig = repogui2(varargin) % Build the main figure mainfig = buildMainfig(mainfig, varargin{:}); % Build panels buildConnectPanel(mainfig); buildSubmitPanel(mainfig); buildQueryPanel(mainfig); buildRetrievePanel(mainfig); % Make the GUI visible. set(mainfig.handle,'Visible','on') end end % End public methods methods (Static=true) % General objs = getWorkspaceObjs(varargin); % Main figure varargout = cb_mainfigClose(varargin); varargout = cb_tabChanged(varargin); % Connect panel varargout = cb_select_repo(varargin); varargout = cb_select_db(varargin); varargout = cb_get_dbs(varargin); varargout = cb_connect(varargin); % Submit panel varargout = cb_workspaceObjsList(varargin); varargout = cb_refreshObjsList(varargin); varargout = cb_submit(varargin); % Query panel varargout = getFields(varargin); varargout = getTables(varargin); varargout = buildquery(varargin); varargout = sqlResultsGUI(varargin); varargout = cb_fieldSelect(varargin); varargout = cb_tableSelect(varargin); varargout = cb_condPlusBtn(varargin); varargout = cb_condSubtractBtn(varargin); varargout = cb_executeQuery(varargin); % Retrieve panel varargout = cb_importBtn(varargin); varargout = cb_saveBtn(varargin); end methods (Access = private) varargout = buildMainfig(varargin); varargout = buildConnectPanel(varargin); varargout = buildSubmitPanel(varargin); varargout = buildQueryPanel(varargin); varargout = buildConditions(varargin); varargout = buildRetrievePanel(varargin); end methods (Access = public) % Callbacks % Connect panel % Submit panel varargout = setWorkspaceObjsList(varargin); end end % END