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