5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.CodeStyleCheckerDialog</h1> |
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.CodeStyleCheckerDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to show the results of the code style check. |
11 Module implementing a dialog to show the results of the code style check. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#CodeStyleCheckerDialog">CodeStyleCheckerDialog</a></td> |
22 <td><a href="#CodeStyleCheckerDialog">CodeStyleCheckerDialog</a></td> |
25 <td>Class implementing a dialog to show the results of the code style check.</td> |
23 <td>Class implementing a dialog to show the results of the code style check.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="CodeStyleCheckerDialog" ID="CodeStyleCheckerDialog"></a> |
34 <a NAME="CodeStyleCheckerDialog" ID="CodeStyleCheckerDialog"></a> |
36 <h2>CodeStyleCheckerDialog</h2> |
35 <h2>CodeStyleCheckerDialog</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing a dialog to show the results of the code style check. |
37 Class implementing a dialog to show the results of the code style check. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 QDialog, Ui_CodeStyleCheckerDialog |
41 QDialog, Ui_CodeStyleCheckerDialog |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
|
45 <table> |
43 <table> |
46 <tr><td>argsRole</td></tr><tr><td>availableFutures</td></tr><tr><td>checkCategories</td></tr><tr><td>codeRole</td></tr><tr><td>cryptoBitSelectionsDsaRsa</td></tr><tr><td>cryptoBitSelectionsEc</td></tr><tr><td>filenameRole</td></tr><tr><td>fixableRole</td></tr><tr><td>hasResults</td></tr><tr><td>ignoredRole</td></tr><tr><td>lineRole</td></tr><tr><td>messageRole</td></tr><tr><td>noFiles</td></tr><tr><td>noResults</td></tr><tr><td>positionRole</td></tr> |
44 <tr><td>argsRole</td></tr> |
|
45 <tr><td>availableFutures</td></tr> |
|
46 <tr><td>checkCategories</td></tr> |
|
47 <tr><td>codeRole</td></tr> |
|
48 <tr><td>cryptoBitSelectionsDsaRsa</td></tr> |
|
49 <tr><td>cryptoBitSelectionsEc</td></tr> |
|
50 <tr><td>filenameRole</td></tr> |
|
51 <tr><td>fixableRole</td></tr> |
|
52 <tr><td>hasResults</td></tr> |
|
53 <tr><td>ignoredRole</td></tr> |
|
54 <tr><td>lineRole</td></tr> |
|
55 <tr><td>messageRole</td></tr> |
|
56 <tr><td>noFiles</td></tr> |
|
57 <tr><td>noResults</td></tr> |
|
58 <tr><td>positionRole</td></tr> |
47 </table> |
59 </table> |
|
60 |
48 <h3>Class Methods</h3> |
61 <h3>Class Methods</h3> |
49 |
|
50 <table> |
62 <table> |
51 <tr><td>None</td></tr> |
63 <tr><td>None</td></tr> |
52 </table> |
64 </table> |
|
65 |
53 <h3>Methods</h3> |
66 <h3>Methods</h3> |
54 |
|
55 <table> |
67 <table> |
56 |
|
57 <tr> |
68 <tr> |
58 <td><a href="#CodeStyleCheckerDialog.__init__">CodeStyleCheckerDialog</a></td> |
69 <td><a href="#CodeStyleCheckerDialog.__init__">CodeStyleCheckerDialog</a></td> |
59 <td>Constructor</td> |
70 <td>Constructor</td> |
60 </tr> |
71 </tr> |
61 <tr> |
72 <tr> |
356 </dd> |
368 </dd> |
357 </dl> |
369 </dl> |
358 <a NAME="CodeStyleCheckerDialog.__batchFinished" ID="CodeStyleCheckerDialog.__batchFinished"></a> |
370 <a NAME="CodeStyleCheckerDialog.__batchFinished" ID="CodeStyleCheckerDialog.__batchFinished"></a> |
359 <h4>CodeStyleCheckerDialog.__batchFinished</h4> |
371 <h4>CodeStyleCheckerDialog.__batchFinished</h4> |
360 <b>__batchFinished</b>(<i></i>) |
372 <b>__batchFinished</b>(<i></i>) |
361 |
|
362 <p> |
373 <p> |
363 Private slot handling the completion of a batch job. |
374 Private slot handling the completion of a batch job. |
364 </p> |
375 </p> |
|
376 |
365 <a NAME="CodeStyleCheckerDialog.__cleanupData" ID="CodeStyleCheckerDialog.__cleanupData"></a> |
377 <a NAME="CodeStyleCheckerDialog.__cleanupData" ID="CodeStyleCheckerDialog.__cleanupData"></a> |
366 <h4>CodeStyleCheckerDialog.__cleanupData</h4> |
378 <h4>CodeStyleCheckerDialog.__cleanupData</h4> |
367 <b>__cleanupData</b>(<i></i>) |
379 <b>__cleanupData</b>(<i></i>) |
368 |
|
369 <p> |
380 <p> |
370 Private method to clean the loaded/entered data of redundant entries. |
381 Private method to clean the loaded/entered data of redundant entries. |
371 </p> |
382 </p> |
|
383 |
372 <a NAME="CodeStyleCheckerDialog.__clearErrors" ID="CodeStyleCheckerDialog.__clearErrors"></a> |
384 <a NAME="CodeStyleCheckerDialog.__clearErrors" ID="CodeStyleCheckerDialog.__clearErrors"></a> |
373 <h4>CodeStyleCheckerDialog.__clearErrors</h4> |
385 <h4>CodeStyleCheckerDialog.__clearErrors</h4> |
374 <b>__clearErrors</b>(<i>files</i>) |
386 <b>__clearErrors</b>(<i>files</i>) |
375 |
|
376 <p> |
387 <p> |
377 Private method to clear all warning markers of open editors to be |
388 Private method to clear all warning markers of open editors to be |
378 checked. |
389 checked. |
379 </p> |
390 </p> |
|
391 |
380 <dl> |
392 <dl> |
381 |
393 |
382 <dt><i>files</i> (list of str)</dt> |
394 <dt><i>files</i> (list of str)</dt> |
383 <dd> |
395 <dd> |
384 list of files to be checked |
396 list of files to be checked |
385 </dd> |
397 </dd> |
386 </dl> |
398 </dl> |
387 <a NAME="CodeStyleCheckerDialog.__createErrorItem" ID="CodeStyleCheckerDialog.__createErrorItem"></a> |
399 <a NAME="CodeStyleCheckerDialog.__createErrorItem" ID="CodeStyleCheckerDialog.__createErrorItem"></a> |
388 <h4>CodeStyleCheckerDialog.__createErrorItem</h4> |
400 <h4>CodeStyleCheckerDialog.__createErrorItem</h4> |
389 <b>__createErrorItem</b>(<i>filename, message</i>) |
401 <b>__createErrorItem</b>(<i>filename, message</i>) |
390 |
|
391 <p> |
402 <p> |
392 Private slot to create a new error item in the result list. |
403 Private slot to create a new error item in the result list. |
393 </p> |
404 </p> |
|
405 |
394 <dl> |
406 <dl> |
395 |
407 |
396 <dt><i>filename</i> (str)</dt> |
408 <dt><i>filename</i> (str)</dt> |
397 <dd> |
409 <dd> |
398 name of the file |
410 name of the file |
661 </dd> |
673 </dd> |
662 </dl> |
674 </dl> |
663 <a NAME="CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList" ID="CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList"></a> |
675 <a NAME="CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList" ID="CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList"></a> |
664 <h4>CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList</h4> |
676 <h4>CodeStyleCheckerDialog.__initCommentedCodeCheckerWhiteList</h4> |
665 <b>__initCommentedCodeCheckerWhiteList</b>(<i>whitelist</i>) |
677 <b>__initCommentedCodeCheckerWhiteList</b>(<i>whitelist</i>) |
666 |
|
667 <p> |
678 <p> |
668 Private method to populate the list of commented code whitelist |
679 Private method to populate the list of commented code whitelist |
669 patterns. |
680 patterns. |
670 </p> |
681 </p> |
|
682 |
671 <dl> |
683 <dl> |
672 |
684 |
673 <dt><i>whitelist</i> (list of str)</dt> |
685 <dt><i>whitelist</i> (list of str)</dt> |
674 <dd> |
686 <dd> |
675 list of commented code whitelist patterns |
687 list of commented code whitelist patterns |
676 </dd> |
688 </dd> |
677 </dl> |
689 </dl> |
678 <a NAME="CodeStyleCheckerDialog.__initFuturesList" ID="CodeStyleCheckerDialog.__initFuturesList"></a> |
690 <a NAME="CodeStyleCheckerDialog.__initFuturesList" ID="CodeStyleCheckerDialog.__initFuturesList"></a> |
679 <h4>CodeStyleCheckerDialog.__initFuturesList</h4> |
691 <h4>CodeStyleCheckerDialog.__initFuturesList</h4> |
680 <b>__initFuturesList</b>(<i>selectedFutures</i>) |
692 <b>__initFuturesList</b>(<i>selectedFutures</i>) |
681 |
|
682 <p> |
693 <p> |
683 Private method to set the selected status of the future imports. |
694 Private method to set the selected status of the future imports. |
684 </p> |
695 </p> |
|
696 |
685 <dl> |
697 <dl> |
686 |
698 |
687 <dt><i>selectedFutures</i> (str)</dt> |
699 <dt><i>selectedFutures</i> (str)</dt> |
688 <dd> |
700 <dd> |
689 comma separated list of expected future imports |
701 comma separated list of expected future imports |
690 </dd> |
702 </dd> |
691 </dl> |
703 </dl> |
692 <a NAME="CodeStyleCheckerDialog.__itemFixable" ID="CodeStyleCheckerDialog.__itemFixable"></a> |
704 <a NAME="CodeStyleCheckerDialog.__itemFixable" ID="CodeStyleCheckerDialog.__itemFixable"></a> |
693 <h4>CodeStyleCheckerDialog.__itemFixable</h4> |
705 <h4>CodeStyleCheckerDialog.__itemFixable</h4> |
694 <b>__itemFixable</b>(<i>itm</i>) |
706 <b>__itemFixable</b>(<i>itm</i>) |
695 |
|
696 <p> |
707 <p> |
697 Private method to check, if an item has a fixable issue. |
708 Private method to check, if an item has a fixable issue. |
698 </p> |
709 </p> |
|
710 |
699 <dl> |
711 <dl> |
700 |
712 |
701 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
713 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
702 <dd> |
714 <dd> |
703 item to be checked |
715 item to be checked |
854 </dd> |
866 </dd> |
855 </dl> |
867 </dl> |
856 <a NAME="CodeStyleCheckerDialog.__setBanRelativeImports" ID="CodeStyleCheckerDialog.__setBanRelativeImports"></a> |
868 <a NAME="CodeStyleCheckerDialog.__setBanRelativeImports" ID="CodeStyleCheckerDialog.__setBanRelativeImports"></a> |
857 <h4>CodeStyleCheckerDialog.__setBanRelativeImports</h4> |
869 <h4>CodeStyleCheckerDialog.__setBanRelativeImports</h4> |
858 <b>__setBanRelativeImports</b>(<i>value</i>) |
870 <b>__setBanRelativeImports</b>(<i>value</i>) |
859 |
|
860 <p> |
871 <p> |
861 Private method to set the button according to the ban relative imports |
872 Private method to set the button according to the ban relative imports |
862 setting. |
873 setting. |
863 </p> |
874 </p> |
|
875 |
864 <dl> |
876 <dl> |
865 |
877 |
866 <dt><i>value</i> (str)</dt> |
878 <dt><i>value</i> (str)</dt> |
867 <dd> |
879 <dd> |
868 value of the ban relative imports setting |
880 value of the ban relative imports setting |
869 </dd> |
881 </dd> |
870 </dl> |
882 </dl> |
871 <a NAME="CodeStyleCheckerDialog.__updateFixerStatistics" ID="CodeStyleCheckerDialog.__updateFixerStatistics"></a> |
883 <a NAME="CodeStyleCheckerDialog.__updateFixerStatistics" ID="CodeStyleCheckerDialog.__updateFixerStatistics"></a> |
872 <h4>CodeStyleCheckerDialog.__updateFixerStatistics</h4> |
884 <h4>CodeStyleCheckerDialog.__updateFixerStatistics</h4> |
873 <b>__updateFixerStatistics</b>(<i>fixer</i>) |
885 <b>__updateFixerStatistics</b>(<i>fixer</i>) |
874 |
|
875 <p> |
886 <p> |
876 Private method to update the collected fixer related statistics. |
887 Private method to update the collected fixer related statistics. |
877 </p> |
888 </p> |
|
889 |
878 <dl> |
890 <dl> |
879 |
891 |
880 <dt><i>fixer</i> (CodeStyleFixer)</dt> |
892 <dt><i>fixer</i> (CodeStyleFixer)</dt> |
881 <dd> |
893 <dd> |
882 reference to the code style fixer |
894 reference to the code style fixer |
883 </dd> |
895 </dd> |
884 </dl> |
896 </dl> |
885 <a NAME="CodeStyleCheckerDialog.__updateProgress" ID="CodeStyleCheckerDialog.__updateProgress"></a> |
897 <a NAME="CodeStyleCheckerDialog.__updateProgress" ID="CodeStyleCheckerDialog.__updateProgress"></a> |
886 <h4>CodeStyleCheckerDialog.__updateProgress</h4> |
898 <h4>CodeStyleCheckerDialog.__updateProgress</h4> |
887 <b>__updateProgress</b>(<i>fn</i>) |
899 <b>__updateProgress</b>(<i>fn</i>) |
888 |
|
889 <p> |
900 <p> |
890 Private method to update the progress tab. |
901 Private method to update the progress tab. |
891 </p> |
902 </p> |
|
903 |
892 <dl> |
904 <dl> |
893 |
905 |
894 <dt><i>fn</i> (str)</dt> |
906 <dt><i>fn</i> (str)</dt> |
895 <dd> |
907 <dd> |
896 filename of the just checked file |
908 filename of the just checked file |
897 </dd> |
909 </dd> |
898 </dl> |
910 </dl> |
899 <a NAME="CodeStyleCheckerDialog.__updateStatistics" ID="CodeStyleCheckerDialog.__updateStatistics"></a> |
911 <a NAME="CodeStyleCheckerDialog.__updateStatistics" ID="CodeStyleCheckerDialog.__updateStatistics"></a> |
900 <h4>CodeStyleCheckerDialog.__updateStatistics</h4> |
912 <h4>CodeStyleCheckerDialog.__updateStatistics</h4> |
901 <b>__updateStatistics</b>(<i>statistics, fixer, ignoredErrors, securityOk</i>) |
913 <b>__updateStatistics</b>(<i>statistics, fixer, ignoredErrors, securityOk</i>) |
902 |
|
903 <p> |
914 <p> |
904 Private method to update the collected statistics. |
915 Private method to update the collected statistics. |
905 </p> |
916 </p> |
|
917 |
906 <dl> |
918 <dl> |
907 |
919 |
908 <dt><i>statistics</i> (dict)</dt> |
920 <dt><i>statistics</i> (dict)</dt> |
909 <dd> |
921 <dd> |
910 dictionary of statistical data with |
922 dictionary of statistical data with |
924 </dd> |
936 </dd> |
925 </dl> |
937 </dl> |
926 <a NAME="CodeStyleCheckerDialog.check" ID="CodeStyleCheckerDialog.check"></a> |
938 <a NAME="CodeStyleCheckerDialog.check" ID="CodeStyleCheckerDialog.check"></a> |
927 <h4>CodeStyleCheckerDialog.check</h4> |
939 <h4>CodeStyleCheckerDialog.check</h4> |
928 <b>check</b>(<i>codestring=""</i>) |
940 <b>check</b>(<i>codestring=""</i>) |
929 |
|
930 <p> |
941 <p> |
931 Public method to start a style check for one file. |
942 Public method to start a style check for one file. |
932 </p> |
943 </p> |
933 <p> |
944 <p> |
934 The results are reported to the __processResult slot. |
945 The results are reported to the __processResult slot. |
935 </p> |
946 </p> |
|
947 |
936 <dl> |
948 <dl> |
937 |
949 |
938 <dt><i>codestring</i> (str)</dt> |
950 <dt><i>codestring</i> (str)</dt> |
939 <dd> |
951 <dd> |
940 optional sourcestring |
952 optional sourcestring |
941 </dd> |
953 </dd> |
942 </dl> |
954 </dl> |
943 <a NAME="CodeStyleCheckerDialog.checkBatch" ID="CodeStyleCheckerDialog.checkBatch"></a> |
955 <a NAME="CodeStyleCheckerDialog.checkBatch" ID="CodeStyleCheckerDialog.checkBatch"></a> |
944 <h4>CodeStyleCheckerDialog.checkBatch</h4> |
956 <h4>CodeStyleCheckerDialog.checkBatch</h4> |
945 <b>checkBatch</b>(<i></i>) |
957 <b>checkBatch</b>(<i></i>) |
946 |
|
947 <p> |
958 <p> |
948 Public method to start a style check batch job. |
959 Public method to start a style check batch job. |
949 </p> |
960 </p> |
950 <p> |
961 <p> |
951 The results are reported to the __processResult slot. |
962 The results are reported to the __processResult slot. |
952 </p> |
963 </p> |
|
964 |
953 <a NAME="CodeStyleCheckerDialog.closeEvent" ID="CodeStyleCheckerDialog.closeEvent"></a> |
965 <a NAME="CodeStyleCheckerDialog.closeEvent" ID="CodeStyleCheckerDialog.closeEvent"></a> |
954 <h4>CodeStyleCheckerDialog.closeEvent</h4> |
966 <h4>CodeStyleCheckerDialog.closeEvent</h4> |
955 <b>closeEvent</b>(<i>evt</i>) |
967 <b>closeEvent</b>(<i>evt</i>) |
956 |
|
957 <p> |
968 <p> |
958 Protected method to handle a close event. |
969 Protected method to handle a close event. |
959 </p> |
970 </p> |
|
971 |
960 <dl> |
972 <dl> |
961 |
973 |
962 <dt><i>evt</i> (QCloseEvent)</dt> |
974 <dt><i>evt</i> (QCloseEvent)</dt> |
963 <dd> |
975 <dd> |
964 reference to the close event |
976 reference to the close event |
965 </dd> |
977 </dd> |
966 </dl> |
978 </dl> |
967 <a NAME="CodeStyleCheckerDialog.getDefaults" ID="CodeStyleCheckerDialog.getDefaults"></a> |
979 <a NAME="CodeStyleCheckerDialog.getDefaults" ID="CodeStyleCheckerDialog.getDefaults"></a> |
968 <h4>CodeStyleCheckerDialog.getDefaults</h4> |
980 <h4>CodeStyleCheckerDialog.getDefaults</h4> |
969 <b>getDefaults</b>(<i></i>) |
981 <b>getDefaults</b>(<i></i>) |
970 |
|
971 <p> |
982 <p> |
972 Public method to get a dictionary containing the default values. |
983 Public method to get a dictionary containing the default values. |
973 </p> |
984 </p> |
|
985 |
974 <dl> |
986 <dl> |
975 <dt>Return:</dt> |
987 <dt>Return:</dt> |
976 <dd> |
988 <dd> |
977 dictionary containing the default values |
989 dictionary containing the default values |
978 </dd> |
990 </dd> |
984 </dd> |
996 </dd> |
985 </dl> |
997 </dl> |
986 <a NAME="CodeStyleCheckerDialog.on_addBuiltinButton_clicked" ID="CodeStyleCheckerDialog.on_addBuiltinButton_clicked"></a> |
998 <a NAME="CodeStyleCheckerDialog.on_addBuiltinButton_clicked" ID="CodeStyleCheckerDialog.on_addBuiltinButton_clicked"></a> |
987 <h4>CodeStyleCheckerDialog.on_addBuiltinButton_clicked</h4> |
999 <h4>CodeStyleCheckerDialog.on_addBuiltinButton_clicked</h4> |
988 <b>on_addBuiltinButton_clicked</b>(<i></i>) |
1000 <b>on_addBuiltinButton_clicked</b>(<i></i>) |
989 |
|
990 <p> |
1001 <p> |
991 Private slot to add a built-in assignment to be ignored. |
1002 Private slot to add a built-in assignment to be ignored. |
992 </p> |
1003 </p> |
|
1004 |
993 <a NAME="CodeStyleCheckerDialog.on_addWhitelistButton_clicked" ID="CodeStyleCheckerDialog.on_addWhitelistButton_clicked"></a> |
1005 <a NAME="CodeStyleCheckerDialog.on_addWhitelistButton_clicked" ID="CodeStyleCheckerDialog.on_addWhitelistButton_clicked"></a> |
994 <h4>CodeStyleCheckerDialog.on_addWhitelistButton_clicked</h4> |
1006 <h4>CodeStyleCheckerDialog.on_addWhitelistButton_clicked</h4> |
995 <b>on_addWhitelistButton_clicked</b>(<i></i>) |
1007 <b>on_addWhitelistButton_clicked</b>(<i></i>) |
996 |
|
997 <p> |
1008 <p> |
998 Private slot to add a commented code whitelist pattern. |
1009 Private slot to add a commented code whitelist pattern. |
999 </p> |
1010 </p> |
|
1011 |
1000 <a NAME="CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged"></a> |
1012 <a NAME="CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged"></a> |
1001 <h4>CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged</h4> |
1013 <h4>CodeStyleCheckerDialog.on_builtinsAssignmentList_itemSelectionChanged</h4> |
1002 <b>on_builtinsAssignmentList_itemSelectionChanged</b>(<i></i>) |
1014 <b>on_builtinsAssignmentList_itemSelectionChanged</b>(<i></i>) |
1003 |
|
1004 <p> |
1015 <p> |
1005 Private slot to react upon changes of the selected builtin assignments. |
1016 Private slot to react upon changes of the selected builtin assignments. |
1006 </p> |
1017 </p> |
|
1018 |
1007 <a NAME="CodeStyleCheckerDialog.on_buttonBox_clicked" ID="CodeStyleCheckerDialog.on_buttonBox_clicked"></a> |
1019 <a NAME="CodeStyleCheckerDialog.on_buttonBox_clicked" ID="CodeStyleCheckerDialog.on_buttonBox_clicked"></a> |
1008 <h4>CodeStyleCheckerDialog.on_buttonBox_clicked</h4> |
1020 <h4>CodeStyleCheckerDialog.on_buttonBox_clicked</h4> |
1009 <b>on_buttonBox_clicked</b>(<i>button</i>) |
1021 <b>on_buttonBox_clicked</b>(<i>button</i>) |
1010 |
|
1011 <p> |
1022 <p> |
1012 Private slot called by a button of the button box clicked. |
1023 Private slot called by a button of the button box clicked. |
1013 </p> |
1024 </p> |
|
1025 |
1014 <dl> |
1026 <dl> |
1015 |
1027 |
1016 <dt><i>button</i> (QAbstractButton)</dt> |
1028 <dt><i>button</i> (QAbstractButton)</dt> |
1017 <dd> |
1029 <dd> |
1018 button that was clicked |
1030 button that was clicked |
1019 </dd> |
1031 </dd> |
1020 </dl> |
1032 </dl> |
1021 <a NAME="CodeStyleCheckerDialog.on_cancelButton_clicked" ID="CodeStyleCheckerDialog.on_cancelButton_clicked"></a> |
1033 <a NAME="CodeStyleCheckerDialog.on_cancelButton_clicked" ID="CodeStyleCheckerDialog.on_cancelButton_clicked"></a> |
1022 <h4>CodeStyleCheckerDialog.on_cancelButton_clicked</h4> |
1034 <h4>CodeStyleCheckerDialog.on_cancelButton_clicked</h4> |
1023 <b>on_cancelButton_clicked</b>(<i></i>) |
1035 <b>on_cancelButton_clicked</b>(<i></i>) |
1024 |
|
1025 <p> |
1036 <p> |
1026 Private slot to handle the "Cancel" button press. |
1037 Private slot to handle the "Cancel" button press. |
1027 </p> |
1038 </p> |
|
1039 |
1028 <a NAME="CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked" ID="CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked"></a> |
1040 <a NAME="CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked" ID="CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked"></a> |
1029 <h4>CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked</h4> |
1041 <h4>CodeStyleCheckerDialog.on_deleteBuiltinButton_clicked</h4> |
1030 <b>on_deleteBuiltinButton_clicked</b>(<i></i>) |
1042 <b>on_deleteBuiltinButton_clicked</b>(<i></i>) |
1031 |
|
1032 <p> |
1043 <p> |
1033 Private slot to delete the selected items from the list. |
1044 Private slot to delete the selected items from the list. |
1034 </p> |
1045 </p> |
|
1046 |
1035 <a NAME="CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked" ID="CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked"></a> |
1047 <a NAME="CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked" ID="CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked"></a> |
1036 <h4>CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked</h4> |
1048 <h4>CodeStyleCheckerDialog.on_deleteWhitelistButton_clicked</h4> |
1037 <b>on_deleteWhitelistButton_clicked</b>(<i></i>) |
1049 <b>on_deleteWhitelistButton_clicked</b>(<i></i>) |
1038 |
|
1039 <p> |
1050 <p> |
1040 Private slot to delete the selected items from the list. |
1051 Private slot to delete the selected items from the list. |
1041 </p> |
1052 </p> |
|
1053 |
1042 <a NAME="CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked"></a> |
1054 <a NAME="CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked"></a> |
1043 <h4>CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked</h4> |
1055 <h4>CodeStyleCheckerDialog.on_excludeMessagesSelectButton_clicked</h4> |
1044 <b>on_excludeMessagesSelectButton_clicked</b>(<i></i>) |
1056 <b>on_excludeMessagesSelectButton_clicked</b>(<i></i>) |
1045 |
|
1046 <p> |
1057 <p> |
1047 Private slot to select the message codes to be excluded via a |
1058 Private slot to select the message codes to be excluded via a |
1048 selection dialog. |
1059 selection dialog. |
1049 </p> |
1060 </p> |
|
1061 |
1050 <a NAME="CodeStyleCheckerDialog.on_filterButton_clicked" ID="CodeStyleCheckerDialog.on_filterButton_clicked"></a> |
1062 <a NAME="CodeStyleCheckerDialog.on_filterButton_clicked" ID="CodeStyleCheckerDialog.on_filterButton_clicked"></a> |
1051 <h4>CodeStyleCheckerDialog.on_filterButton_clicked</h4> |
1063 <h4>CodeStyleCheckerDialog.on_filterButton_clicked</h4> |
1052 <b>on_filterButton_clicked</b>(<i></i>) |
1064 <b>on_filterButton_clicked</b>(<i></i>) |
1053 |
|
1054 <p> |
1065 <p> |
1055 Private slot to filter the list of messages based on selected message |
1066 Private slot to filter the list of messages based on selected message |
1056 code. |
1067 code. |
1057 </p> |
1068 </p> |
|
1069 |
1058 <a NAME="CodeStyleCheckerDialog.on_fixButton_clicked" ID="CodeStyleCheckerDialog.on_fixButton_clicked"></a> |
1070 <a NAME="CodeStyleCheckerDialog.on_fixButton_clicked" ID="CodeStyleCheckerDialog.on_fixButton_clicked"></a> |
1059 <h4>CodeStyleCheckerDialog.on_fixButton_clicked</h4> |
1071 <h4>CodeStyleCheckerDialog.on_fixButton_clicked</h4> |
1060 <b>on_fixButton_clicked</b>(<i></i>) |
1072 <b>on_fixButton_clicked</b>(<i></i>) |
1061 |
|
1062 <p> |
1073 <p> |
1063 Private slot to fix selected issues. |
1074 Private slot to fix selected issues. |
1064 </p> |
1075 </p> |
1065 <p> |
1076 <p> |
1066 Build a dictionary of issues to fix. Update the initialized __options. |
1077 Build a dictionary of issues to fix. Update the initialized __options. |
1067 Then call check with the dict as keyparam to fix selected issues. |
1078 Then call check with the dict as keyparam to fix selected issues. |
1068 </p> |
1079 </p> |
|
1080 |
1069 <a NAME="CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked"></a> |
1081 <a NAME="CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked"></a> |
1070 <h4>CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked</h4> |
1082 <h4>CodeStyleCheckerDialog.on_fixIssuesSelectButton_clicked</h4> |
1071 <b>on_fixIssuesSelectButton_clicked</b>(<i></i>) |
1083 <b>on_fixIssuesSelectButton_clicked</b>(<i></i>) |
1072 |
|
1073 <p> |
1084 <p> |
1074 Private slot to select the issue codes to be fixed via a |
1085 Private slot to select the issue codes to be fixed via a |
1075 selection dialog. |
1086 selection dialog. |
1076 </p> |
1087 </p> |
|
1088 |
1077 <a NAME="CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked"></a> |
1089 <a NAME="CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked"></a> |
1078 <h4>CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked</h4> |
1090 <h4>CodeStyleCheckerDialog.on_includeMessagesSelectButton_clicked</h4> |
1079 <b>on_includeMessagesSelectButton_clicked</b>(<i></i>) |
1091 <b>on_includeMessagesSelectButton_clicked</b>(<i></i>) |
1080 |
|
1081 <p> |
1092 <p> |
1082 Private slot to select the message codes to be included via a |
1093 Private slot to select the message codes to be included via a |
1083 selection dialog. |
1094 selection dialog. |
1084 </p> |
1095 </p> |
|
1096 |
1085 <a NAME="CodeStyleCheckerDialog.on_loadDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_loadDefaultButton_clicked"></a> |
1097 <a NAME="CodeStyleCheckerDialog.on_loadDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_loadDefaultButton_clicked"></a> |
1086 <h4>CodeStyleCheckerDialog.on_loadDefaultButton_clicked</h4> |
1098 <h4>CodeStyleCheckerDialog.on_loadDefaultButton_clicked</h4> |
1087 <b>on_loadDefaultButton_clicked</b>(<i></i>) |
1099 <b>on_loadDefaultButton_clicked</b>(<i></i>) |
1088 |
|
1089 <p> |
1100 <p> |
1090 Private slot to load the default configuration values. |
1101 Private slot to load the default configuration values. |
1091 </p> |
1102 </p> |
|
1103 |
1092 <a NAME="CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked"></a> |
1104 <a NAME="CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked" ID="CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked"></a> |
1093 <h4>CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked</h4> |
1105 <h4>CodeStyleCheckerDialog.on_noFixIssuesSelectButton_clicked</h4> |
1094 <b>on_noFixIssuesSelectButton_clicked</b>(<i></i>) |
1106 <b>on_noFixIssuesSelectButton_clicked</b>(<i></i>) |
1095 |
|
1096 <p> |
1107 <p> |
1097 Private slot to select the issue codes not to be fixed via a |
1108 Private slot to select the issue codes not to be fixed via a |
1098 selection dialog. |
1109 selection dialog. |
1099 </p> |
1110 </p> |
|
1111 |
1100 <a NAME="CodeStyleCheckerDialog.on_resetDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_resetDefaultButton_clicked"></a> |
1112 <a NAME="CodeStyleCheckerDialog.on_resetDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_resetDefaultButton_clicked"></a> |
1101 <h4>CodeStyleCheckerDialog.on_resetDefaultButton_clicked</h4> |
1113 <h4>CodeStyleCheckerDialog.on_resetDefaultButton_clicked</h4> |
1102 <b>on_resetDefaultButton_clicked</b>(<i></i>) |
1114 <b>on_resetDefaultButton_clicked</b>(<i></i>) |
1103 |
|
1104 <p> |
1115 <p> |
1105 Private slot to reset the configuration values to their default values. |
1116 Private slot to reset the configuration values to their default values. |
1106 </p> |
1117 </p> |
|
1118 |
1107 <a NAME="CodeStyleCheckerDialog.on_restartButton_clicked" ID="CodeStyleCheckerDialog.on_restartButton_clicked"></a> |
1119 <a NAME="CodeStyleCheckerDialog.on_restartButton_clicked" ID="CodeStyleCheckerDialog.on_restartButton_clicked"></a> |
1108 <h4>CodeStyleCheckerDialog.on_restartButton_clicked</h4> |
1120 <h4>CodeStyleCheckerDialog.on_restartButton_clicked</h4> |
1109 <b>on_restartButton_clicked</b>(<i></i>) |
1121 <b>on_restartButton_clicked</b>(<i></i>) |
1110 |
|
1111 <p> |
1122 <p> |
1112 Private slot to restart a code style check run. |
1123 Private slot to restart a code style check run. |
1113 </p> |
1124 </p> |
|
1125 |
1114 <a NAME="CodeStyleCheckerDialog.on_resultList_itemActivated" ID="CodeStyleCheckerDialog.on_resultList_itemActivated"></a> |
1126 <a NAME="CodeStyleCheckerDialog.on_resultList_itemActivated" ID="CodeStyleCheckerDialog.on_resultList_itemActivated"></a> |
1115 <h4>CodeStyleCheckerDialog.on_resultList_itemActivated</h4> |
1127 <h4>CodeStyleCheckerDialog.on_resultList_itemActivated</h4> |
1116 <b>on_resultList_itemActivated</b>(<i>item, column</i>) |
1128 <b>on_resultList_itemActivated</b>(<i>item, column</i>) |
1117 |
|
1118 <p> |
1129 <p> |
1119 Private slot to handle the activation of an item. |
1130 Private slot to handle the activation of an item. |
1120 </p> |
1131 </p> |
|
1132 |
1121 <dl> |
1133 <dl> |
1122 |
1134 |
1123 <dt><i>item</i> (QTreeWidgetItem)</dt> |
1135 <dt><i>item</i> (QTreeWidgetItem)</dt> |
1124 <dd> |
1136 <dd> |
1125 reference to the activated item |
1137 reference to the activated item |
1130 </dd> |
1142 </dd> |
1131 </dl> |
1143 </dl> |
1132 <a NAME="CodeStyleCheckerDialog.on_resultList_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_resultList_itemSelectionChanged"></a> |
1144 <a NAME="CodeStyleCheckerDialog.on_resultList_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_resultList_itemSelectionChanged"></a> |
1133 <h4>CodeStyleCheckerDialog.on_resultList_itemSelectionChanged</h4> |
1145 <h4>CodeStyleCheckerDialog.on_resultList_itemSelectionChanged</h4> |
1134 <b>on_resultList_itemSelectionChanged</b>(<i></i>) |
1146 <b>on_resultList_itemSelectionChanged</b>(<i></i>) |
1135 |
|
1136 <p> |
1147 <p> |
1137 Private slot to change the dialog state depending on the selection. |
1148 Private slot to change the dialog state depending on the selection. |
1138 </p> |
1149 </p> |
|
1150 |
1139 <a NAME="CodeStyleCheckerDialog.on_showButton_clicked" ID="CodeStyleCheckerDialog.on_showButton_clicked"></a> |
1151 <a NAME="CodeStyleCheckerDialog.on_showButton_clicked" ID="CodeStyleCheckerDialog.on_showButton_clicked"></a> |
1140 <h4>CodeStyleCheckerDialog.on_showButton_clicked</h4> |
1152 <h4>CodeStyleCheckerDialog.on_showButton_clicked</h4> |
1141 <b>on_showButton_clicked</b>(<i></i>) |
1153 <b>on_showButton_clicked</b>(<i></i>) |
1142 |
|
1143 <p> |
1154 <p> |
1144 Private slot to handle the "Show" button press. |
1155 Private slot to handle the "Show" button press. |
1145 </p> |
1156 </p> |
|
1157 |
1146 <a NAME="CodeStyleCheckerDialog.on_startButton_clicked" ID="CodeStyleCheckerDialog.on_startButton_clicked"></a> |
1158 <a NAME="CodeStyleCheckerDialog.on_startButton_clicked" ID="CodeStyleCheckerDialog.on_startButton_clicked"></a> |
1147 <h4>CodeStyleCheckerDialog.on_startButton_clicked</h4> |
1159 <h4>CodeStyleCheckerDialog.on_startButton_clicked</h4> |
1148 <b>on_startButton_clicked</b>(<i></i>) |
1160 <b>on_startButton_clicked</b>(<i></i>) |
1149 |
|
1150 <p> |
1161 <p> |
1151 Private slot to start a code style check run. |
1162 Private slot to start a code style check run. |
1152 </p> |
1163 </p> |
|
1164 |
1153 <a NAME="CodeStyleCheckerDialog.on_statisticsButton_clicked" ID="CodeStyleCheckerDialog.on_statisticsButton_clicked"></a> |
1165 <a NAME="CodeStyleCheckerDialog.on_statisticsButton_clicked" ID="CodeStyleCheckerDialog.on_statisticsButton_clicked"></a> |
1154 <h4>CodeStyleCheckerDialog.on_statisticsButton_clicked</h4> |
1166 <h4>CodeStyleCheckerDialog.on_statisticsButton_clicked</h4> |
1155 <b>on_statisticsButton_clicked</b>(<i></i>) |
1167 <b>on_statisticsButton_clicked</b>(<i></i>) |
1156 |
|
1157 <p> |
1168 <p> |
1158 Private slot to show the statistics dialog. |
1169 Private slot to show the statistics dialog. |
1159 </p> |
1170 </p> |
|
1171 |
1160 <a NAME="CodeStyleCheckerDialog.on_storeDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_storeDefaultButton_clicked"></a> |
1172 <a NAME="CodeStyleCheckerDialog.on_storeDefaultButton_clicked" ID="CodeStyleCheckerDialog.on_storeDefaultButton_clicked"></a> |
1161 <h4>CodeStyleCheckerDialog.on_storeDefaultButton_clicked</h4> |
1173 <h4>CodeStyleCheckerDialog.on_storeDefaultButton_clicked</h4> |
1162 <b>on_storeDefaultButton_clicked</b>(<i></i>) |
1174 <b>on_storeDefaultButton_clicked</b>(<i></i>) |
1163 |
|
1164 <p> |
1175 <p> |
1165 Private slot to store the current configuration values as |
1176 Private slot to store the current configuration values as |
1166 default values. |
1177 default values. |
1167 </p> |
1178 </p> |
|
1179 |
1168 <a NAME="CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged"></a> |
1180 <a NAME="CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged" ID="CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged"></a> |
1169 <h4>CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged</h4> |
1181 <h4>CodeStyleCheckerDialog.on_whitelistWidget_itemSelectionChanged</h4> |
1170 <b>on_whitelistWidget_itemSelectionChanged</b>(<i></i>) |
1182 <b>on_whitelistWidget_itemSelectionChanged</b>(<i></i>) |
1171 |
|
1172 <p> |
1183 <p> |
1173 Private slot to react upon changes of the selected whitelist patterns. |
1184 Private slot to react upon changes of the selected whitelist patterns. |
1174 </p> |
1185 </p> |
|
1186 |
1175 <a NAME="CodeStyleCheckerDialog.prepare" ID="CodeStyleCheckerDialog.prepare"></a> |
1187 <a NAME="CodeStyleCheckerDialog.prepare" ID="CodeStyleCheckerDialog.prepare"></a> |
1176 <h4>CodeStyleCheckerDialog.prepare</h4> |
1188 <h4>CodeStyleCheckerDialog.prepare</h4> |
1177 <b>prepare</b>(<i>fileList, project</i>) |
1189 <b>prepare</b>(<i>fileList, project</i>) |
1178 |
|
1179 <p> |
1190 <p> |
1180 Public method to prepare the dialog with a list of filenames. |
1191 Public method to prepare the dialog with a list of filenames. |
1181 </p> |
1192 </p> |
|
1193 |
1182 <dl> |
1194 <dl> |
1183 |
1195 |
1184 <dt><i>fileList</i> (list of str)</dt> |
1196 <dt><i>fileList</i> (list of str)</dt> |
1185 <dd> |
1197 <dd> |
1186 list of filenames |
1198 list of filenames |