コード例 #1
0
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        self.Bind(wx.EVT_BUTTON, self.onPanelMenuButton, self.panelMenuButton)
        self.Bind(wx.EVT_TOGGLEBUTTON, self.onTemplateToggleButton,
                  self.templateToggleButton)
コード例 #2
0
ファイル: dashboard.py プロジェクト: Tidosho/zoundryraven
 def __init__(self, parent):
     ZBoxedView.__init__(self, parent)
     
     actionReg = getApplicationModel().getActionRegistry()
     self.newAccountAction = actionReg.findAction(IZBlogAppActionIDs.NEW_BLOG_ACCOUNT_ACTION)
     self.newStorageAction = actionReg.findAction(IZBlogAppActionIDs.NEW_MEDIA_STORAGE_ACTION)
     self.settingsAction = actionReg.findAction(IZBlogAppActionIDs.SETTINGS_ACTION)
コード例 #3
0
    def __init__(self, parent):
        ZBoxedView.__init__(self, parent)

        actionReg = getApplicationModel().getActionRegistry()
        self.newAccountAction = actionReg.findAction(
            IZBlogAppActionIDs.NEW_BLOG_ACCOUNT_ACTION)
        self.writePostAction = actionReg.findAction(
            IZBlogAppActionIDs.NEW_BLOG_POST_ACTION)
コード例 #4
0
    def __init__(self, parent):
        self.indexEventQueue = Queue()
        self.accountEventQueue = Queue()
        self.model = None

        ZBoxedView.__init__(self, parent)

        self.treeView.refresh()
        self._restoreTreeSelection()
コード例 #5
0
ファイル: navigator.py プロジェクト: Tidosho/zoundryraven
    def __init__(self, parent):
        self.indexEventQueue = Queue()
        self.accountEventQueue = Queue()
        self.model = None

        ZBoxedView.__init__(self, parent)

        self.treeView.refresh()
        self._restoreTreeSelection()
コード例 #6
0
    def __init__(self, parent):
        ZBoxedView.__init__(self, parent)

        actionReg = getApplicationModel().getActionRegistry()
        self.newAccountAction = actionReg.findAction(
            IZBlogAppActionIDs.NEW_BLOG_ACCOUNT_ACTION)
        self.newStorageAction = actionReg.findAction(
            IZBlogAppActionIDs.NEW_MEDIA_STORAGE_ACTION)
        self.settingsAction = actionReg.findAction(
            IZBlogAppActionIDs.SETTINGS_ACTION)
コード例 #7
0
    def __init__(self, parent):
        self.indexService = getApplicationModel().getService(IZBlogAppServiceIDs.DOCUMENT_INDEX_SERVICE_ID)
        self.accountStore = getApplicationModel().getService(IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)
        self.model = ZContextInfoTagsModel(ZTagSearchFilter())

        self.tagCloudsView = None
        self.searchTextBox = None

        ZBoxedView.__init__(self, parent)

        self._registerAsIndexListener()
コード例 #8
0
ファイル: navigator.py プロジェクト: Tidosho/zoundryraven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onSelectionChanged, self.treeView)
        self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, self.onItemRightClick, self.treeView)
        self.Bind(wx.EVT_BUTTON, self.onDashboardButton, self.dashboardButton)
        self.Bind(wx.EVT_BUTTON, self.onCollapseAllButton, self.collapseAllButton)
        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)

        wx.EVT_SET_FOCUS(self.treeView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.treeView, self.onUnFocus)
コード例 #9
0
ファイル: linksview.py プロジェクト: Tidosho/zoundryraven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)
        self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.onLinkActivated, self.linksTreeView)
        self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, self.onLinkRightClick, self.linksTreeView)
        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onLinkSelected, self.linksTreeView)
#        self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.onEntryBeginDrag, self.linksTreeView)
        self.Bind(wx.EVT_TEXT_ENTER, self.onSearchText, self.searchTextBox)
        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        wx.EVT_SET_FOCUS(self.linksTreeView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.linksTreeView, self.onUnFocus)
コード例 #10
0
 def __init__(self, parent):
     ZBoxedView.__init__(self, parent)
     
     self.clearEventTypes = [
         IZViewSelectionTypes.BLOG_POSTS_SELECTION,
         IZViewSelectionTypes.ACCOUNT_SELECTION,
         IZViewSelectionTypes.BLOG_SELECTION,
         IZViewSelectionTypes.BLOG_IMAGES_SELECTION,
         IZViewSelectionTypes.BLOG_LINKS_SELECTION,
         IZViewSelectionTypes.BLOG_TAGS_SELECTION,
         IZViewSelectionTypes.UNPUBLISHED_ACCOUNT_SELECTION,
     ]
コード例 #11
0
    def __init__(self, parent):
        ZBoxedView.__init__(self, parent)

        self.clearEventTypes = [
            IZViewSelectionTypes.BLOG_POSTS_SELECTION,
            IZViewSelectionTypes.ACCOUNT_SELECTION,
            IZViewSelectionTypes.BLOG_SELECTION,
            IZViewSelectionTypes.BLOG_IMAGES_SELECTION,
            IZViewSelectionTypes.BLOG_LINKS_SELECTION,
            IZViewSelectionTypes.BLOG_TAGS_SELECTION,
            IZViewSelectionTypes.UNPUBLISHED_ACCOUNT_SELECTION,
        ]
コード例 #12
0
ファイル: linksview.py プロジェクト: Tidosho/zoundryraven
    def __init__(self, parent):
        self.link = None
        self.blog = None
        self.indexService = getApplicationModel().getService(IZBlogAppServiceIDs.DOCUMENT_INDEX_SERVICE_ID)
        self.accountStore = getApplicationModel().getService(IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)
        self.model = ZContextInfoLinksModel(ZLinkSearchFilter())
        self.openLinkAction = getApplicationModel().getActionRegistry().findAction(IZAppActionIDs.OPEN_LINK_ACTION)

        ZBoxedView.__init__(self, parent)

        self._registerAsIndexListener()

        self.validSelection = False
コード例 #13
0
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onSelectionChanged,
                  self.treeView)
        self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, self.onItemRightClick,
                  self.treeView)
        self.Bind(wx.EVT_BUTTON, self.onDashboardButton, self.dashboardButton)
        self.Bind(wx.EVT_BUTTON, self.onCollapseAllButton,
                  self.collapseAllButton)
        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)

        wx.EVT_SET_FOCUS(self.treeView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.treeView, self.onUnFocus)
コード例 #14
0
ファイル: postsview.py プロジェクト: Tidosho/zoundryraven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.postsAccelTable.bindTo(self.entriesListView)

        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.onEntryActivated, self.entriesListView)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.onEntrySelected, self.entriesListView)
        self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.onEntryBeginDrag, self.entriesListView)
        self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.onEntryRightClick, self.entriesListView)
        self.Bind(wx.EVT_COMBOBOX, self.onViewCombo, self.viewCombo)
        self.Bind(wx.EVT_TEXT_ENTER, self.onSearchText, self.searchTextBox)
        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        wx.EVT_SET_FOCUS(self.entriesListView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.entriesListView, self.onUnFocus)
コード例 #15
0
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)
        self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.onLinkActivated,
                  self.linksTreeView)
        self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, self.onLinkRightClick,
                  self.linksTreeView)
        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onLinkSelected,
                  self.linksTreeView)
        #        self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.onEntryBeginDrag, self.linksTreeView)
        self.Bind(wx.EVT_TEXT_ENTER, self.onSearchText, self.searchTextBox)
        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        wx.EVT_SET_FOCUS(self.linksTreeView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.linksTreeView, self.onUnFocus)
コード例 #16
0
    def __init__(self, parent):
        self.link = None
        self.blog = None
        self.indexService = getApplicationModel().getService(
            IZBlogAppServiceIDs.DOCUMENT_INDEX_SERVICE_ID)
        self.accountStore = getApplicationModel().getService(
            IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)
        self.model = ZContextInfoLinksModel(ZLinkSearchFilter())
        self.openLinkAction = getApplicationModel().getActionRegistry(
        ).findAction(IZAppActionIDs.OPEN_LINK_ACTION)

        ZBoxedView.__init__(self, parent)

        self._registerAsIndexListener()

        self.validSelection = False
コード例 #17
0
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.postsAccelTable.bindTo(self.entriesListView)

        self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.onEntryActivated,
                  self.entriesListView)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.onEntrySelected,
                  self.entriesListView)
        self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.onEntryBeginDrag,
                  self.entriesListView)
        self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.onEntryRightClick,
                  self.entriesListView)
        self.Bind(wx.EVT_COMBOBOX, self.onViewCombo, self.viewCombo)
        self.Bind(wx.EVT_TEXT_ENTER, self.onSearchText, self.searchTextBox)
        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        wx.EVT_SET_FOCUS(self.entriesListView, self.onFocus)
        wx.EVT_KILL_FOCUS(self.entriesListView, self.onUnFocus)
コード例 #18
0
ファイル: postsview.py プロジェクト: Tidosho/zoundryraven
    def __init__(self, parent):
        filter = ZDocumentSearchFilter()
        filter.setAccountIdCriteria(IZDocumentSearchFilter.UNPUBLISHED_ACCOUNT_ID)
        filter.setBlogIdCriteria(IZDocumentSearchFilter.UNPUBLISHED_BLOG_ID)
        self.model = ZContextInfoPostsModel(filter)
        self.openAction = getApplicationModel().getActionRegistry().findAction(IZBlogAppActionIDs.OPEN_BLOG_POST_ACTION)
        self.blogPostContextMenu = ZBlogPostMenuModel()
        self.postsAccelTable = ZBlogPostsListAcceleratorTable(self)
        self.document = None
        self.blog = None
        self.hasFocus = False

        self.indexService = getApplicationModel().getService(IZBlogAppServiceIDs.DOCUMENT_INDEX_SERVICE_ID)
        self.docStore = getApplicationModel().getService(IZBlogAppServiceIDs.DATA_STORE_SERVICE_ID)
        self.accountStore = getApplicationModel().getService(IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)

        ZBoxedView.__init__(self, parent)

        self._registerAsIndexListener()
コード例 #19
0
    def __init__(self, parent):
        filter = ZDocumentSearchFilter()
        filter.setAccountIdCriteria(
            IZDocumentSearchFilter.UNPUBLISHED_ACCOUNT_ID)
        filter.setBlogIdCriteria(IZDocumentSearchFilter.UNPUBLISHED_BLOG_ID)
        self.model = ZContextInfoPostsModel(filter)
        self.openAction = getApplicationModel().getActionRegistry().findAction(
            IZBlogAppActionIDs.OPEN_BLOG_POST_ACTION)
        self.blogPostContextMenu = ZBlogPostMenuModel()
        self.postsAccelTable = ZBlogPostsListAcceleratorTable(self)
        self.document = None
        self.blog = None
        self.hasFocus = False

        self.indexService = getApplicationModel().getService(
            IZBlogAppServiceIDs.DOCUMENT_INDEX_SERVICE_ID)
        self.docStore = getApplicationModel().getService(
            IZBlogAppServiceIDs.DATA_STORE_SERVICE_ID)
        self.accountStore = getApplicationModel().getService(
            IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)

        ZBoxedView.__init__(self, parent)

        self._registerAsIndexListener()
コード例 #20
0
ファイル: summaryview.py プロジェクト: Tidosho/zoundryraven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
        self.Bind(wx.EVT_BUTTON, self.onPanelMenuButton, self.panelMenuButton)
        self.Bind(wx.EVT_TOGGLEBUTTON, self.onTemplateToggleButton, self.templateToggleButton)
コード例 #21
0
ファイル: blogsummary.py プロジェクト: Tidosho/zoundryraven
    def __init__(self, parent):
        self.accountStore = getApplicationModel().getService(IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)
        self.blog = None

        ZBoxedView.__init__(self, parent)
コード例 #22
0
ファイル: summaryview.py プロジェクト: Tidosho/zoundryraven
 def __init__(self, parent):
     ZBoxedView.__init__(self, parent)
コード例 #23
0
 def __init__(self, parent):
     ZBoxedView.__init__(self, parent)
コード例 #24
0
ファイル: welcome.py プロジェクト: Tidosho/zoundryraven
 def __init__(self, parent):
     ZBoxedView.__init__(self, parent)
     
     actionReg = getApplicationModel().getActionRegistry()
     self.newAccountAction = actionReg.findAction(IZBlogAppActionIDs.NEW_BLOG_ACCOUNT_ACTION)
     self.writePostAction = actionReg.findAction(IZBlogAppActionIDs.NEW_BLOG_POST_ACTION)
コード例 #25
0
 def _bindWidgetEvents(self):
     ZBoxedView._bindWidgetEvents(self)
     self.Bind(ZEVT_REFRESH, self.onZoundryRefresh, self)
     self.Bind(wx.EVT_TEXT_ENTER, self.onSearchText, self.searchTextBox)
     self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
コード例 #26
0
ファイル: blogsummary.py プロジェクト: mpm2050/Raven
    def __init__(self, parent):
        self.accountStore = getApplicationModel().getService(
            IZBlogAppServiceIDs.ACCOUNT_STORE_SERVICE_ID)
        self.blog = None

        ZBoxedView.__init__(self, parent)
コード例 #27
0
ファイル: blogsummary.py プロジェクト: mpm2050/Raven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onSelectionChanged)
コード例 #28
0
ファイル: blogsummary.py プロジェクト: Tidosho/zoundryraven
    def _bindWidgetEvents(self):
        ZBoxedView._bindWidgetEvents(self)

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onSelectionChanged)