869 """ |
869 """ |
870 Public method to set up the widgets part of the Window menu. |
870 Public method to set up the widgets part of the Window menu. |
871 |
871 |
872 @param windowMenu reference to the window menu |
872 @param windowMenu reference to the window menu |
873 """ |
873 """ |
874 idx = 0 |
874 for idx, wid in enumerate(self.widgets): |
875 for wid in self.widgets: |
|
876 act = windowMenu.addAction(wid.windowTitle()) |
875 act = windowMenu.addAction(wid.windowTitle()) |
877 act.setData(idx) |
876 act.setData(idx) |
878 act.setCheckable(True) |
877 act.setCheckable(True) |
879 act.setChecked(not wid.isHidden()) |
878 act.setChecked(not wid.isHidden()) |
880 idx = idx + 1 |
|
881 |
879 |
882 def toggleSelectedWidget(self, act): |
880 def toggleSelectedWidget(self, act): |
883 """ |
881 """ |
884 Public method to handle the toggle of a window. |
882 Public method to handle the toggle of a window. |
885 |
883 |