Beispiel #1
0
 public static void CastShowToolWindow(EAlphaToolKind _kind)
 {
     if (ShowToolWindow != null)
     {
         ShowToolWindow(_kind);
     }
 }
Beispiel #2
0
 public static void CastShowToolWindow(EAlphaToolKind _kind)
 {
     if (ShowToolWindow != null)
     {
         ShowToolWindow(_kind);
     }
 }
Beispiel #3
0
 public AlphaToolDescriptor(string _name, EAlphaToolKind _kind, ModifierKeys _modifierKeys, Key _key, Func <FrameworkElement> _generateFunc)
 {
     Key          = _key;
     GenerateFunc = _generateFunc;
     ModifierKeys = _modifierKeys;
     Kind         = _kind;
     Name         = _name;
 }
 public AlphaToolDescriptor(string _name, EAlphaToolKind _kind, ModifierKeys _modifierKeys, Key _key, Func<FrameworkElement> _generateFunc)
 {
     Key = _key;
     GenerateFunc = _generateFunc;
     ModifierKeys = _modifierKeys;
     Kind = _kind;
     Name = _name;
 }
        private void UiManagerOnShowToolWindow(EAlphaToolKind _eAlphaToolKind)
        {
            foreach (var alphaTool in m_manager.DockableContents.OfType <AlphaTool>())
            {
                if (alphaTool.Descriptor.Kind == _eAlphaToolKind)
                {
                    m_manager.ActiveContent = alphaTool;
                    alphaTool.Show(m_manager);
                    return;
                }
            }
            var descriptor = UiManager.GetDescriptor(_eAlphaToolKind);
            var tool       = new AlphaTool(descriptor);

            m_manager.MainDocumentPane.Items.Add(tool);
        }
Beispiel #6
0
 public AlphaToolDescriptor(string _name, EAlphaToolKind _kind, ModifierKeys _modifierKeys, Key _key, Func <FrameworkElement> _generateFunc, bool _allowMultiple) : this(_name, _kind, _modifierKeys, _key, _generateFunc)
 {
     AllowMultiple = _allowMultiple;
 }
Beispiel #7
0
 public static AlphaToolDescriptor GetDescriptor(EAlphaToolKind _eAlphaToolKind)
 {
     return m_toolDescriptors[_eAlphaToolKind];
 }
 public AlphaToolDescriptor(string _name, EAlphaToolKind _kind, ModifierKeys _modifierKeys, Key _key, Func<FrameworkElement> _generateFunc, bool _allowMultiple)
     : this(_name, _kind, _modifierKeys, _key, _generateFunc)
 {
     AllowMultiple = _allowMultiple;
 }
 private void UiManagerOnShowToolWindow(EAlphaToolKind _eAlphaToolKind)
 {
     foreach (var alphaTool in m_manager.DockableContents.OfType<AlphaTool>())
     {
         if (alphaTool.Descriptor.Kind == _eAlphaToolKind)
         {
             m_manager.ActiveContent = alphaTool;
             alphaTool.Show(m_manager);
             return;
         }
     }
     var descriptor = UiManager.GetDescriptor(_eAlphaToolKind);
     var tool = new AlphaTool(descriptor);
     m_manager.MainDocumentPane.Items.Add(tool);
 }
Beispiel #10
0
 public static AlphaToolDescriptor GetDescriptor(EAlphaToolKind _eAlphaToolKind)
 {
     return(m_toolDescriptors[_eAlphaToolKind]);
 }