UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqldb_dialogs.hpp
1 /* zqldb_dialogs.hpp */
2 /* $Id: zqldb_dialogs.hpp,v 1.10 2008/12/10 11:07:16 hasher Exp $ */
3 #ifndef __zqldb_dialogs_hpp
4 #define __zqldb_dialogs_hpp
5 
6 #include <vector>
7 #include <string>
8 #include <qwidget.h>
9 #include <mix/misc.h>
10 #include <ldb/dbnamedefs.h>
11 
12 
13 /*
14  * Basic tools
15  */
16 
18 int
19 ZqListSelectionBox (QWidget *qParent,
20  const char* name,
21  const char* title,
22  const char* lhead,
23  char** sset,
24  int sset_n);
28 int
29 ZqListSelectionBox (QWidget *qParent,
30  const char* name,
31  const char* title,
32  const char* lhead,
33  char** sset,
34  int sset_n,
35  const char* pres1);
38 std::vector<int>
39 ZqListMultiSelectionBox (QWidget *parent, /* parent widget */
40  const char* name, /* dialog name */
41  const char* title, /* dialog WM title */
42  const char* lhead, /* title of list */
43  char** sset, /* selectable set */
44  int sset_n); /* number of items in sset */
45 
46 
47 /*
48  * LDB orientent tools
49  */
50 
57 char*
58 ZqLdbSelectProject (QWidget* qParent,
60  const char* szPreselProject = NULL);
61 
63 char*
64 ZqLdbSelectSeismic (QWidget *qParent,
65  const char* szProject,
67  const char* szPreselSeismic = NULL);
68 
71 int
72 ZqLdbMultiSelectSeismic (QWidget *qParent,
73  const char* project,
74  STRLIST* selDataList);
82 ZqLdbListSelectionBox (QWidget* qparent,
83  const char* szProject,
84  const char* szDbList,
85  dbNameStruct* dbname);
88 /*************************************************************
89  Data base table selection dialog form db list table. Any
90  data base list can be used. It must have "DTBSPTR" domain
91  to store db pointer. If this domain is not found, NULL will
92  be returned. dbname must be not null pointer at storage for
93  result db name.
94  */
95 
97 ZqLdbListSelectionBox (QWidget* qparent, /* parent widget */
98  const char* project, /* project to select from */
99  const char* dblist, /* db list to select from */
100  dbNameStruct* dbname); /* place for selected dbtable */
101 
102 
103 
104 /***********************************************************************
105  * Data base line selection from dbfrom table. Selected line
106  * passed as dbwhere dbItem (dbfrom table and index of line in
107  * it). dbfrom table can be of any type. Selected item is
108  * returned by function or NULL if some errors took place.
109  * NULL will be returned if cancel was pressed. If flag
110  * is equal to NEW_DB_ITEM, user can select one additional line
111  * that is new item. Such selection is represented by number
112  * of line = -1.
113  */
114 #define ZQ_NEW_DB_ITEM 1
115 dbItem*
116 ZqLdbItemSelectionBox (QWidget* qparent, /* parent widget */
117  const char* project, /* project to select from */
118  dbNameStruct* dbfrom, /* db table to select from */
119  dbItem* dbwhere, /* place for selected line */
120  int flag); /* NEW_DB_ITEM or 0 */
121 
122 
123 /*************************************************************
124  Data base table selection dialog from project DATA directory.
125  If dbmask contains right dbt name it is used as filter for
126  directory entries. For example if dbmask.mask=DB_TABLE and
127  dbmask.table="FBINFO", all files VSP.*.*.FBINFO.* will be
128  placed in selection list.
129  To select all data tables: dbmask.mask=0.
130  To select only db lists: dbmask.mask=DB_LIST.
131  Selected table will be placed in dbmask
132  If project is NULL current one will be used.
133  */
135 ZqLdbFileSelectionBox (QWidget * qparent, /* parent widget */
136  const char* project, /* project to select from */
137  dbNameStruct* dbmask); /* mask to filter result */
138 
139 
140 #endif /* zqldb_dialogs.hpp */
Definition: dbnamedefs.h:67
Definition: dbnamedefs.h:85