Exemplo n.º 1
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self._createWidgets()
        self._layoutWidgets()
        self._populateWidgets()
        self._bindWidgetEvents()
Exemplo n.º 2
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self.sashPosition = 0

        self._createWidgets()
        self._layoutWidgets()
        self._bindWidgetEvents()
Exemplo n.º 3
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self._createWidgets()
        self._layoutWidgets()
        self._populateWidgets()
        self._bindWidgetEvents()

        self._registerAsAccountListener()
Exemplo n.º 4
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self._createWidgets()
        self._layoutWidgets()
        self._populateWidgets()
        self._bindWidgetEvents()

        self._registerAsAccountListener()
Exemplo n.º 5
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY, style = wx.NO_FULL_REPAINT_ON_RESIZE | wx.CLIP_CHILDREN)

        self.headerWidgets = []
        self.headerIcon = None
        self.headerLabel = None
        self.headerSizer = None
        self.contentSizer = None

        self._createWidgets()
        self._bindWidgetEvents()
        self._layoutWidgets()
Exemplo n.º 6
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self.currentState = CONTEXT_TYPE_NONE
        self.currentSelection = None

        self.stateMap = {
            CONTEXT_TYPE_NONE : self._showDashboardOrWelcomeView,
            IZViewSelectionTypes.UNPUBLISHED_ACCOUNT_SELECTION : self._showDashboardOrWelcomeView,
            IZViewSelectionTypes.ACCOUNT_SELECTION : self._showAccountSummary,
            IZViewSelectionTypes.BLOG_SELECTION : self._showBlogSummary,
            IZViewSelectionTypes.BLOG_POSTS_SELECTION : self._showPostsView,
            IZViewSelectionTypes.BLOG_TAGS_SELECTION : self._showTagsView,
            IZViewSelectionTypes.BLOG_IMAGES_SELECTION : self._showImagesView,
            IZViewSelectionTypes.BLOG_LINKS_SELECTION : self._showLinksView,
        }

        self._createViews()
        self._layoutViews()
        self.refreshWidgets()

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)
Exemplo n.º 7
0
    def __init__(self, parent):
        ZView.__init__(self, parent, wx.ID_ANY)

        self.currentState = CONTEXT_TYPE_NONE
        self.currentSelection = None

        self.stateMap = {
            CONTEXT_TYPE_NONE: self._showDashboardOrWelcomeView,
            IZViewSelectionTypes.UNPUBLISHED_ACCOUNT_SELECTION:
            self._showDashboardOrWelcomeView,
            IZViewSelectionTypes.ACCOUNT_SELECTION: self._showAccountSummary,
            IZViewSelectionTypes.BLOG_SELECTION: self._showBlogSummary,
            IZViewSelectionTypes.BLOG_POSTS_SELECTION: self._showPostsView,
            IZViewSelectionTypes.BLOG_TAGS_SELECTION: self._showTagsView,
            IZViewSelectionTypes.BLOG_IMAGES_SELECTION: self._showImagesView,
            IZViewSelectionTypes.BLOG_LINKS_SELECTION: self._showLinksView,
        }

        self._createViews()
        self._layoutViews()
        self.refreshWidgets()

        self.Bind(ZEVT_VIEW_SELECTION_CHANGED, self.onViewSelectionChanged)