Git commit 01fac0f535aa09765648a3f588f29e46247df049 by Thomas Friedrichsmeier. Committed on 31/12/2015 at 21:21. Pushed by tfry into branch 'master'.
Provide standard file extension filters for import plugins M +1 -0 ChangeLog M +1 -1 doc/rkwardplugins/index.docbook M +1 -1 rkward/plugins/00saveload/import/import_csv.xml M +1 -1 rkward/plugins/00saveload/import/import_spss.xml M +1 -1 rkward/plugins/00saveload/import/import_stata.xml M +1 -1 rkward/plugins/import_export.pluginmap http://commits.kde.org/rkward/01fac0f535aa09765648a3f588f29e46247df049 diff --git a/ChangeLog b/ChangeLog index 6306235..11930a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +- File selectors in "Import XYZ" plugins now filter for standard file extensions, by default - Show a warning screen when invoking plugins from the command line (or from clicking an rkward://-link in an external application) --- Version 0.6.4 - Dec-20-2015 diff --git a/doc/rkwardplugins/index.docbook b/doc/rkwardplugins/index.docbook index d3cbe7b..cbeed97 100644 --- a/doc/rkwardplugins/index.docbook +++ b/doc/rkwardplugins/index.docbook @@ -3279,7 +3279,7 @@ Child-elements: </varlistentry> <varlistentry> <term><parameter>filter</parameter></term> - <listitem><para>File type filter, ⪚ ("*.txt *.csv" for .txt and .csv files. Try not to induce limits unless absolutely needed, though) (optional, defaults to "", &ie; all files)</para></listitem> + <listitem><para>File type filter, ⪚ ("*.txt *.csv" for .txt and .csv files). A separate entry for "All files" is added, automatically (optional, defaults to "", &ie; All files)</para></listitem> </varlistentry> <varlistentry> <term><parameter>required</parameter></term> diff --git a/rkward/plugins/00saveload/import/import_csv.xml b/rkward/plugins/00saveload/import/import_csv.xml index 51f67f1..3658355 100644 --- a/rkward/plugins/00saveload/import/import_csv.xml +++ b/rkward/plugins/00saveload/import/import_csv.xml @@ -97,7 +97,7 @@ <dialog label="Import Text / CSV data" > <tabbook> <tab id="tab_general" label="General" > - <browser id="file" type="file" label="File name"/> + <browser id="file" type="file" label="File name" filter="*.csv *.tsv *.txt"/> <dropdown id="quick" label="Data format" > <option value="csv" label="Comma separated values (CSV)" checked="true" /> <option value="csv2" label="Semicolon separated values, comma as decimal separator (CSV2)" /> diff --git a/rkward/plugins/00saveload/import/import_spss.xml b/rkward/plugins/00saveload/import/import_spss.xml index b725582..70a2298 100644 --- a/rkward/plugins/00saveload/import/import_spss.xml +++ b/rkward/plugins/00saveload/import/import_spss.xml @@ -19,7 +19,7 @@ <dialog label="Import SPSS file"> <tabbook> <tab id="tab_general" label="General"> - <browser type="file" id="file" label="File name" /> + <browser type="file" id="file" label="File name" filter="*.sav *.por"/> <stretch/> <row> <saveobject id="saveto" initial="my.spss.data" label="Object to save to"/> diff --git a/rkward/plugins/00saveload/import/import_stata.xml b/rkward/plugins/00saveload/import/import_stata.xml index c0c05a0..a273823 100644 --- a/rkward/plugins/00saveload/import/import_stata.xml +++ b/rkward/plugins/00saveload/import/import_stata.xml @@ -13,7 +13,7 @@ <dialog label="Import STATA file"> <tabbook> <tab id="tab_general" label="General"> - <browser type="file" allow_urls="true" id="file" label="File name" /> + <browser type="file" allow_urls="true" id="file" label="File name" filter="*.dta" /> <stretch/> <row> <saveobject id="saveto" initial="my.stata.data" label="Object to save to"/> diff --git a/rkward/plugins/import_export.pluginmap b/rkward/plugins/import_export.pluginmap index 5747af5..4e81e60 100644 --- a/rkward/plugins/import_export.pluginmap +++ b/rkward/plugins/import_export.pluginmap @@ -30,7 +30,7 @@ <attribute id="format" value="*.sav *.por" label="SPSS data files"/> </component> <component type="standard" id="import_csv" file="import/import_csv.xml" label="Import Text / CSV data"> - <attribute id="format" value="*.txt *.csv" label="Text / Comma Separated Values"/> + <attribute id="format" value="*.txt *.csv *.tsv" label="Text / Comma Separated Values"/> </component> <component type="standard" id="import_stata" file="import/import_stata.xml" label="Import Stata"> <attribute id="format" value="*.dta" label="Stata data files"/> _______________________________________________ kde-doc-english mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-doc-english
