Mercurial > hg > octave-nkf
comparison libgui/src/settings-dialog.ui @ 18550:3a509de8e791 gui-release
automatic completion list as user preference (bug #41469)
* file-editor-tab.cc (constructor): remove unnecessary call for completion list;
(show_auto_completion): new slot showing autocompletion list at cursor;
(notice_settings): auto completion properties are set even if automatic
showing of the list is disabled, only treshold is updated
* file-editor-tab.h: new public slot show_completion list
* file-editor.cc (request_completion): new slot for completion-list-action
triggering a signal to the actual editor tab;
(construct): new action in edit menu for showing completion list, the signal
is connected to request_completion;
(add_file_editor_tab): connect signal for showing the completion list to
the new editor tab's slot show_auto_completion;
(set_shortcuts): set shortcut for new action;
(check_actions): disable new action when no tab is present
* file-editor.h: new action, new slot, new signal for tab
* settings-dialog.ui: update the settings dialog accordingly
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 17 Feb 2014 20:42:08 +0100 |
parents | 07f1934dc498 |
children | 6eae8ba32e62 |
comparison
equal
deleted
inserted
replaced
18543:00d684465379 | 18550:3a509de8e791 |
---|---|
30 <width>0</width> | 30 <width>0</width> |
31 <height>0</height> | 31 <height>0</height> |
32 </size> | 32 </size> |
33 </property> | 33 </property> |
34 <property name="currentIndex"> | 34 <property name="currentIndex"> |
35 <number>5</number> | 35 <number>1</number> |
36 </property> | 36 </property> |
37 <widget class="QWidget" name="tab_general"> | 37 <widget class="QWidget" name="tab_general"> |
38 <property name="enabled"> | 38 <property name="enabled"> |
39 <bool>true</bool> | 39 <bool>true</bool> |
40 </property> | 40 </property> |
387 <property name="geometry"> | 387 <property name="geometry"> |
388 <rect> | 388 <rect> |
389 <x>0</x> | 389 <x>0</x> |
390 <y>0</y> | 390 <y>0</y> |
391 <width>662</width> | 391 <width>662</width> |
392 <height>399</height> | 392 <height>419</height> |
393 </rect> | 393 </rect> |
394 </property> | 394 </property> |
395 <layout class="QVBoxLayout" name="verticalLayout_16"> | 395 <layout class="QVBoxLayout" name="verticalLayout_16"> |
396 <item> | 396 <item> |
397 <layout class="QVBoxLayout" name="verticalLayout_9"> | 397 <layout class="QVBoxLayout" name="verticalLayout_9"> |
779 <item> | 779 <item> |
780 <layout class="QGridLayout" name="gridLayout_2"> | 780 <layout class="QGridLayout" name="gridLayout_2"> |
781 <property name="verticalSpacing"> | 781 <property name="verticalSpacing"> |
782 <number>0</number> | 782 <number>0</number> |
783 </property> | 783 </property> |
784 <item row="0" column="0"> | 784 <item row="1" column="1"> |
785 <widget class="QCheckBox" name="editor_codeCompletion"> | |
786 <property name="enabled"> | |
787 <bool>true</bool> | |
788 </property> | |
789 <property name="text"> | |
790 <string>Code completion</string> | |
791 </property> | |
792 <property name="checked"> | |
793 <bool>false</bool> | |
794 </property> | |
795 </widget> | |
796 </item> | |
797 <item row="0" column="2"> | |
798 <layout class="QHBoxLayout" name="horizontalLayout_2"> | 785 <layout class="QHBoxLayout" name="horizontalLayout_2"> |
799 <property name="spacing"> | 786 <property name="spacing"> |
800 <number>6</number> | 787 <number>6</number> |
801 </property> | 788 </property> |
789 <property name="bottomMargin"> | |
790 <number>4</number> | |
791 </property> | |
802 <item> | 792 <item> |
803 <widget class="QLabel" name="editor_label_ac_threshold"> | 793 <widget class="QLabel" name="label_16"> |
794 <property name="text"> | |
795 <string>Auto completion</string> | |
796 </property> | |
797 </widget> | |
798 </item> | |
799 </layout> | |
800 </item> | |
801 <item row="2" column="1"> | |
802 <layout class="QGridLayout" name="gridLayout_3"> | |
803 <property name="verticalSpacing"> | |
804 <number>0</number> | |
805 </property> | |
806 <item row="0" column="1"> | |
807 <spacer name="horizontalSpacer_15"> | |
808 <property name="orientation"> | |
809 <enum>Qt::Horizontal</enum> | |
810 </property> | |
811 <property name="sizeType"> | |
812 <enum>QSizePolicy::Fixed</enum> | |
813 </property> | |
814 <property name="sizeHint" stdset="0"> | |
815 <size> | |
816 <width>10</width> | |
817 <height>0</height> | |
818 </size> | |
819 </property> | |
820 </spacer> | |
821 </item> | |
822 <item row="0" column="0"> | |
823 <widget class="QCheckBox" name="editor_checkbox_ac_keywords"> | |
804 <property name="enabled"> | 824 <property name="enabled"> |
805 <bool>false</bool> | 825 <bool>true</bool> |
806 </property> | 826 </property> |
807 <property name="text"> | 827 <property name="text"> |
808 <string># of characters typed before completion list displayed</string> | 828 <string>Match keywords</string> |
829 </property> | |
830 <property name="checked"> | |
831 <bool>true</bool> | |
809 </property> | 832 </property> |
810 </widget> | 833 </widget> |
811 </item> | 834 </item> |
812 <item> | 835 <item row="1" column="0"> |
813 <widget class="QSpinBox" name="editor_spinbox_ac_threshold"> | 836 <widget class="QCheckBox" name="editor_checkbox_ac_case"> |
814 <property name="enabled"> | 837 <property name="enabled"> |
815 <bool>false</bool> | 838 <bool>true</bool> |
816 </property> | 839 </property> |
817 <property name="toolTip"> | 840 <property name="text"> |
818 <string/> | 841 <string>Case sensitive</string> |
819 </property> | 842 </property> |
820 <property name="whatsThis"> | 843 <property name="checked"> |
821 <string/> | 844 <bool>true</bool> |
822 </property> | |
823 <property name="suffix"> | |
824 <string/> | |
825 </property> | |
826 <property name="minimum"> | |
827 <number>1</number> | |
828 </property> | |
829 <property name="maximum"> | |
830 <number>6</number> | |
831 </property> | |
832 <property name="value"> | |
833 <number>2</number> | |
834 </property> | 845 </property> |
835 </widget> | 846 </widget> |
836 </item> | 847 </item> |
837 <item> | 848 <item row="1" column="2"> |
838 <spacer name="horizontalSpacer_2"> | 849 <widget class="QCheckBox" name="editor_checkbox_ac_replace"> |
850 <property name="enabled"> | |
851 <bool>true</bool> | |
852 </property> | |
853 <property name="text"> | |
854 <string>Replace word by suggested one</string> | |
855 </property> | |
856 </widget> | |
857 </item> | |
858 <item row="0" column="3"> | |
859 <spacer name="horizontalSpacer_8"> | |
839 <property name="orientation"> | 860 <property name="orientation"> |
840 <enum>Qt::Horizontal</enum> | 861 <enum>Qt::Horizontal</enum> |
841 </property> | 862 </property> |
842 <property name="sizeHint" stdset="0"> | 863 <property name="sizeHint" stdset="0"> |
843 <size> | 864 <size> |
845 <height>20</height> | 866 <height>20</height> |
846 </size> | 867 </size> |
847 </property> | 868 </property> |
848 </spacer> | 869 </spacer> |
849 </item> | 870 </item> |
850 </layout> | 871 <item row="0" column="2"> |
851 </item> | 872 <widget class="QCheckBox" name="editor_checkbox_ac_document"> |
852 <item row="1" column="2"> | |
853 <layout class="QGridLayout" name="gridLayout_3"> | |
854 <property name="verticalSpacing"> | |
855 <number>0</number> | |
856 </property> | |
857 <item row="0" column="1"> | |
858 <spacer name="horizontalSpacer_15"> | |
859 <property name="orientation"> | |
860 <enum>Qt::Horizontal</enum> | |
861 </property> | |
862 <property name="sizeType"> | |
863 <enum>QSizePolicy::Fixed</enum> | |
864 </property> | |
865 <property name="sizeHint" stdset="0"> | |
866 <size> | |
867 <width>10</width> | |
868 <height>0</height> | |
869 </size> | |
870 </property> | |
871 </spacer> | |
872 </item> | |
873 <item row="0" column="0"> | |
874 <widget class="QCheckBox" name="editor_checkbox_ac_keywords"> | |
875 <property name="enabled"> | 873 <property name="enabled"> |
876 <bool>false</bool> | 874 <bool>true</bool> |
877 </property> | 875 </property> |
878 <property name="text"> | 876 <property name="text"> |
879 <string>Match keywords</string> | 877 <string>Match words in document</string> |
880 </property> | |
881 <property name="checked"> | |
882 <bool>true</bool> | |
883 </property> | 878 </property> |
884 </widget> | 879 </widget> |
885 </item> | 880 </item> |
886 <item row="1" column="0"> | 881 <item row="1" column="3"> |
887 <widget class="QCheckBox" name="editor_checkbox_ac_case"> | 882 <spacer name="horizontalSpacer_19"> |
888 <property name="enabled"> | |
889 <bool>false</bool> | |
890 </property> | |
891 <property name="text"> | |
892 <string>Case sensitive</string> | |
893 </property> | |
894 <property name="checked"> | |
895 <bool>true</bool> | |
896 </property> | |
897 </widget> | |
898 </item> | |
899 <item row="1" column="2"> | |
900 <widget class="QCheckBox" name="editor_checkbox_ac_replace"> | |
901 <property name="enabled"> | |
902 <bool>false</bool> | |
903 </property> | |
904 <property name="text"> | |
905 <string>Replace word by suggested one</string> | |
906 </property> | |
907 </widget> | |
908 </item> | |
909 <item row="0" column="3"> | |
910 <spacer name="horizontalSpacer_8"> | |
911 <property name="orientation"> | 883 <property name="orientation"> |
912 <enum>Qt::Horizontal</enum> | 884 <enum>Qt::Horizontal</enum> |
913 </property> | 885 </property> |
914 <property name="sizeHint" stdset="0"> | 886 <property name="sizeHint" stdset="0"> |
915 <size> | 887 <size> |
917 <height>20</height> | 889 <height>20</height> |
918 </size> | 890 </size> |
919 </property> | 891 </property> |
920 </spacer> | 892 </spacer> |
921 </item> | 893 </item> |
922 <item row="0" column="2"> | 894 </layout> |
923 <widget class="QCheckBox" name="editor_checkbox_ac_document"> | 895 </item> |
896 <item row="3" column="1"> | |
897 <layout class="QGridLayout" name="gridLayout_10"> | |
898 <item row="0" column="1"> | |
899 <widget class="QLabel" name="editor_label_ac_threshold"> | |
924 <property name="enabled"> | 900 <property name="enabled"> |
925 <bool>false</bool> | 901 <bool>false</bool> |
926 </property> | 902 </property> |
927 <property name="text"> | 903 <property name="text"> |
928 <string>Match words in document</string> | 904 <string>after number of characters typed: </string> |
929 </property> | 905 </property> |
930 </widget> | 906 </widget> |
931 </item> | 907 </item> |
932 <item row="1" column="3"> | 908 <item row="0" column="2"> |
933 <spacer name="horizontalSpacer_19"> | 909 <widget class="QSpinBox" name="editor_spinbox_ac_threshold"> |
910 <property name="enabled"> | |
911 <bool>false</bool> | |
912 </property> | |
913 <property name="toolTip"> | |
914 <string/> | |
915 </property> | |
916 <property name="whatsThis"> | |
917 <string/> | |
918 </property> | |
919 <property name="suffix"> | |
920 <string/> | |
921 </property> | |
922 <property name="minimum"> | |
923 <number>1</number> | |
924 </property> | |
925 <property name="maximum"> | |
926 <number>6</number> | |
927 </property> | |
928 <property name="value"> | |
929 <number>2</number> | |
930 </property> | |
931 </widget> | |
932 </item> | |
933 <item row="0" column="0"> | |
934 <widget class="QCheckBox" name="editor_codeCompletion"> | |
935 <property name="enabled"> | |
936 <bool>true</bool> | |
937 </property> | |
938 <property name="text"> | |
939 <string>Show completion list automatically ...</string> | |
940 </property> | |
941 <property name="checked"> | |
942 <bool>false</bool> | |
943 </property> | |
944 </widget> | |
945 </item> | |
946 <item row="0" column="3"> | |
947 <spacer name="horizontalSpacer_2"> | |
934 <property name="orientation"> | 948 <property name="orientation"> |
935 <enum>Qt::Horizontal</enum> | 949 <enum>Qt::Horizontal</enum> |
936 </property> | 950 </property> |
937 <property name="sizeHint" stdset="0"> | 951 <property name="sizeHint" stdset="0"> |
938 <size> | 952 <size> |
941 </size> | 955 </size> |
942 </property> | 956 </property> |
943 </spacer> | 957 </spacer> |
944 </item> | 958 </item> |
945 </layout> | 959 </layout> |
946 </item> | |
947 <item row="0" column="1"> | |
948 <spacer name="horizontalSpacer_7"> | |
949 <property name="orientation"> | |
950 <enum>Qt::Horizontal</enum> | |
951 </property> | |
952 <property name="sizeType"> | |
953 <enum>QSizePolicy::Fixed</enum> | |
954 </property> | |
955 <property name="sizeHint" stdset="0"> | |
956 <size> | |
957 <width>10</width> | |
958 <height>0</height> | |
959 </size> | |
960 </property> | |
961 </spacer> | |
962 </item> | 960 </item> |
963 </layout> | 961 </layout> |
964 </item> | 962 </item> |
965 <item> | 963 <item> |
966 <widget class="Line" name="line_3"> | 964 <widget class="Line" name="line_3"> |
2004 <y>223</y> | 2002 <y>223</y> |
2005 </hint> | 2003 </hint> |
2006 </hints> | 2004 </hints> |
2007 </connection> | 2005 </connection> |
2008 <connection> | 2006 <connection> |
2009 <sender>editor_codeCompletion</sender> | |
2010 <signal>toggled(bool)</signal> | |
2011 <receiver>editor_checkbox_ac_keywords</receiver> | |
2012 <slot>setEnabled(bool)</slot> | |
2013 <hints> | |
2014 <hint type="sourcelabel"> | |
2015 <x>83</x> | |
2016 <y>170</y> | |
2017 </hint> | |
2018 <hint type="destinationlabel"> | |
2019 <x>238</x> | |
2020 <y>201</y> | |
2021 </hint> | |
2022 </hints> | |
2023 </connection> | |
2024 <connection> | |
2025 <sender>editor_codeCompletion</sender> | |
2026 <signal>toggled(bool)</signal> | |
2027 <receiver>editor_checkbox_ac_document</receiver> | |
2028 <slot>setEnabled(bool)</slot> | |
2029 <hints> | |
2030 <hint type="sourcelabel"> | |
2031 <x>83</x> | |
2032 <y>170</y> | |
2033 </hint> | |
2034 <hint type="destinationlabel"> | |
2035 <x>390</x> | |
2036 <y>201</y> | |
2037 </hint> | |
2038 </hints> | |
2039 </connection> | |
2040 <connection> | |
2041 <sender>editor_codeCompletion</sender> | |
2042 <signal>toggled(bool)</signal> | |
2043 <receiver>editor_checkbox_ac_replace</receiver> | |
2044 <slot>setEnabled(bool)</slot> | |
2045 <hints> | |
2046 <hint type="sourcelabel"> | |
2047 <x>83</x> | |
2048 <y>170</y> | |
2049 </hint> | |
2050 <hint type="destinationlabel"> | |
2051 <x>427</x> | |
2052 <y>229</y> | |
2053 </hint> | |
2054 </hints> | |
2055 </connection> | |
2056 <connection> | |
2057 <sender>editor_highlightCurrentLine</sender> | 2007 <sender>editor_highlightCurrentLine</sender> |
2058 <signal>toggled(bool)</signal> | 2008 <signal>toggled(bool)</signal> |
2059 <receiver>editor_label_cl_color</receiver> | 2009 <receiver>editor_label_cl_color</receiver> |
2060 <slot>setEnabled(bool)</slot> | 2010 <slot>setEnabled(bool)</slot> |
2061 <hints> | 2011 <hints> |
2068 <y>86</y> | 2018 <y>86</y> |
2069 </hint> | 2019 </hint> |
2070 </hints> | 2020 </hints> |
2071 </connection> | 2021 </connection> |
2072 <connection> | 2022 <connection> |
2073 <sender>editor_codeCompletion</sender> | |
2074 <signal>toggled(bool)</signal> | |
2075 <receiver>editor_checkbox_ac_case</receiver> | |
2076 <slot>setEnabled(bool)</slot> | |
2077 <hints> | |
2078 <hint type="sourcelabel"> | |
2079 <x>83</x> | |
2080 <y>172</y> | |
2081 </hint> | |
2082 <hint type="destinationlabel"> | |
2083 <x>525</x> | |
2084 <y>203</y> | |
2085 </hint> | |
2086 </hints> | |
2087 </connection> | |
2088 <connection> | |
2089 <sender>editor_ws_checkbox</sender> | 2023 <sender>editor_ws_checkbox</sender> |
2090 <signal>toggled(bool)</signal> | 2024 <signal>toggled(bool)</signal> |
2091 <receiver>editor_ws_indent_checkbox</receiver> | 2025 <receiver>editor_ws_indent_checkbox</receiver> |
2092 <slot>setEnabled(bool)</slot> | 2026 <slot>setEnabled(bool)</slot> |
2093 <hints> | 2027 <hints> |