84 """ |
84 """ |
85 Private method to store the flags for the selected project type. |
85 Private method to store the flags for the selected project type. |
86 |
86 |
87 @param projectType type of the selected project (string) |
87 @param projectType type of the selected project (string) |
88 """ |
88 """ |
89 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \ |
89 from Project.ProjectBrowserFlags import SourcesBrowserFlag, \ |
90 ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \ |
90 FormsBrowserFlag, ResourcesBrowserFlag, TranslationsBrowserFlag, \ |
91 OthersBrowserFlag |
91 InterfacesBrowserFlag, OthersBrowserFlag |
92 |
92 |
93 flags = 0 |
93 flags = 0 |
94 if self.sourcesBrowserCheckBox.isChecked(): |
94 if self.sourcesBrowserCheckBox.isChecked(): |
95 flags |= SourcesBrowserFlag |
95 flags |= SourcesBrowserFlag |
96 if self.formsBrowserCheckBox.isChecked(): |
96 if self.formsBrowserCheckBox.isChecked(): |
106 |
106 |
107 self.__projectBrowserFlags[projectType] = flags |
107 self.__projectBrowserFlags[projectType] = flags |
108 |
108 |
109 def __setProjectBrowsersCheckBoxes(self, projectType): |
109 def __setProjectBrowsersCheckBoxes(self, projectType): |
110 """ |
110 """ |
111 Private method to set the checkboxes according to the selected project type. |
111 Private method to set the checkboxes according to the selected project |
|
112 type. |
112 |
113 |
113 @param projectType type of the selected project (string) |
114 @param projectType type of the selected project (string) |
114 """ |
115 """ |
115 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \ |
116 from Project.ProjectBrowserFlags import SourcesBrowserFlag, \ |
116 ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \ |
117 FormsBrowserFlag, ResourcesBrowserFlag, TranslationsBrowserFlag, \ |
117 OthersBrowserFlag |
118 InterfacesBrowserFlag, OthersBrowserFlag |
118 |
119 |
119 flags = self.__projectBrowserFlags[projectType] |
120 flags = self.__projectBrowserFlags[projectType] |
120 |
121 |
121 self.sourcesBrowserCheckBox.setChecked(flags & SourcesBrowserFlag) |
122 self.sourcesBrowserCheckBox.setChecked(flags & SourcesBrowserFlag) |
122 self.formsBrowserCheckBox.setChecked(flags & FormsBrowserFlag) |
123 self.formsBrowserCheckBox.setChecked(flags & FormsBrowserFlag) |
123 self.resourcesBrowserCheckBox.setChecked(flags & ResourcesBrowserFlag) |
124 self.resourcesBrowserCheckBox.setChecked(flags & ResourcesBrowserFlag) |
124 self.translationsBrowserCheckBox.setChecked(flags & TranslationsBrowserFlag) |
125 self.translationsBrowserCheckBox.setChecked( |
125 self.interfacesBrowserCheckBox.setChecked(flags & InterfacesBrowserFlag) |
126 flags & TranslationsBrowserFlag) |
|
127 self.interfacesBrowserCheckBox.setChecked( |
|
128 flags & InterfacesBrowserFlag) |
126 self.othersBrowserCheckBox.setChecked(flags & OthersBrowserFlag) |
129 self.othersBrowserCheckBox.setChecked(flags & OthersBrowserFlag) |
127 |
130 |
128 @pyqtSlot(int) |
131 @pyqtSlot(int) |
129 def on_projectTypeCombo_activated(self, index): |
132 def on_projectTypeCombo_activated(self, index): |
130 """ |
133 """ |