Changeset 5801


Ignore:
Timestamp:
03/14/14 10:45:14 (6 years ago)
Author:
rohit_tandon
Message:

Commit includes Accessible name,tool tip ,close button, close on the pressing of escape button.

Location:
trunk/Obi/Obi
Files:
7 edited

Legend:

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

    r5795 r5801  
    2929        private void InitializeComponent() 
    3030        { 
     31            this.components = new System.ComponentModel.Container(); 
    3132            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Preferences)); 
    3233            this.label2 = new System.Windows.Forms.Label(); 
     
    107108            this.m_ResetButton = new System.Windows.Forms.Button(); 
    108109            this.helpProvider1 = new System.Windows.Forms.HelpProvider(); 
     110            this.m_Preference_ToolTip = new System.Windows.Forms.ToolTip(this.components); 
    109111            this.mTab.SuspendLayout(); 
    110112            this.mProjectTab.SuspendLayout(); 
     
    852854        private System.Windows.Forms.Label m_lblProfile; 
    853855        private System.Windows.Forms.Button m_btnProfileDiscription; 
     856        private System.Windows.Forms.ToolTip m_Preference_ToolTip; 
    854857    } 
    855858} 
  • trunk/Obi/Obi/Dialogs/Preferences.cs

    r5795 r5801  
    6969            m_SelectLevelComboBox.Items.Add(Localizer.Message("Preferences_Level_ComboBox_Profile_2")); 
    7070            m_SelectLevelComboBox.Items.Add(Localizer.Message("Preferences_Level_ComboBox_Custom")); 
     71            m_Preference_ToolTip.SetToolTip(m_btnProfileDiscription, Localizer.Message("Preferences_AudioProfileDesc"));             
    7172           } 
    7273 
     
    16511652            profileDesc.ProfileSelected = m_SelectLevelComboBox.SelectedIndex; 
    16521653            profileDesc.ShowDialog(); 
     1654            profileDesc.Focus(); 
    16531655        } 
    16541656 
  • trunk/Obi/Obi/Dialogs/Preferences.resx

    r5795 r5801  
    661661    <value>0</value> 
    662662  </data> 
     663  <data name="m_btnProfileDiscription.AccessibleName" xml:space="preserve"> 
     664    <value>Audio Profile Description</value> 
     665  </data> 
    663666  <data name="m_btnProfileDiscription.Font" type="System.Drawing.Font, System.Drawing"> 
    664667    <value>Microsoft Sans Serif, 9.75pt, style=Bold</value> 
     
    21722175    <value>Obi Help.chm</value> 
    21732176  </data> 
     2177  <metadata name="m_Preference_ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     2178    <value>144, 17</value> 
     2179  </metadata> 
    21742180  <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    21752181    <value>True</value> 
     
    24852491    <value>System.Windows.Forms.HelpProvider, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 
    24862492  </data> 
     2493  <data name="&gt;&gt;m_Preference_ToolTip.Name" xml:space="preserve"> 
     2494    <value>m_Preference_ToolTip</value> 
     2495  </data> 
     2496  <data name="&gt;&gt;m_Preference_ToolTip.Type" xml:space="preserve"> 
     2497    <value>System.Windows.Forms.ToolTip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 
     2498  </data> 
    24872499  <data name="&gt;&gt;$this.Name" xml:space="preserve"> 
    24882500    <value>Preferences</value> 
  • trunk/Obi/Obi/Dialogs/ProfileDescription.Designer.cs

    r5795 r5801  
    3030        { 
    3131            this.m_ProfileDescription_WebBrowser = new System.Windows.Forms.WebBrowser(); 
     32            this.m_btnClose = new System.Windows.Forms.Button(); 
    3233            this.SuspendLayout(); 
    3334            //  
    3435            // m_ProfileDescription_WebBrowser 
    3536            //  
    36             this.m_ProfileDescription_WebBrowser.Dock = System.Windows.Forms.DockStyle.Fill; 
    3737            this.m_ProfileDescription_WebBrowser.Location = new System.Drawing.Point(0, 0); 
    3838            this.m_ProfileDescription_WebBrowser.MinimumSize = new System.Drawing.Size(20, 20); 
     
    4040            this.m_ProfileDescription_WebBrowser.Size = new System.Drawing.Size(606, 517); 
    4141            this.m_ProfileDescription_WebBrowser.TabIndex = 0; 
    42            // this.m_ProfileDescription_WebBrowser.Url = new System.Uri(global::Obi.messages_ta.phrase_extra_Plain, System.UriKind.Relative); 
    4342            this.m_ProfileDescription_WebBrowser.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.m_ProfileDescription_WebBrowser_DocumentCompleted); 
     43            //  
     44            // m_btnClose 
     45            //  
     46            this.m_btnClose.AccessibleName = "Close"; 
     47            this.m_btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; 
     48            this.m_btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 
     49            this.m_btnClose.ImeMode = System.Windows.Forms.ImeMode.NoControl; 
     50            this.m_btnClose.Location = new System.Drawing.Point(510, 490); 
     51            this.m_btnClose.Name = "m_btnClose"; 
     52            this.m_btnClose.Size = new System.Drawing.Size(75, 23); 
     53            this.m_btnClose.TabIndex = 3; 
     54            this.m_btnClose.Text = "&Close"; 
     55            this.m_btnClose.UseVisualStyleBackColor = true; 
    4456            //  
    4557            // ProfileDescription 
     
    4759            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 
    4860            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 
     61            this.CancelButton = this.m_btnClose; 
    4962            this.ClientSize = new System.Drawing.Size(606, 517); 
     63            this.Controls.Add(this.m_btnClose); 
    5064            this.Controls.Add(this.m_ProfileDescription_WebBrowser); 
     65            this.MaximizeBox = false; 
     66            this.MinimizeBox = false; 
    5167            this.Name = "ProfileDescription"; 
    5268            this.Text = "Phrase Description"; 
     
    5874 
    5975        private System.Windows.Forms.WebBrowser m_ProfileDescription_WebBrowser; 
     76        private System.Windows.Forms.Button m_btnClose; 
    6077    } 
    6178} 
  • trunk/Obi/Obi/Dialogs/ProfileDescription.cs

    r5795 r5801  
    1515        { 
    1616            InitializeComponent(); 
     17            this.m_ProfileDescription_WebBrowser.Height = this.m_ProfileDescription_WebBrowser.Height - (this.m_btnClose.Height + (this.m_btnClose.Height / 2)); 
    1718 
    1819            m_ProfileDescription_WebBrowser.Url = new System.Uri(System.IO.Path.Combine( 
  • trunk/Obi/Obi/messages.Designer.cs

    r5795 r5801  
    47514751         
    47524752        /// <summary> 
     4753        ///   Looks up a localized string similar to Audio Profile Description. 
     4754        /// </summary> 
     4755        internal static string Preferences_AudioProfileDesc { 
     4756            get { 
     4757                return ResourceManager.GetString("Preferences_AudioProfileDesc", resourceCulture); 
     4758            } 
     4759        } 
     4760         
     4761        /// <summary> 
    47534762        ///   Looks up a localized string similar to Intermediate recording mode. 
    47544763        /// </summary> 
     
    48504859         
    48514860        /// <summary> 
    4852         ///   Looks up a localized string similar to PhraseDesc_en.html. 
     4861        ///   Looks up a localized string similar to ProfileDesc_en.html. 
    48534862        /// </summary> 
    48544863        internal static string ProfileDesc_file_name { 
  • trunk/Obi/Obi/messages.resx

    r5795 r5801  
    26092609  </data> 
    26102610  <data name="ProfileDesc_file_name" xml:space="preserve"> 
    2611     <value>PhraseDesc_en.html</value> 
     2611    <value>ProfileDesc_en.html</value> 
    26122612    <comment>Location of the HTML document for the "Profile Description" dialog</comment> 
    26132613  </data> 
     
    26182618    <value>Profile 2</value> 
    26192619  </data> 
     2620  <data name="Preferences_AudioProfileDesc" xml:space="preserve"> 
     2621    <value>Audio Profile Description</value> 
     2622  </data> 
    26202623</root> 
Note: See TracChangeset for help on using the changeset viewer.