Changeset 7404


Ignore:
Timestamp:
11/16/17 13:32:09 (20 months ago)
Author:
rohit_tandon
Message:

"Do not Show Message box for showing section containing the phrase" checkbox added.

Location:
trunk/Obi/Obi
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/Dialogs/Preferences.cs

    r7392 r7404  
    11631163                mSettings.Project_DisplayWarningsForEditOperations = m_CheckBoxListView.Items[22].Checked; 
    11641164                mSettings.Project_ImportNCCFileWithWindows1252Encoding= m_CheckBoxListView.Items[23].Checked; 
     1165                mSettings.Project_DoNotDisplayMessageBoxForShowingSection = m_CheckBoxListView.Items[24].Checked; 
    11651166            } 
    11661167            if (mTab.SelectedTab == mAudioTab) 
     
    13611362                m_CheckBoxListView.Items.Add(Localizer.Message("Project_DisplayWarningsForEditOperations")); 
    13621363                m_CheckBoxListView.Items.Add(Localizer.Message("Project_ImportNCCFileWithWindows1252Encoding")); 
     1364                m_CheckBoxListView.Items.Add(Localizer.Message("Project_DoNotDisplayMessageBoxForShowingSection")); 
    13631365                
    13641366                m_CheckBoxListView.Items[0].Checked = mSettings.Project_OpenLastProject; 
     
    14101412                m_CheckBoxListView.Items[23].Checked = mSettings.Project_ImportNCCFileWithWindows1252Encoding; 
    14111413                m_CheckBoxListView.Items[23].ToolTipText = Localizer.Message("Project_ImportNCCFileWithWindows1252Encoding"); 
     1414                m_CheckBoxListView.Items[24].Checked = mSettings.Project_DoNotDisplayMessageBoxForShowingSection; 
     1415                m_CheckBoxListView.Items[24].ToolTipText = Localizer.Message("Project_DoNotDisplayMessageBoxForShowingSection"); 
    14121416 
    14131417            } 
     
    14991503                mSettings.Project_DisplayWarningsForEditOperations = m_DefaultSettings.Project_DisplayWarningsForEditOperations; 
    15001504                mSettings.Project_ImportNCCFileWithWindows1252Encoding= m_DefaultSettings.Project_ImportNCCFileWithWindows1252Encoding; 
     1505                mSettings.Project_DoNotDisplayMessageBoxForShowingSection = m_DefaultSettings.Project_DoNotDisplayMessageBoxForShowingSection; 
    15011506                InitializeProjectTab(); 
    15021507            } 
     
    21442149                    m_CheckBoxListView.Items[22].Checked = false; 
    21452150                    m_CheckBoxListView.Items[23].Checked = false; 
     2151                    m_CheckBoxListView.Items[24].Checked = false; 
    21462152                    UpdateBoolSettings(); 
    21472153                } 
     
    22132219                    m_CheckBoxListView.Items[22].Checked = false; 
    22142220                    m_CheckBoxListView.Items[23].Checked = false; 
     2221                    m_CheckBoxListView.Items[24].Checked = false; 
    22152222                    UpdateBoolSettings(); 
    22162223                } 
     
    22812288                    m_CheckBoxListView.Items[22].Checked = false; 
    22822289                    m_CheckBoxListView.Items[23].Checked = false; 
     2290                    m_CheckBoxListView.Items[24].Checked = false; 
    22832291                    UpdateBoolSettings(); 
    22842292                } 
     
    23492357                    m_CheckBoxListView.Items[22].Checked = false; 
    23502358                    m_CheckBoxListView.Items[23].Checked = false; 
     2359                    m_CheckBoxListView.Items[24].Checked = false; 
    23512360                    UpdateBoolSettings(); 
    23522361 
     
    24192428                    m_CheckBoxListView.Items[22].Checked = true; 
    24202429                    m_CheckBoxListView.Items[23].Checked = false; 
     2430                    m_CheckBoxListView.Items[24].Checked = false; 
    24212431                    UpdateBoolSettings(); 
    24222432 
     
    24892499                    m_CheckBoxListView.Items[22].Checked = true; 
    24902500                    m_CheckBoxListView.Items[23].Checked = false; 
     2501                    m_CheckBoxListView.Items[24].Checked = false; 
    24912502                    UpdateBoolSettings(); 
    24922503 
     
    25582569                    m_CheckBoxListView.Items[22].Checked = true; 
    25592570                    m_CheckBoxListView.Items[23].Checked = false; 
     2571                    m_CheckBoxListView.Items[24].Checked = false; 
    25602572                    UpdateBoolSettings(); 
    25612573 
  • trunk/Obi/Obi/ProjectView/ContentView.cs

    r7043 r7404  
    48684868                if (!isParentSectionVisible) 
    48694869                    { 
    4870                     if (MessageBox.Show ( Localizer.Message ("SelectPhraseOrSection_ShowSection"), "?", MessageBoxButtons.YesNo, MessageBoxIcon.Question ) == DialogResult.Yes) 
     4870                    if (this.Settings.Project_DoNotDisplayMessageBoxForShowingSection ||  MessageBox.Show ( Localizer.Message ("SelectPhraseOrSection_ShowSection"), "?", MessageBoxButtons.YesNo, MessageBoxIcon.Question ) == DialogResult.Yes) 
    48714871                        { 
    48724872                        CreateStripForSelectedSection ( parentSection, true ); 
  • trunk/Obi/Obi/Settings.cs

    r7347 r7404  
    309309        [OptionalField] 
    310310        public bool Export_EpubCreateMediaOverlays; 
     311 
     312        // for Obi 4.1 beta 
     313        [OptionalField] 
     314        public bool Project_DoNotDisplayMessageBoxForShowingSection; 
    311315 
    312316        protected static void InitializeDefaultSettings(Settings settings) 
     
    452456            settings.Audio_AutoPlayAfterRecordingStops = false; 
    453457            settings.Export_EpubCreateMediaOverlays = false; 
     458            // Obi 4.1 beta 
     459            settings.Project_DoNotDisplayMessageBoxForShowingSection = false; 
    454460        } 
    455461 
  • trunk/Obi/Obi/Settings_SaveProfile.cs

    r7281 r7404  
    128128               newSettings.Project_ShowAdvancePropertiesInPropertiesDialogs = this.Project_ShowAdvancePropertiesInPropertiesDialogs; 
    129129               newSettings.Project_ImportNCCFileWithWindows1252Encoding= this.Project_ImportNCCFileWithWindows1252Encoding; 
     130               newSettings.Project_DoNotDisplayMessageBoxForShowingSection = this.Project_DoNotDisplayMessageBoxForShowingSection; 
    130131               // checks for paths 
    131132               //if ( !string.IsNullOrEmpty(this.Project_DefaultPath) && Directory.Exists (this.Project_DefaultPath )) 
     
    503504               && this.Project_DisplayWarningsForEditOperations ==  settings.Project_DisplayWarningsForEditOperations 
    504505               && this.Project_ShowAdvancePropertiesInPropertiesDialogs == settings.Project_ShowAdvancePropertiesInPropertiesDialogs 
    505                                   && this.Project_ImportNCCFileWithWindows1252Encoding == settings.Project_ImportNCCFileWithWindows1252Encoding) 
     506               && this.Project_ImportNCCFileWithWindows1252Encoding == settings.Project_ImportNCCFileWithWindows1252Encoding 
     507               && this.Project_DoNotDisplayMessageBoxForShowingSection == settings.Project_DoNotDisplayMessageBoxForShowingSection) 
    506508               { 
    507509                   projectPreferencesMatch = true ; 
  • trunk/Obi/Obi/messages.Designer.cs

    r7393 r7404  
    56515651         
    56525652        /// <summary> 
     5653        ///   Looks up a localized string similar to Do not Show Message box for showing section containing the phrase. 
     5654        /// </summary> 
     5655        internal static string Project_DoNotDisplayMessageBoxForShowingSection { 
     5656            get { 
     5657                return ResourceManager.GetString("Project_DoNotDisplayMessageBoxForShowingSection", resourceCulture); 
     5658            } 
     5659        } 
     5660         
     5661        /// <summary> 
    56535662        ///   Looks up a localized string similar to Enable Mouse wheel scrolling. 
    56545663        /// </summary> 
     
    72207229         
    72217230        /// <summary> 
    7222         ///   Looks up a localized string similar to Time Elapsed between Begin and End marks is. 
    7223         /// </summary> 
    7224         internal static string TimeElapsed { 
    7225             get { 
    7226                 return ResourceManager.GetString("TimeElapsed", resourceCulture); 
    7227             } 
    7228         } 
    7229          
    7230         /// <summary> 
    72317231        ///   Looks up a localized string similar to {0}{1} ({2}) - {3} ({4}). 
    72327232        /// </summary> 
  • trunk/Obi/Obi/messages.resx

    r7393 r7404  
    29982998    <value>Empty pages filled in the gaps</value> 
    29992999  </data> 
    3000   <data name="TimeElapsed" xml:space="preserve"> 
    3001     <value>Time Elapsed between Begin and End marks is</value> 
     3000  <data name="Project_DoNotDisplayMessageBoxForShowingSection" xml:space="preserve"> 
     3001    <value>Do not Show Message box for showing section containing the phrase</value> 
    30023002  </data> 
    30033003</root> 
Note: See TracChangeset for help on using the changeset viewer.