gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

Determine available functions based on dtype of selected columns #213

Closed gkunter closed 7 years ago

gkunter commented 7 years ago

Currently, the 'Add function' dialog determines the set of available functions based on the dtypes of the columns that were selected when the dialog was opened. However, if the column selection changes in the dialog, the function set may not be appropriate anymore.

Instead, the column selector should emit a signal whenever the selection changes. When receiving this signal, the dialog should create a set containing the dtypes of the new column selection. This set is then matched against a set of valid dtypes that is stored in each function class. Only those function classes will be shown in which the current dtype set is a subset of the set of valid dtypes.

gkunter commented 7 years ago

This feature was implemented together with the new function dialog.