예제 #1
0
    def _createWindowWidgets(self, parent):
        self.headerPanel = self._createHeaderPanel(parent)
        self.headerStaticLine = wx.StaticLine(parent, wx.ID_ANY)

        self.splitterWindow = ZSplitterWindow(parent)
        self.splitterWindow.SetSizeHints(700, 600)

        self.topPanel = ZTransparentPanel(self.splitterWindow, wx.ID_ANY)
        self.topStaticBox = wx.StaticBox(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Templates")) #$NON-NLS-1$

        provider = ZTemplateListProvider(self.model)
        self.templateList = ZListViewEx(provider, self.topPanel)

        self.addButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Add")) #$NON-NLS-1$
        self.removeButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Remove")) #$NON-NLS-1$
        self.removeButton.Enable(False)

        self.preview = ZHTMLViewControl(self.splitterWindow, wx.ID_ANY, style = wx.NO_FULL_REPAINT_ON_RESIZE | wx.SIMPLE_BORDER)

        self.splitterWindow.SetSashSize(10)
        self.splitterWindow.SplitHorizontally(self.topPanel, self.preview, 150)
        self.splitterWindow.SetMinimumPaneSize(100)

        self.statusBar = self._createStatusBar()
        self.SetStatusBar(self.statusBar)
예제 #2
0
    def _createNonHeaderWidgets(self):
        self.showOnlyCB = wx.CheckBox(
            self, wx.ID_ANY,
            _extstr(u"translationeditor.ShowOnlyUntranslated"))  #$NON-NLS-1$
        self.listProvider = ZStringBundleProvider(self.model)
        self.listBox = ZListViewEx(self.listProvider, self, wx.ID_ANY)
        bitmap = getFlagBitmapForLocale(u"en_US")  #$NON-NLS-1$
        self.englishFlag = ZStaticBitmap(self, bitmap)
        self.englishLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"translationeditor.EnglishValue"))  #$NON-NLS-1$
        bitmap = getFlagBitmapForLocale(
            self.model.getTranslation().getLocale().toString())
        if bitmap is None:
            bitmap = getEmptyFlagBitmap()
        self.translationFlag = ZStaticBitmap(self, bitmap)
        self.translationLabel = wx.StaticText(self, wx.ID_ANY,
                                              self.translationDisplayName)
        self.englishText = wx.TextCtrl(self,
                                       wx.ID_ANY,
                                       style=wx.TE_MULTILINE | wx.TE_READONLY
                                       | wx.TE_BESTWRAP)
        self.translationText = wx.TextCtrl(
            self,
            wx.ID_ANY,
            style=wx.TE_MULTILINE | wx.TE_BESTWRAP | wx.TE_PROCESS_ENTER)

        self.translationText.Enable(False)

        self.staticLine = wx.StaticLine(self, wx.HORIZONTAL)
예제 #3
0
 def _createNonHeaderWidgets(self):
     self.staticBox = wx.StaticBox(
         self, wx.ID_ANY,
         _extstr(u"mediastoragedialog.MediaStorages"))  #$NON-NLS-1$
     provider = ZMediaStorageListContentProvider(self.model)
     self.storageListBox = ZListViewEx(provider, self)
     self.storageListBox.SetSizeHints(-1, 225)
     self.addButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(u"mediastoragedialog.NewStore"))  #$NON-NLS-1$
예제 #4
0
 def createWidgets(self):
     self.warningMsg = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"personaldictprefpage.SpellCheckingMustBeEnabled"
                 ))  #$NON-NLS-1$
     self.warningMsg.SetFont(getDefaultFontBold())
     self.staticBox = wx.StaticBox(self, wx.ID_ANY)
     provider = ZPersonalDictionaryContentProvider(self.model)
     self.personalDictionaryListView = ZListViewEx(provider, self)
     self.addButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(u"personaldictprefpage.Add"))  #$NON-NLS-1$
     self.removeButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(u"personaldictprefpage.Remove"))  #$NON-NLS-1$
     self.clearButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(u"personaldictprefpage.Clear"))  #$NON-NLS-1$
예제 #5
0
    def _createWindowWidgets(self, parent):
        self.headerPanel = self._createHeaderPanel(parent)
        self.headerStaticLine = wx.StaticLine(parent, wx.ID_ANY)

        self.bodyPanel = wx.Panel(parent, wx.ID_ANY)

        self.staticBox = wx.StaticBox(
            self.bodyPanel, wx.ID_ANY,
            _extstr(u"translationmanager.Translations"))  #$NON-NLS-1$

        self.translationProvider = ZTranslationListProvider(self.model)
        self.translationList = ZListViewEx(self.translationProvider,
                                           self.bodyPanel)
        self.translationList.SetMinSize(wx.Size(300, 200))

        self.newButton = wx.Button(
            self.bodyPanel, wx.ID_ANY,
            _extstr(u"translationmanager.New"))  #$NON-NLS-1$
        self.editButton = wx.Button(
            self.bodyPanel, wx.ID_ANY,
            _extstr(u"translationmanager.Edit"))  #$NON-NLS-1$
        self.editButton.Enable(False)

        self.staticLine = wx.StaticLine(self.bodyPanel, wx.ID_ANY)
예제 #6
0
 def _createWidgets(self):
     style = wx.LC_VIRTUAL | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_HRULES | wx.NO_BORDER
     self.linkListView = ZListViewEx(self.linkContentProvider,
                                     self,
                                     style=style)
예제 #7
0
 def _createWidgets(self):
     self.blogListProvider = ZBlogListProvider()
     self.blogListView = ZListViewEx(self.blogListProvider, self)
예제 #8
0
 def _createNonHeaderWidgets(self):
     self.provider = ZValidationReportListViewContentProvider(self.reporter)
     self.reportListView = ZListViewEx(self.provider, self)
     self.staticBox = wx.StaticBox(self, wx.ID_ANY,
                                   u"Validation Messages")  #$NON-NLS-1$
예제 #9
0
 def _createContentWidgets(self, parent):
     provider = ZBlogEntryListContentProvider(self.model)
     style = wx.LC_VIRTUAL | wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.NO_BORDER
     self.entriesListView = ZListViewEx(provider, parent, style=style)
     self.entriesListView.SetAcceleratorTable(self.postsAccelTable)
예제 #10
0
 def _createWidgets(self):
     self.folderListProvider = ZFolderListProvider()
     self.folderListView = ZListViewEx(self.folderListProvider, self)
예제 #11
0
 def _createWidgets(self):
     self.listView = ZListViewEx(self.provider, self)
     self.staticBox = wx.StaticBox(self, wx.ID_ANY, u"Validation Messages") #$NON-NLS-1$
예제 #12
0
 def _createWidgets(self):
     self.accountListProvider = ZAccountListProvider()
     self.accountListView = ZListViewEx(self.accountListProvider, self)
예제 #13
0
파일: manager.py 프로젝트: mpm2050/Raven
 def _createProfilesListControl(self):
     # Now create the list control.
     provider = ZProfileListContentProvider(self.model)
     return ZListViewEx(provider, self.panel, style = wx.LC_VIRTUAL | wx.LC_REPORT | wx.LC_HRULES | wx.LC_SINGLE_SEL)