Esempio n. 1
0
		private void InitContentVbox ()
		{
			vBoxContent = new VBox();

			var menubarWidget = new MenuBarWidget();
			chooseConfigWidget = new ChooseConfigWidget();
			repoTreeViewWidget = new RepoTreeViewWidget();
			syncActionWidget = new SyncActionWidget();
			syncOutputWidget= new SyncOutputWidget();

			vBoxContent.PackStart (menubarWidget, false, false, 0);
			vBoxContent.PackStart (chooseConfigWidget, false, false, 0);
			vBoxContent.PackStart (repoTreeViewWidget, true, true, 0);
			vBoxContent.PackStart (syncActionWidget, false, false, 0);
			vBoxContent.PackStart (syncOutputWidget, true, true, 0);
		}
Esempio n. 2
0
        public MainController(
            ChooseConfigWidget chooseConfig,
            RepoTreeViewWidget repoTreeView,
            SyncActionWidget syncAction,
            SyncOutputWidget syncOutput)
        {
            this.chooseConfigWidget = chooseConfig;
            this.repoTreeViewWidget = repoTreeView;
            this.syncActionWidget   = syncAction;
            this.syncOutputWidget   = syncOutput;

            // Register events
            chooseConfigWidget.OnSyncConfigChangedStarted   += HandleOnSyncConfigChangedStarted;
            repoTreeViewWidget.SingleSelectionChangeStarted += HandleSingleSelectionChangeStarted;
            syncActionWidget.DefaultGitActionForAllStarted  += HandleBtnDefaultGitActionForAllStarted;
            syncActionWidget.ToggleAllReposStarted          += HandleBtnToggleAllReposStarted;
        }
Esempio n. 3
0
        private void InitContentVbox()
        {
            vBoxContent = new VBox();

            var menubarWidget = new MenuBarWidget();

            chooseConfigWidget = new ChooseConfigWidget();
            repoTreeViewWidget = new RepoTreeViewWidget();
            syncActionWidget   = new SyncActionWidget();
            syncOutputWidget   = new SyncOutputWidget();

            vBoxContent.PackStart(menubarWidget, false, false, 0);
            vBoxContent.PackStart(chooseConfigWidget, false, false, 0);
            vBoxContent.PackStart(repoTreeViewWidget, true, true, 0);
            vBoxContent.PackStart(syncActionWidget, false, false, 0);
            vBoxContent.PackStart(syncOutputWidget, true, true, 0);
        }
Esempio n. 4
0
		public MainController (
			ChooseConfigWidget chooseConfig,
			RepoTreeViewWidget repoTreeView,
		 	SyncActionWidget syncAction,
		  	SyncOutputWidget syncOutput)
		{
			this.chooseConfigWidget = chooseConfig;
			this.repoTreeViewWidget = repoTreeView;
			this.syncActionWidget = syncAction;
			this.syncOutputWidget = syncOutput;

			// Register events
			chooseConfigWidget.OnSyncConfigChangedStarted += HandleOnSyncConfigChangedStarted;
			repoTreeViewWidget.SingleSelectionChangeStarted += HandleSingleSelectionChangeStarted;
			syncActionWidget.DefaultGitActionForAllStarted += HandleBtnDefaultGitActionForAllStarted;
			syncActionWidget.ToggleAllReposStarted += HandleBtnToggleAllReposStarted;
		}