示例#1
0
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(
                      PlasticLocalization.Name.NewRepositoryTitle));

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.NewRepositoryExplanation));

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.CreateRepositoryDialogDetailedExplanation));

            if (Event.current.type == EventType.Layout)
            {
                mProgressControls.ProgressData.CopyInto(mProgressData);
            }

            GUILayout.Space(5);

            DoEntriesArea();

            GUILayout.Space(10);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            DoButtonsArea();

            mProgressControls.ForcedUpdateProgress(this);
        }
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(
                PlasticLocalization.Name.CheckinComment));

            GUI.SetNextControlName(CHECKIN_TEXTAREA_NAME);

            mComment = GUILayout.TextArea(
                mComment,
                EditorStyles.textArea,
                GUILayout.MinHeight(120));

            if (!mTextAreaFocused)
            {
                EditorGUI.FocusTextInControl(CHECKIN_TEXTAREA_NAME);
                mTextAreaFocused = true;
            }

            Title(PlasticLocalization.GetString(PlasticLocalization.Name.Files));

            DoFileList(
                mWkInfo,
                mPaths,
                mAssetStatusCache,
                mMetaCache);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            DoButtonsArea();

            mProgressControls.ForcedUpdateProgress(this);
        }
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(
                      PlasticLocalization.Name.CheckinMergeRequest));

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.CheckinMergeRequestMessage));

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.CheckinMergeRequestQuestion));

            DoMergeNowArea();

            DoMergeLaterArea();

            GUILayout.Space(10);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            GUILayout.Space(10);

            DoButtonsArea();

            mProgressControls.ForcedUpdateProgress(this);
        }
示例#4
0
        protected override void OnModalGUI()
        {
            Title("Update results");

            Paragraph("Some items were not correctly updated. You may want to check the errors and retry the operation after solving the problems");

            DoListArea(
                mPathsListView,
                mErrorDetailsSplitterState);

            GUILayout.Space(10);

            DoSelectAllArea();

            GUILayout.BeginHorizontal();
            GUILayout.Space(4);
            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);
            GUILayout.Space(4);
            GUILayout.EndHorizontal();

            GUILayout.Space(2);

            DoButtonsArea(mIsAnyLineChecked);

            mProgressControls.ForcedUpdateProgress(this);
        }
示例#5
0
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(PlasticLocalization.Name.UpdateResultsTitle));

            Paragraph(PlasticLocalization.GetString(PlasticLocalization.Name.UpdateResultsError));

            DoListArea(
                mPathsListView,
                mErrorDetailsSplitterState);

            GUILayout.Space(10);

            DoSelectAllArea();

            GUILayout.BeginHorizontal();
            GUILayout.Space(4);
            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);
            GUILayout.Space(4);
            GUILayout.EndHorizontal();

            GUILayout.Space(2);

            DoButtonsArea(mIsAnyLineChecked);

            mProgressControls.ForcedUpdateProgress(this);
        }
示例#6
0
        protected override void OnModalGUI()
        {
            DoTitleArea();

            DoFieldsArea();

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            GUILayout.Space(10);

            DoButtonsArea();
        }
示例#7
0
        protected override void OnModalGUI()
        {
            Title(mTitle);

            GUILayout.Space(10f);

            DoInputArea();

            GUILayout.Space(10f);

            DrawProgressForDialogs.For(mProgressControls.ProgressData);

            GUILayout.Space(10f);

            DoButtonsArea();
        }
示例#8
0
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(
                      PlasticLocalization.Name.EnterRestorePathFormTitle));

            Paragraph(mExplanation);

            DoEntryArea();

            GUILayout.Space(10);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            DoButtonsArea();

            mProgressControls.ForcedUpdateProgress(this);
        }
示例#9
0
        void DoButtonsArea()
        {
            using (new EditorGUILayout.HorizontalScope())
            {
                using (new EditorGUILayout.HorizontalScope(GUILayout.MinWidth(500)))
                {
                    GUILayout.Space(2);
                    DrawProgressForDialogs.For(
                        mProgressControls.ProgressData);
                    GUILayout.Space(2);
                }

                GUILayout.FlexibleSpace();

                DoCreateButton();
                DoCancelButton();
            }
        }
示例#10
0
        void DoContentArea()
        {
            GUILayout.BeginVertical();

            Title("Upgrade your Collaborate project to Plastic SCM");

            GUILayout.Space(20);

            Paragraph("Your Unity project belongs to a Collaborate repository which has been "
                      + "upgraded to Plastic SCM free of charge by your administrator. Your local "
                      + "workspace will now be converted to a Plastic SCM workspace. Select 'Migrate' "
                      + "to start the conversion process. This process may take a few minutes.");

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            GUILayout.Space(10);

            GUILayout.EndVertical();
        }
示例#11
0
        protected override void OnModalGUI()
        {
            Title(PlasticLocalization.GetString(
                      PlasticLocalization.Name.CredentialsDialogTitle));

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.CredentialsDialogExplanation, mServer));

            GUILayout.Space(20);

            DoEntriesArea();

            GUILayout.Space(10);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            GUILayout.Space(10);

            DoButtonsArea();
        }
示例#12
0
        protected override void OnModalGUI()
        {
            Title("Choose repository");

            Paragraph(PlasticLocalization.GetString(
                          PlasticLocalization.Name.SelectRepositoryBelow));

            if (Event.current.type == EventType.Layout)
            {
                mProgressControls.ProgressData.CopyInto(
                    mState.ProgressData);
            }

            bool isEnabled = !mProgressControls.ProgressData.IsWaitingAsyncResult;

            DoToolbarArea(
                mSearchField,
                mRepositoriesListView,
                isEnabled,
                Refresh,
                OnServerSelected,
                ref mState);

            GUILayout.Space(10);

            DoListArea(
                mRepositoriesListView,
                isEnabled);

            DrawProgressForDialogs.For(
                mProgressControls.ProgressData);

            DoButtonsArea();

            mProgressControls.ForcedUpdateProgress(this);
        }