Exemplo n.º 1
0
        public void SetAction(Component comp, FreeCL.UI.Actions.Action value)
        {
            Debug.Assert(comp != null && value != null);

            if (inInit)
            {
                componentsForInit[comp] = value;
                return;
            }

            Action res = null;

            if (_components.TryGetValue(comp, out res))
            {
                if (value == res)
                {
                    return;
                }
                res.SetComponent(comp, false);
                _components.Remove(comp);
            }

            if (value != Actions.Null)
            {
                value._owner = this;
                value.SetComponent(comp, true);
                _components.Add(comp, value);
            }
        }
Exemplo n.º 2
0
 public ToolStripItem AddMenuItem(ToolStripMenuItem owner, int index, FreeCL.UI.Actions.Action action, bool separator)
 {
     if (action != null)
     {
         return(AddMenuItem(owner, (int)index, action, separator, action.Text));
     }
     else
     {
         return(AddMenuItem(owner, (int)index, action, separator, ""));
     }
 }
Exemplo n.º 3
0
        public ToolStripItem GetMenuItem(ToolStripMenuItem owner, int index, FreeCL.UI.Actions.Action action, bool separator)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            foreach (ToolStripItem mi in owner.DropDownItems)
            {
                if (mi.MergeIndex == index && ((separator && mi is ToolStripSeparator) || action.Parent.GetAction(mi) == action))
                {
                    return(mi);
                }
            }
            return(null);
        }
Exemplo n.º 4
0
        public ToolStripItem AddMenuItem(ToolStripMenuItem owner, int index, FreeCL.UI.Actions.Action action, bool separator, string caption)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            ToolStripItem newmi = new ToolStripMenuItem();

            if (action != null)
            {
                action.Parent.SetAction(newmi, action);
            }
            else if (separator)
            {
                newmi = new ToolStripSeparator();
            }
            else
            {
                newmi.Text = caption;
            }

            newmi.MergeIndex  = index;
            newmi.MergeAction = MergeAction.Insert;

            if (index < owner.DropDownItems.Count && index >= 0)
            {
                owner.DropDownItems.Insert(index, newmi);
            }
            else
            {
                owner.DropDownItems.Add(newmi);
            }

            SortItems(owner.DropDownItems);

            return(newmi);
        }
Exemplo n.º 5
0
        public TranslateMainForm()
        {
            InitializeComponent();

            newToolStripButton.Visible = false;
            openToolStripButton.Visible = false;
            saveToolStripButton.Visible = false;
            printToolStripButton.Visible = false;
            tsEditSep1.Visible = false;
            tsEditSep4.Visible = false;
            helpToolStripButton.Visible = false;
            al.SetAction(languageSelector.sbInvert, aInvertTranslationDirection);
            languageSelector.sbInvert.MouseLeave += sbInvertMouseLeave;
            RegisterLanguageEvent(OnLanguageChanged);

            if(TranslateOptions.Instance.MainFormSize.Height == 0 ||
                TranslateOptions.Instance.MainFormLocation.X <= 0 ||
                TranslateOptions.Instance.MainFormLocation.Y <= 0
                )
            { //reposition
                System.Drawing.Rectangle workingRectangle = Screen.PrimaryScreen.WorkingArea;

                Location = new Point(workingRectangle.Width - DesktopBounds.Width, 30);
            }
            else
            {
                Size = TranslateOptions.Instance.MainFormSize;
                Location = TranslateOptions.Instance.MainFormLocation;
                TranslateOptions.Instance.MainFormSize = Size;
                TranslateOptions.Instance.MainFormLocation = Location;

                if(TranslateOptions.Instance.MainFormMaximized)
                    WindowState = FormWindowState.Maximized;
            }

            if(TranslateOptions.Instance.LanguageSelectorWidth != 0)
            {
                pRight.Width = TranslateOptions.Instance.LanguageSelectorWidth;
            }

            if(TranslateOptions.Instance.HistoryHeight != 0)
            {
                languageSelector.pBottom.Height = TranslateOptions.Instance.HistoryHeight;
            }

            if(TranslateOptions.Instance.SourceHeight != 0)
            {
                tbFrom.Height = TranslateOptions.Instance.SourceHeight;
            }

            tbFrom.Font = TranslateOptions.Instance.FontsOptions.TextControlFontProp;

            pLeft.Enabled = false;
            pLeft.Visible = false;
            splitterLeft.Enabled = false;
            splitterLeft.Visible = false;

            pTop.Enabled = false;
            pTop.Visible = false;
            splitterTop.Enabled = false;
            splitterTop.Visible = false;

            pBottom.Enabled = false;
            pBottom.Visible = false;
            splitterBottom.Enabled = false;
            splitterBottom.Visible = false;

            PlaceResultViewVertical(TranslateOptions.Instance.ResultWindowOptions.DockAtTop);
            PlaceResultViewHorizontal(TranslateOptions.Instance.ResultWindowOptions.DockAtLeft);
            ApplyToolbarsOptions();

            aTranslate.Shortcut = Keys.Control | Keys.Enter;
            aSearchInGoogle.Shortcut = Keys.Control | Keys.Shift | Keys.Enter;
            miFile.DropDownItems.Remove(miTranslate);
            miFile.DropDownItems.Insert(0, miTranslate);

            miHelp.DropDownItems.Remove(miCheckUpdates);
            miHelp.DropDownItems.Insert(0, miCheckUpdates);

            miHelp.DropDownItems.Remove(miHelpSeparator1);
            miHelp.DropDownItems.Insert(1, miHelpSeparator1);

            miHelp.DropDownItems.Remove(miHelpSeparator2);
            miHelp.DropDownItems.Insert(0, miHelpSeparator2);

            bool visibleDonate = !(FreeCL.RTL.LangPack.CurrentLanguage == "Russian" || FreeCL.RTL.LangPack.CurrentLanguage == "Ukrainian");
            if(visibleDonate)
            {
                miHelp.DropDownItems.Remove(miDonate);
                miHelp.DropDownItems.Insert(0, miDonate);
            }

            miHelp.DropDownItems.Remove(miFeedback);
            miHelp.DropDownItems.Insert(0, miFeedback);

            miHelp.DropDownItems.Remove(miWebsite);
            miHelp.DropDownItems.Insert(0, miWebsite);

            miHelp.DropDownItems.Remove(miOnlineHelp);
            miHelp.DropDownItems.Insert(0, miOnlineHelp);

            msMain.Items.Remove(miView);
            msMain.Items.Insert(2, miView);

            msMain.Items.Remove(miProfiles);
            msMain.Items.Insert(3, miProfiles);

            aScrollResultPageDown.Shortcut = Keys.Control | Keys.PageDown;
            aScrollResultPageUp.Shortcut = Keys.Control | Keys.PageUp;

            for(int i = 1; i < 10; i++)
            {
                FreeCL.UI.Actions.Action action = new FreeCL.UI.Actions.Action();
                action.Shortcut = Keys.Control | (Keys)Enum.Parse(typeof(Keys), "D" + i.ToString());
                action.Execute += ProfileSwitchOnCtrl1Execute;
                profileSwitchOnCtrl1Actions.Add(action);
                al.Actions.Add(action);
            }

            UpdateTbFromStat();
            UpdateProfiles();
            UpdateDetectionStatus();

            miAnimatedIcon.ToolTipText = aWebsite.Text;
        }
Exemplo n.º 6
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.aEditSelectAll = new FreeCL.UI.Actions.Action(this.components);
            this.aEditDelete = new FreeCL.UI.Actions.Action(this.components);
            this.miEditCut = new System.Windows.Forms.ToolStripMenuItem();
            this.aEditUndo = new FreeCL.UI.Actions.Action(this.components);
            this.aEditPaste = new FreeCL.UI.Actions.Action(this.components);
            this.miEdit = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditUndo = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditRedo = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditSep11 = new System.Windows.Forms.ToolStripSeparator();
            this.miEditCopy = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditPaste = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditDel = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditSep2 = new System.Windows.Forms.ToolStripSeparator();
            this.miEditSelectAll = new System.Windows.Forms.ToolStripMenuItem();
            this.miFile = new System.Windows.Forms.ToolStripMenuItem();
            this.miFileSep1 = new System.Windows.Forms.ToolStripSeparator();
            this.miExit = new System.Windows.Forms.ToolStripMenuItem();
            this.aExit = new FreeCL.UI.Actions.Action(this.components);
            this.aEditRedo = new FreeCL.UI.Actions.Action(this.components);
            this.aEditCopy = new FreeCL.UI.Actions.Action(this.components);
            this.aEditCut = new FreeCL.UI.Actions.Action(this.components);
            this.miHelp = new System.Windows.Forms.ToolStripMenuItem();
            this.miAbout = new System.Windows.Forms.ToolStripMenuItem();
            this.ptEdit = new System.Windows.Forms.ToolStrip();
            this.newToolStripButton = new System.Windows.Forms.ToolStripButton();
            this.openToolStripButton = new System.Windows.Forms.ToolStripButton();
            this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();
            this.printToolStripButton = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep1 = new System.Windows.Forms.ToolStripSeparator();
            this.sbSelectAll = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep2 = new System.Windows.Forms.ToolStripSeparator();
            this.sbCut = new System.Windows.Forms.ToolStripButton();
            this.sbCopy = new System.Windows.Forms.ToolStripButton();
            this.sbPaste = new System.Windows.Forms.ToolStripButton();
            this.sbDelete = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep3 = new System.Windows.Forms.ToolStripSeparator();
            this.sbUndo = new System.Windows.Forms.ToolStripButton();
            this.sbRedo = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep4 = new System.Windows.Forms.ToolStripSeparator();
            this.helpToolStripButton = new System.Windows.Forms.ToolStripButton();
            this.aAbout = new FreeCL.UI.Actions.Action(this.components);
            this.miService = new System.Windows.Forms.ToolStripMenuItem();
            this.miOptionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aOptions = new FreeCL.UI.Actions.Action(this.components);
            this.msMain.SuspendLayout();
            this.pToolBars.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.al)).BeginInit();
            this.ptEdit.SuspendLayout();
            this.SuspendLayout();

            this.il.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
            //
            // sbMain
            //
            this.sbMain.Size = new System.Drawing.Size(484, 22);
            //
            // msMain
            //
            this.msMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.miFile,
                                    this.miEdit,
                                    this.miService,
                                    this.miHelp});
            this.msMain.Size = new System.Drawing.Size(484, 24);
            //
            // pToolBars
            //
            this.pToolBars.Controls.Add(this.ptEdit);
            this.pToolBars.Size = new System.Drawing.Size(484, 25);
            //
            // il
            //
            this.il.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("il.ImageStream")));
            this.il.Images.SetKeyName(0, "");
            this.il.Images.SetKeyName(1, "");
            this.il.Images.SetKeyName(2, "");
            this.il.Images.SetKeyName(3, "");
            this.il.Images.SetKeyName(4, "");
            this.il.Images.SetKeyName(5, "");
            this.il.Images.SetKeyName(6, "Icons.16x16.SelectAlllIcon.png");
            this.il.Images.SetKeyName(7, "");
            this.il.Images.SetKeyName(8, "");
            this.il.Images.SetKeyName(9, "");
            this.il.Images.SetKeyName(10, "");
            this.il.Images.SetKeyName(11, "");
            //
            // al
            //
            this.al.Actions.Add(this.aExit);
            this.al.Actions.Add(this.aEditUndo);
            this.al.Actions.Add(this.aEditRedo);
            this.al.Actions.Add(this.aEditCut);
            this.al.Actions.Add(this.aEditCopy);
            this.al.Actions.Add(this.aEditPaste);
            this.al.Actions.Add(this.aEditDelete);
            this.al.Actions.Add(this.aEditSelectAll);
            this.al.Actions.Add(this.aAbout);
            this.al.Actions.Add(this.aOptions);
            //
            // aEditSelectAll
            //
            this.aEditSelectAll.Checked = false;
            this.aEditSelectAll.Enabled = true;
            this.aEditSelectAll.Hint = "Select all";
            this.aEditSelectAll.ImageIndex = 6;
            this.aEditSelectAll.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
            this.aEditSelectAll.Tag = null;
            this.aEditSelectAll.Text = "&Select All";
            this.aEditSelectAll.Visible = true;
            this.aEditSelectAll.Execute += new System.EventHandler(this.AEditSelectAllExecute);
            this.aEditSelectAll.Update += new System.EventHandler(this.AEditSelectAllUpdate);
            //
            // aEditDelete
            //
            this.aEditDelete.Checked = false;
            this.aEditDelete.Enabled = true;
            this.aEditDelete.Hint = "Delete selection";
            this.aEditDelete.ImageIndex = 2;
            this.aEditDelete.Shortcut = System.Windows.Forms.Keys.Delete;
            this.aEditDelete.Tag = null;
            this.aEditDelete.Text = "&Delete";
            this.aEditDelete.Visible = true;
            this.aEditDelete.Execute += new System.EventHandler(this.AEditDeleteExecute);
            this.aEditDelete.Update += new System.EventHandler(this.AEditDeleteUpdate);
            //
            // miEditCut
            //
            this.al.SetAction(this.miEditCut, this.aEditCut);
            this.miEditCut.Image = ((System.Drawing.Image)(resources.GetObject("miEditCut.Image")));
            this.miEditCut.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditCut.MergeIndex = 3;
            this.miEditCut.Name = "miEditCut";
            this.miEditCut.ShortcutKeyDisplayString = "Ctrl+X";
            this.miEditCut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
            this.miEditCut.Size = new System.Drawing.Size(167, 22);
            this.miEditCut.Text = "Cu&t";
            this.miEditCut.ToolTipText = "Cut selection to clipboard";
            //
            // aEditUndo
            //
            this.aEditUndo.Checked = false;
            this.aEditUndo.Enabled = true;
            this.aEditUndo.Hint = "Undo last operation";
            this.aEditUndo.ImageIndex = 5;
            this.aEditUndo.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
            this.aEditUndo.Tag = null;
            this.aEditUndo.Text = "&Undo";
            this.aEditUndo.Visible = true;
            this.aEditUndo.Execute += new System.EventHandler(this.AEditUndoExecute);
            this.aEditUndo.Update += new System.EventHandler(this.AEditUndoUpdate);
            //
            // aEditPaste
            //
            this.aEditPaste.Checked = false;
            this.aEditPaste.Enabled = true;
            this.aEditPaste.Hint = "Paste from clipboard";
            this.aEditPaste.ImageIndex = 3;
            this.aEditPaste.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            this.aEditPaste.Tag = null;
            this.aEditPaste.Text = "&Paste";
            this.aEditPaste.Visible = true;
            this.aEditPaste.Execute += new System.EventHandler(this.AEditPasteExecute);
            this.aEditPaste.Update += new System.EventHandler(this.AEditPasteUpdate);
            //
            // miEdit
            //
            this.miEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.miEditUndo,
                                    this.miEditRedo,
                                    this.miEditSep11,
                                    this.miEditCut,
                                    this.miEditCopy,
                                    this.miEditPaste,
                                    this.miEditDel,
                                    this.miEditSep2,
                                    this.miEditSelectAll});
            this.miEdit.MergeIndex = 1;
            this.miEdit.Name = "miEdit";
            this.miEdit.Size = new System.Drawing.Size(37, 20);
            this.miEdit.Text = "&Edit";
            //
            // miEditUndo
            //
            this.al.SetAction(this.miEditUndo, this.aEditUndo);
            this.miEditUndo.Image = ((System.Drawing.Image)(resources.GetObject("miEditUndo.Image")));
            this.miEditUndo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditUndo.MergeIndex = 0;
            this.miEditUndo.Name = "miEditUndo";
            this.miEditUndo.ShortcutKeyDisplayString = "Ctrl+Z";
            this.miEditUndo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
            this.miEditUndo.Size = new System.Drawing.Size(167, 22);
            this.miEditUndo.Text = "&Undo";
            this.miEditUndo.ToolTipText = "Undo last operation";
            //
            // miEditRedo
            //
            this.al.SetAction(this.miEditRedo, this.aEditRedo);
            this.miEditRedo.Image = ((System.Drawing.Image)(resources.GetObject("miEditRedo.Image")));
            this.miEditRedo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditRedo.MergeIndex = 1;
            this.miEditRedo.Name = "miEditRedo";
            this.miEditRedo.ShortcutKeyDisplayString = "Ctrl+Y";
            this.miEditRedo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
            this.miEditRedo.Size = new System.Drawing.Size(167, 22);
            this.miEditRedo.Text = "&Redo";
            this.miEditRedo.ToolTipText = "Redo last operation";
            //
            // miEditSep11
            //
            this.miEditSep11.Name = "miEditSep11";
            this.miEditSep11.Size = new System.Drawing.Size(164, 6);
            //
            // miEditCopy
            //
            this.al.SetAction(this.miEditCopy, this.aEditCopy);
            this.miEditCopy.Image = ((System.Drawing.Image)(resources.GetObject("miEditCopy.Image")));
            this.miEditCopy.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditCopy.MergeIndex = 4;
            this.miEditCopy.Name = "miEditCopy";
            this.miEditCopy.ShortcutKeyDisplayString = "Ctrl+C";
            this.miEditCopy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            this.miEditCopy.Size = new System.Drawing.Size(167, 22);
            this.miEditCopy.Text = "&Copy";
            this.miEditCopy.ToolTipText = "Copy selection to clipboard";
            //
            // miEditPaste
            //
            this.al.SetAction(this.miEditPaste, this.aEditPaste);
            this.miEditPaste.Image = ((System.Drawing.Image)(resources.GetObject("miEditPaste.Image")));
            this.miEditPaste.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditPaste.MergeIndex = 5;
            this.miEditPaste.Name = "miEditPaste";
            this.miEditPaste.ShortcutKeyDisplayString = "Ctrl+V";
            this.miEditPaste.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            this.miEditPaste.Size = new System.Drawing.Size(167, 22);
            this.miEditPaste.Text = "&Paste";
            this.miEditPaste.ToolTipText = "Paste from clipboard";
            //
            // miEditDel
            //
            this.al.SetAction(this.miEditDel, this.aEditDelete);
            this.miEditDel.Image = ((System.Drawing.Image)(resources.GetObject("miEditDel.Image")));
            this.miEditDel.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditDel.MergeIndex = 6;
            this.miEditDel.Name = "miEditDel";
            this.miEditDel.ShortcutKeyDisplayString = "Del";
            this.miEditDel.ShortcutKeys = System.Windows.Forms.Keys.Delete;
            this.miEditDel.Size = new System.Drawing.Size(167, 22);
            this.miEditDel.Text = "&Delete";
            this.miEditDel.ToolTipText = "Delete selection";
            //
            // miEditSep2
            //
            this.miEditSep2.Name = "miEditSep2";
            this.miEditSep2.Size = new System.Drawing.Size(164, 6);
            //
            // miEditSelectAll
            //
            this.al.SetAction(this.miEditSelectAll, this.aEditSelectAll);
            this.miEditSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("miEditSelectAll.Image")));
            this.miEditSelectAll.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditSelectAll.MergeIndex = 8;
            this.miEditSelectAll.Name = "miEditSelectAll";
            this.miEditSelectAll.ShortcutKeyDisplayString = "Ctrl+A";
            this.miEditSelectAll.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
            this.miEditSelectAll.Size = new System.Drawing.Size(167, 22);
            this.miEditSelectAll.Text = "&Select All";
            this.miEditSelectAll.ToolTipText = "Select all";
            //
            // miFile
            //
            this.miFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.miFileSep1,
                                    this.miExit});
            this.miFile.MergeIndex = 0;
            this.miFile.Name = "miFile";
            this.miFile.Size = new System.Drawing.Size(35, 20);
            this.miFile.Text = "&File";
            //
            // miFileSep1
            //
            this.miFileSep1.Name = "miFileSep1";
            this.miFileSep1.Size = new System.Drawing.Size(149, 6);
            //
            // miExit
            //
            this.al.SetAction(this.miExit, this.aExit);
            this.miExit.Image = ((System.Drawing.Image)(resources.GetObject("miExit.Image")));
            this.miExit.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miExit.MergeIndex = 1;
            this.miExit.Name = "miExit";
            this.miExit.ShortcutKeyDisplayString = "Alt+F4";
            this.miExit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.miExit.Size = new System.Drawing.Size(152, 22);
            this.miExit.Text = "E&xit";
            this.miExit.ToolTipText = "Exit from application";
            //
            // aExit
            //
            this.aExit.Checked = false;
            this.aExit.Enabled = true;
            this.aExit.Hint = "Exit from application";
            this.aExit.ImageIndex = 2;
            this.aExit.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.aExit.Tag = null;
            this.aExit.Text = "E&xit";
            this.aExit.Visible = true;
            this.aExit.Execute += new System.EventHandler(this.AExitExecute);
            //
            // aEditRedo
            //
            this.aEditRedo.Checked = false;
            this.aEditRedo.Enabled = true;
            this.aEditRedo.Hint = "Redo last operation";
            this.aEditRedo.ImageIndex = 4;
            this.aEditRedo.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
            this.aEditRedo.Tag = null;
            this.aEditRedo.Text = "&Redo";
            this.aEditRedo.Visible = true;
            this.aEditRedo.Execute += new System.EventHandler(this.AEditRedoExecute);
            this.aEditRedo.Update += new System.EventHandler(this.AEditRedoUpdate);
            //
            // aEditCopy
            //
            this.aEditCopy.Checked = false;
            this.aEditCopy.Enabled = true;
            this.aEditCopy.Hint = "Copy selection to clipboard";
            this.aEditCopy.ImageIndex = 0;
            this.aEditCopy.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            this.aEditCopy.Tag = null;
            this.aEditCopy.Text = "&Copy";
            this.aEditCopy.Visible = true;
            this.aEditCopy.Execute += new System.EventHandler(this.AEditCopyExecute);
            this.aEditCopy.Update += new System.EventHandler(this.AEditCopyUpdate);
            //
            // aEditCut
            //
            this.aEditCut.Checked = false;
            this.aEditCut.Enabled = true;
            this.aEditCut.Hint = "Cut selection to clipboard";
            this.aEditCut.ImageIndex = 1;
            this.aEditCut.Shortcut = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
            this.aEditCut.Tag = null;
            this.aEditCut.Text = "Cu&t";
            this.aEditCut.Visible = true;
            this.aEditCut.Execute += new System.EventHandler(this.AEditCutExecute);
            this.aEditCut.Update += new System.EventHandler(this.AEditCutUpdate);
            //
            // miHelp
            //
            this.miHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.miAbout});
            this.miHelp.MergeIndex = 1000;
            this.miHelp.Name = "miHelp";
            this.miHelp.Size = new System.Drawing.Size(40, 20);
            this.miHelp.Text = "Help";
            //
            // miAbout
            //
            this.al.SetAction(this.miAbout, this.aAbout);
            this.miAbout.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miAbout.MergeIndex = 1000;
            this.miAbout.Name = "miAbout";
            this.miAbout.Size = new System.Drawing.Size(114, 22);
            this.miAbout.Text = "About";
            //
            // ptEdit
            //
            this.ptEdit.Dock = System.Windows.Forms.DockStyle.None;
            this.ptEdit.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.newToolStripButton,
                                    this.openToolStripButton,
                                    this.saveToolStripButton,
                                    this.printToolStripButton,
                                    this.tsEditSep1,
                                    this.sbSelectAll,
                                    this.tsEditSep2,
                                    this.sbCut,
                                    this.sbCopy,
                                    this.sbPaste,
                                    this.sbDelete,
                                    this.tsEditSep3,
                                    this.sbUndo,
                                    this.sbRedo,
                                    this.tsEditSep4,
                                    this.helpToolStripButton});
            this.ptEdit.Location = new System.Drawing.Point(3, 0);
            this.ptEdit.Name = "ptEdit";
            this.ptEdit.Size = new System.Drawing.Size(312, 25);
            this.ptEdit.TabIndex = 7;
            this.ptEdit.Text = "toolStrip1";
            //
            // newToolStripButton
            //
            this.newToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image")));
            this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.newToolStripButton.Name = "newToolStripButton";
            this.newToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.newToolStripButton.Text = "&New";
            //
            // openToolStripButton
            //
            this.openToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image")));
            this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.openToolStripButton.Name = "openToolStripButton";
            this.openToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.openToolStripButton.Text = "&Open";
            //
            // saveToolStripButton
            //
            this.saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image")));
            this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.saveToolStripButton.Name = "saveToolStripButton";
            this.saveToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.saveToolStripButton.Text = "&Save";
            //
            // printToolStripButton
            //
            this.printToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image")));
            this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.printToolStripButton.Name = "printToolStripButton";
            this.printToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.printToolStripButton.Text = "&Print";
            //
            // tsEditSep1
            //
            this.tsEditSep1.Name = "tsEditSep1";
            this.tsEditSep1.Size = new System.Drawing.Size(6, 25);
            //
            // sbSelectAll
            //
            this.al.SetAction(this.sbSelectAll, this.aEditSelectAll);
            this.sbSelectAll.AutoToolTip = false;
            this.sbSelectAll.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("sbSelectAll.Image")));
            this.sbSelectAll.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbSelectAll.Name = "sbSelectAll";
            this.sbSelectAll.Size = new System.Drawing.Size(23, 22);
            this.sbSelectAll.Text = "&Select All";
            this.sbSelectAll.ToolTipText = "Select all";
            //
            // tsEditSep2
            //
            this.tsEditSep2.Name = "tsEditSep2";
            this.tsEditSep2.Size = new System.Drawing.Size(6, 25);
            //
            // sbCut
            //
            this.al.SetAction(this.sbCut, this.aEditCut);
            this.sbCut.AutoToolTip = false;
            this.sbCut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbCut.Image = ((System.Drawing.Image)(resources.GetObject("sbCut.Image")));
            this.sbCut.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbCut.Name = "sbCut";
            this.sbCut.Size = new System.Drawing.Size(23, 22);
            this.sbCut.Text = "Cu&t";
            this.sbCut.ToolTipText = "Cut selection to clipboard";
            //
            // sbCopy
            //
            this.al.SetAction(this.sbCopy, this.aEditCopy);
            this.sbCopy.AutoToolTip = false;
            this.sbCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbCopy.Image = ((System.Drawing.Image)(resources.GetObject("sbCopy.Image")));
            this.sbCopy.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbCopy.Name = "sbCopy";
            this.sbCopy.Size = new System.Drawing.Size(23, 22);
            this.sbCopy.Text = "&Copy";
            this.sbCopy.ToolTipText = "Copy selection to clipboard";
            //
            // sbPaste
            //
            this.al.SetAction(this.sbPaste, this.aEditPaste);
            this.sbPaste.AutoToolTip = false;
            this.sbPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbPaste.Image = ((System.Drawing.Image)(resources.GetObject("sbPaste.Image")));
            this.sbPaste.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbPaste.Name = "sbPaste";
            this.sbPaste.Size = new System.Drawing.Size(23, 22);
            this.sbPaste.Text = "&Paste";
            this.sbPaste.ToolTipText = "Paste from clipboard";
            //
            // sbDelete
            //
            this.al.SetAction(this.sbDelete, this.aEditDelete);
            this.sbDelete.AutoToolTip = false;
            this.sbDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbDelete.Image = ((System.Drawing.Image)(resources.GetObject("sbDelete.Image")));
            this.sbDelete.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbDelete.Name = "sbDelete";
            this.sbDelete.Size = new System.Drawing.Size(23, 22);
            this.sbDelete.Text = "&Delete";
            this.sbDelete.ToolTipText = "Delete selection";
            //
            // tsEditSep3
            //
            this.tsEditSep3.Name = "tsEditSep3";
            this.tsEditSep3.Size = new System.Drawing.Size(6, 25);
            //
            // sbUndo
            //
            this.al.SetAction(this.sbUndo, this.aEditUndo);
            this.sbUndo.AutoToolTip = false;
            this.sbUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbUndo.Image = ((System.Drawing.Image)(resources.GetObject("sbUndo.Image")));
            this.sbUndo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbUndo.Name = "sbUndo";
            this.sbUndo.Size = new System.Drawing.Size(23, 22);
            this.sbUndo.Text = "&Undo";
            this.sbUndo.ToolTipText = "Undo last operation";
            //
            // sbRedo
            //
            this.al.SetAction(this.sbRedo, this.aEditRedo);
            this.sbRedo.AutoToolTip = false;
            this.sbRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbRedo.Image = ((System.Drawing.Image)(resources.GetObject("sbRedo.Image")));
            this.sbRedo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbRedo.Name = "sbRedo";
            this.sbRedo.Size = new System.Drawing.Size(23, 22);
            this.sbRedo.Text = "&Redo";
            this.sbRedo.ToolTipText = "Redo last operation";
            //
            // tsEditSep4
            //
            this.tsEditSep4.Name = "tsEditSep4";
            this.tsEditSep4.Size = new System.Drawing.Size(6, 25);
            //
            // helpToolStripButton
            //
            this.helpToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image")));
            this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.helpToolStripButton.Name = "helpToolStripButton";
            this.helpToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.helpToolStripButton.Text = "He&lp";
            //
            // aAbout
            //
            this.aAbout.Checked = false;
            this.aAbout.Enabled = true;
            this.aAbout.Hint = null;
            this.aAbout.Tag = null;
            this.aAbout.Text = "About";
            this.aAbout.Visible = true;
            this.aAbout.Execute += new System.EventHandler(this.AAboutExecute);
            //
            // miService
            //
            this.miService.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                                    this.miOptionsToolStripMenuItem});
            this.miService.Name = "miService";
            this.miService.Size = new System.Drawing.Size(44, 20);
            this.miService.Text = "&Tools";
            //
            // miOptionsToolStripMenuItem
            //
            this.al.SetAction(this.miOptionsToolStripMenuItem, this.aOptions);
            this.miOptionsToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miOptionsToolStripMenuItem.Name = "miOptionsToolStripMenuItem";
            this.miOptionsToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
            this.miOptionsToolStripMenuItem.Text = "O&ptions ...";
            //
            // aOptions
            //
            this.aOptions.Checked = false;
            this.aOptions.Enabled = true;
            this.aOptions.Hint = null;
            this.aOptions.Tag = null;
            this.aOptions.Text = "O&ptions ...";
            this.aOptions.Visible = true;
            this.aOptions.Execute += new System.EventHandler(this.AOptionsExecute);
            //
            // MainForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(484, 549);
            this.Name = "MainForm";
            this.Text = "MainForm";
            this.Load += new System.EventHandler(this.MainFormLoad);
            this.msMain.ResumeLayout(false);
            this.msMain.PerformLayout();
            this.pToolBars.ResumeLayout(false);
            this.pToolBars.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.al)).EndInit();
            this.ptEdit.ResumeLayout(false);
            this.ptEdit.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Exemplo n.º 7
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BaseOptionsForm));
     this.panel1 = new FreeCL.UI.Panel();
     this.bApply = new System.Windows.Forms.Button();
     this.bCancel = new System.Windows.Forms.Button();
     this.bOk = new System.Windows.Forms.Button();
     this.tvItems = new System.Windows.Forms.TreeView();
     this.aClose = new FreeCL.UI.Actions.Action(this.components);
     this.bOptions = new FreeCL.UI.Panel();
     this.pMain = new FreeCL.UI.Panel();
     this.aApply = new FreeCL.UI.Actions.Action(this.components);
     this.panel1.SuspendLayout();
     this.bOptions.SuspendLayout();
     this.SuspendLayout();
     //
     // il
     //
     this.il.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("il.ImageStream")));
     this.il.Images.SetKeyName(0, "");
     //
     // al
     //
     this.al.Actions.Add(this.aClose);
     this.al.Actions.Add(this.aApply);
     //
     // panel1
     //
     this.panel1.BevelOuter = FreeCL.UI.BevelStyle.None;
     this.panel1.Controls.Add(this.bApply);
     this.panel1.Controls.Add(this.bCancel);
     this.panel1.Controls.Add(this.bOk);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(297, 2);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(283, 28);
     this.panel1.TabIndex = 3;
     //
     // bApply
     //
     this.al.SetAction(this.bApply, this.aApply);
     this.bApply.ImageList = this.il;
     this.bApply.Location = new System.Drawing.Point(189, 4);
     this.bApply.Name = "bApply";
     this.bApply.Size = new System.Drawing.Size(88, 23);
     this.bApply.TabIndex = 2;
     this.bApply.Text = "Apply";
     this.bApply.UseVisualStyleBackColor = true;
     //
     // bCancel
     //
     this.bCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.bCancel.Location = new System.Drawing.Point(95, 4);
     this.bCancel.Name = "bCancel";
     this.bCancel.Size = new System.Drawing.Size(88, 23);
     this.bCancel.TabIndex = 1;
     this.bCancel.Text = "Cancel";
     this.bCancel.UseVisualStyleBackColor = true;
     this.bCancel.Click += new System.EventHandler(this.BCancelClick);
     //
     // bOk
     //
     this.bOk.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.bOk.Location = new System.Drawing.Point(1, 4);
     this.bOk.Name = "bOk";
     this.bOk.Size = new System.Drawing.Size(88, 23);
     this.bOk.TabIndex = 0;
     this.bOk.Text = "OK";
     this.bOk.UseVisualStyleBackColor = true;
     this.bOk.Click += new System.EventHandler(this.BOkClick);
     //
     // tvItems
     //
     this.tvItems.Dock = System.Windows.Forms.DockStyle.Left;
     this.tvItems.FullRowSelect = true;
     this.tvItems.HideSelection = false;
     this.tvItems.Location = new System.Drawing.Point(0, 0);
     this.tvItems.Name = "tvItems";
     this.tvItems.Size = new System.Drawing.Size(168, 420);
     this.tvItems.TabIndex = 4;
     this.tvItems.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TvItemsAfterSelect);
     //
     // aClose
     //
     this.aClose.Checked = false;
     this.aClose.Enabled = true;
     this.aClose.Hint = null;
     this.aClose.ImageIndex = 0;
     this.aClose.Tag = null;
     this.aClose.Text = "Close";
     this.aClose.Visible = true;
     this.aClose.Execute += new System.EventHandler(this.ACloseExecute);
     //
     // bOptions
     //
     this.bOptions.AutoUpdateDockPadding = false;
     this.bOptions.Controls.Add(this.panel1);
     this.bOptions.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.bOptions.Location = new System.Drawing.Point(0, 420);
     this.bOptions.Name = "bOptions";
     this.bOptions.Padding = new System.Windows.Forms.Padding(2);
     this.bOptions.Size = new System.Drawing.Size(582, 32);
     this.bOptions.TabIndex = 3;
     //
     // pMain
     //
     this.pMain.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pMain.Location = new System.Drawing.Point(168, 0);
     this.pMain.Name = "pMain";
     this.pMain.Padding = new System.Windows.Forms.Padding(5);
     this.pMain.Size = new System.Drawing.Size(414, 420);
     this.pMain.TabIndex = 5;
     //
     // aApply
     //
     this.aApply.Checked = false;
     this.aApply.Enabled = true;
     this.aApply.Hint = null;
     this.aApply.Tag = null;
     this.aApply.Text = "Apply";
     this.aApply.Visible = true;
     this.aApply.Execute += new System.EventHandler(this.BApplyClick);
     this.aApply.Update += new System.EventHandler(this.AApplyUpdate);
     //
     // BaseOptionsForm
     //
     this.AcceptButton = this.bOk;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.bCancel;
     this.ClientSize = new System.Drawing.Size(582, 452);
     this.Controls.Add(this.pMain);
     this.Controls.Add(this.tvItems);
     this.Controls.Add(this.bOptions);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Name = "BaseOptionsForm";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Options";
     this.VisibleChanged += new System.EventHandler(this.BaseOptionsFormVisibleChanged);
     this.panel1.ResumeLayout(false);
     this.bOptions.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 8
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BaseOptionsForm));
     this.panel1   = new FreeCL.UI.Panel();
     this.bApply   = new System.Windows.Forms.Button();
     this.bCancel  = new System.Windows.Forms.Button();
     this.bOk      = new System.Windows.Forms.Button();
     this.tvItems  = new System.Windows.Forms.TreeView();
     this.aClose   = new FreeCL.UI.Actions.Action(this.components);
     this.bOptions = new FreeCL.UI.Panel();
     this.pMain    = new FreeCL.UI.Panel();
     this.aApply   = new FreeCL.UI.Actions.Action(this.components);
     this.panel1.SuspendLayout();
     this.bOptions.SuspendLayout();
     this.SuspendLayout();
     //
     // il
     //
     this.il.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("il.ImageStream")));
     this.il.Images.SetKeyName(0, "");
     //
     // al
     //
     this.al.Actions.Add(this.aClose);
     this.al.Actions.Add(this.aApply);
     //
     // panel1
     //
     this.panel1.BevelOuter = FreeCL.UI.BevelStyle.None;
     this.panel1.Controls.Add(this.bApply);
     this.panel1.Controls.Add(this.bCancel);
     this.panel1.Controls.Add(this.bOk);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(297, 2);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(283, 28);
     this.panel1.TabIndex = 3;
     //
     // bApply
     //
     this.al.SetAction(this.bApply, this.aApply);
     this.bApply.ImageList = this.il;
     this.bApply.Location  = new System.Drawing.Point(189, 4);
     this.bApply.Name      = "bApply";
     this.bApply.Size      = new System.Drawing.Size(88, 23);
     this.bApply.TabIndex  = 2;
     this.bApply.Text      = "Apply";
     this.bApply.UseVisualStyleBackColor = true;
     //
     // bCancel
     //
     this.bCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.bCancel.Location                = new System.Drawing.Point(95, 4);
     this.bCancel.Name                    = "bCancel";
     this.bCancel.Size                    = new System.Drawing.Size(88, 23);
     this.bCancel.TabIndex                = 1;
     this.bCancel.Text                    = "Cancel";
     this.bCancel.UseVisualStyleBackColor = true;
     this.bCancel.Click                  += new System.EventHandler(this.BCancelClick);
     //
     // bOk
     //
     this.bOk.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.bOk.Location                = new System.Drawing.Point(1, 4);
     this.bOk.Name                    = "bOk";
     this.bOk.Size                    = new System.Drawing.Size(88, 23);
     this.bOk.TabIndex                = 0;
     this.bOk.Text                    = "OK";
     this.bOk.UseVisualStyleBackColor = true;
     this.bOk.Click                  += new System.EventHandler(this.BOkClick);
     //
     // tvItems
     //
     this.tvItems.Dock          = System.Windows.Forms.DockStyle.Left;
     this.tvItems.FullRowSelect = true;
     this.tvItems.HideSelection = false;
     this.tvItems.Location      = new System.Drawing.Point(0, 0);
     this.tvItems.Name          = "tvItems";
     this.tvItems.Size          = new System.Drawing.Size(168, 420);
     this.tvItems.TabIndex      = 4;
     this.tvItems.AfterSelect  += new System.Windows.Forms.TreeViewEventHandler(this.TvItemsAfterSelect);
     //
     // aClose
     //
     this.aClose.Checked    = false;
     this.aClose.Enabled    = true;
     this.aClose.Hint       = null;
     this.aClose.ImageIndex = 0;
     this.aClose.Tag        = null;
     this.aClose.Text       = "Close";
     this.aClose.Visible    = true;
     this.aClose.Execute   += new System.EventHandler(this.ACloseExecute);
     //
     // bOptions
     //
     this.bOptions.AutoUpdateDockPadding = false;
     this.bOptions.Controls.Add(this.panel1);
     this.bOptions.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.bOptions.Location = new System.Drawing.Point(0, 420);
     this.bOptions.Name     = "bOptions";
     this.bOptions.Padding  = new System.Windows.Forms.Padding(2);
     this.bOptions.Size     = new System.Drawing.Size(582, 32);
     this.bOptions.TabIndex = 3;
     //
     // pMain
     //
     this.pMain.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pMain.Location = new System.Drawing.Point(168, 0);
     this.pMain.Name     = "pMain";
     this.pMain.Padding  = new System.Windows.Forms.Padding(5);
     this.pMain.Size     = new System.Drawing.Size(414, 420);
     this.pMain.TabIndex = 5;
     //
     // aApply
     //
     this.aApply.Checked  = false;
     this.aApply.Enabled  = true;
     this.aApply.Hint     = null;
     this.aApply.Tag      = null;
     this.aApply.Text     = "Apply";
     this.aApply.Visible  = true;
     this.aApply.Execute += new System.EventHandler(this.BApplyClick);
     this.aApply.Update  += new System.EventHandler(this.AApplyUpdate);
     //
     // BaseOptionsForm
     //
     this.AcceptButton      = this.bOk;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.bCancel;
     this.ClientSize        = new System.Drawing.Size(582, 452);
     this.Controls.Add(this.pMain);
     this.Controls.Add(this.tvItems);
     this.Controls.Add(this.bOptions);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Name            = "BaseOptionsForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Options";
     this.VisibleChanged += new System.EventHandler(this.BaseOptionsFormVisibleChanged);
     this.panel1.ResumeLayout(false);
     this.bOptions.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 9
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.aEditSelectAll             = new FreeCL.UI.Actions.Action(this.components);
            this.aEditDelete                = new FreeCL.UI.Actions.Action(this.components);
            this.miEditCut                  = new System.Windows.Forms.ToolStripMenuItem();
            this.aEditUndo                  = new FreeCL.UI.Actions.Action(this.components);
            this.aEditPaste                 = new FreeCL.UI.Actions.Action(this.components);
            this.miEdit                     = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditUndo                 = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditRedo                 = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditSep11                = new System.Windows.Forms.ToolStripSeparator();
            this.miEditCopy                 = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditPaste                = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditDel                  = new System.Windows.Forms.ToolStripMenuItem();
            this.miEditSep2                 = new System.Windows.Forms.ToolStripSeparator();
            this.miEditSelectAll            = new System.Windows.Forms.ToolStripMenuItem();
            this.miFile                     = new System.Windows.Forms.ToolStripMenuItem();
            this.miFileSep1                 = new System.Windows.Forms.ToolStripSeparator();
            this.miExit                     = new System.Windows.Forms.ToolStripMenuItem();
            this.aExit                      = new FreeCL.UI.Actions.Action(this.components);
            this.aEditRedo                  = new FreeCL.UI.Actions.Action(this.components);
            this.aEditCopy                  = new FreeCL.UI.Actions.Action(this.components);
            this.aEditCut                   = new FreeCL.UI.Actions.Action(this.components);
            this.miHelp                     = new System.Windows.Forms.ToolStripMenuItem();
            this.miAbout                    = new System.Windows.Forms.ToolStripMenuItem();
            this.ptEdit                     = new System.Windows.Forms.ToolStrip();
            this.newToolStripButton         = new System.Windows.Forms.ToolStripButton();
            this.openToolStripButton        = new System.Windows.Forms.ToolStripButton();
            this.saveToolStripButton        = new System.Windows.Forms.ToolStripButton();
            this.printToolStripButton       = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep1                 = new System.Windows.Forms.ToolStripSeparator();
            this.sbSelectAll                = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep2                 = new System.Windows.Forms.ToolStripSeparator();
            this.sbCut                      = new System.Windows.Forms.ToolStripButton();
            this.sbCopy                     = new System.Windows.Forms.ToolStripButton();
            this.sbPaste                    = new System.Windows.Forms.ToolStripButton();
            this.sbDelete                   = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep3                 = new System.Windows.Forms.ToolStripSeparator();
            this.sbUndo                     = new System.Windows.Forms.ToolStripButton();
            this.sbRedo                     = new System.Windows.Forms.ToolStripButton();
            this.tsEditSep4                 = new System.Windows.Forms.ToolStripSeparator();
            this.helpToolStripButton        = new System.Windows.Forms.ToolStripButton();
            this.aAbout                     = new FreeCL.UI.Actions.Action(this.components);
            this.miService                  = new System.Windows.Forms.ToolStripMenuItem();
            this.miOptionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aOptions                   = new FreeCL.UI.Actions.Action(this.components);
            this.msMain.SuspendLayout();
            this.pToolBars.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.al)).BeginInit();
            this.ptEdit.SuspendLayout();
            this.SuspendLayout();

            this.il.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
            //
            // sbMain
            //
            this.sbMain.Size = new System.Drawing.Size(484, 22);
            //
            // msMain
            //
            this.msMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.miFile,
                this.miEdit,
                this.miService,
                this.miHelp
            });
            this.msMain.Size = new System.Drawing.Size(484, 24);
            //
            // pToolBars
            //
            this.pToolBars.Controls.Add(this.ptEdit);
            this.pToolBars.Size = new System.Drawing.Size(484, 25);
            //
            // il
            //
            this.il.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("il.ImageStream")));
            this.il.Images.SetKeyName(0, "");
            this.il.Images.SetKeyName(1, "");
            this.il.Images.SetKeyName(2, "");
            this.il.Images.SetKeyName(3, "");
            this.il.Images.SetKeyName(4, "");
            this.il.Images.SetKeyName(5, "");
            this.il.Images.SetKeyName(6, "Icons.16x16.SelectAlllIcon.png");
            this.il.Images.SetKeyName(7, "");
            this.il.Images.SetKeyName(8, "");
            this.il.Images.SetKeyName(9, "");
            this.il.Images.SetKeyName(10, "");
            this.il.Images.SetKeyName(11, "");
            //
            // al
            //
            this.al.Actions.Add(this.aExit);
            this.al.Actions.Add(this.aEditUndo);
            this.al.Actions.Add(this.aEditRedo);
            this.al.Actions.Add(this.aEditCut);
            this.al.Actions.Add(this.aEditCopy);
            this.al.Actions.Add(this.aEditPaste);
            this.al.Actions.Add(this.aEditDelete);
            this.al.Actions.Add(this.aEditSelectAll);
            this.al.Actions.Add(this.aAbout);
            this.al.Actions.Add(this.aOptions);
            //
            // aEditSelectAll
            //
            this.aEditSelectAll.Checked    = false;
            this.aEditSelectAll.Enabled    = true;
            this.aEditSelectAll.Hint       = "Select all";
            this.aEditSelectAll.ImageIndex = 6;
            this.aEditSelectAll.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
            this.aEditSelectAll.Tag        = null;
            this.aEditSelectAll.Text       = "&Select All";
            this.aEditSelectAll.Visible    = true;
            this.aEditSelectAll.Execute   += new System.EventHandler(this.AEditSelectAllExecute);
            this.aEditSelectAll.Update    += new System.EventHandler(this.AEditSelectAllUpdate);
            //
            // aEditDelete
            //
            this.aEditDelete.Checked    = false;
            this.aEditDelete.Enabled    = true;
            this.aEditDelete.Hint       = "Delete selection";
            this.aEditDelete.ImageIndex = 2;
            this.aEditDelete.Shortcut   = System.Windows.Forms.Keys.Delete;
            this.aEditDelete.Tag        = null;
            this.aEditDelete.Text       = "&Delete";
            this.aEditDelete.Visible    = true;
            this.aEditDelete.Execute   += new System.EventHandler(this.AEditDeleteExecute);
            this.aEditDelete.Update    += new System.EventHandler(this.AEditDeleteUpdate);
            //
            // miEditCut
            //
            this.al.SetAction(this.miEditCut, this.aEditCut);
            this.miEditCut.Image = ((System.Drawing.Image)(resources.GetObject("miEditCut.Image")));
            this.miEditCut.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditCut.MergeIndex            = 3;
            this.miEditCut.Name = "miEditCut";
            this.miEditCut.ShortcutKeyDisplayString = "Ctrl+X";
            this.miEditCut.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
            this.miEditCut.Size        = new System.Drawing.Size(167, 22);
            this.miEditCut.Text        = "Cu&t";
            this.miEditCut.ToolTipText = "Cut selection to clipboard";
            //
            // aEditUndo
            //
            this.aEditUndo.Checked    = false;
            this.aEditUndo.Enabled    = true;
            this.aEditUndo.Hint       = "Undo last operation";
            this.aEditUndo.ImageIndex = 5;
            this.aEditUndo.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
            this.aEditUndo.Tag        = null;
            this.aEditUndo.Text       = "&Undo";
            this.aEditUndo.Visible    = true;
            this.aEditUndo.Execute   += new System.EventHandler(this.AEditUndoExecute);
            this.aEditUndo.Update    += new System.EventHandler(this.AEditUndoUpdate);
            //
            // aEditPaste
            //
            this.aEditPaste.Checked    = false;
            this.aEditPaste.Enabled    = true;
            this.aEditPaste.Hint       = "Paste from clipboard";
            this.aEditPaste.ImageIndex = 3;
            this.aEditPaste.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            this.aEditPaste.Tag        = null;
            this.aEditPaste.Text       = "&Paste";
            this.aEditPaste.Visible    = true;
            this.aEditPaste.Execute   += new System.EventHandler(this.AEditPasteExecute);
            this.aEditPaste.Update    += new System.EventHandler(this.AEditPasteUpdate);
            //
            // miEdit
            //
            this.miEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.miEditUndo,
                this.miEditRedo,
                this.miEditSep11,
                this.miEditCut,
                this.miEditCopy,
                this.miEditPaste,
                this.miEditDel,
                this.miEditSep2,
                this.miEditSelectAll
            });
            this.miEdit.MergeIndex = 1;
            this.miEdit.Name       = "miEdit";
            this.miEdit.Size       = new System.Drawing.Size(37, 20);
            this.miEdit.Text       = "&Edit";
            //
            // miEditUndo
            //
            this.al.SetAction(this.miEditUndo, this.aEditUndo);
            this.miEditUndo.Image = ((System.Drawing.Image)(resources.GetObject("miEditUndo.Image")));
            this.miEditUndo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditUndo.MergeIndex            = 0;
            this.miEditUndo.Name = "miEditUndo";
            this.miEditUndo.ShortcutKeyDisplayString = "Ctrl+Z";
            this.miEditUndo.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
            this.miEditUndo.Size        = new System.Drawing.Size(167, 22);
            this.miEditUndo.Text        = "&Undo";
            this.miEditUndo.ToolTipText = "Undo last operation";
            //
            // miEditRedo
            //
            this.al.SetAction(this.miEditRedo, this.aEditRedo);
            this.miEditRedo.Image = ((System.Drawing.Image)(resources.GetObject("miEditRedo.Image")));
            this.miEditRedo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditRedo.MergeIndex            = 1;
            this.miEditRedo.Name = "miEditRedo";
            this.miEditRedo.ShortcutKeyDisplayString = "Ctrl+Y";
            this.miEditRedo.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
            this.miEditRedo.Size        = new System.Drawing.Size(167, 22);
            this.miEditRedo.Text        = "&Redo";
            this.miEditRedo.ToolTipText = "Redo last operation";
            //
            // miEditSep11
            //
            this.miEditSep11.Name = "miEditSep11";
            this.miEditSep11.Size = new System.Drawing.Size(164, 6);
            //
            // miEditCopy
            //
            this.al.SetAction(this.miEditCopy, this.aEditCopy);
            this.miEditCopy.Image = ((System.Drawing.Image)(resources.GetObject("miEditCopy.Image")));
            this.miEditCopy.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditCopy.MergeIndex            = 4;
            this.miEditCopy.Name = "miEditCopy";
            this.miEditCopy.ShortcutKeyDisplayString = "Ctrl+C";
            this.miEditCopy.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            this.miEditCopy.Size        = new System.Drawing.Size(167, 22);
            this.miEditCopy.Text        = "&Copy";
            this.miEditCopy.ToolTipText = "Copy selection to clipboard";
            //
            // miEditPaste
            //
            this.al.SetAction(this.miEditPaste, this.aEditPaste);
            this.miEditPaste.Image = ((System.Drawing.Image)(resources.GetObject("miEditPaste.Image")));
            this.miEditPaste.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditPaste.MergeIndex            = 5;
            this.miEditPaste.Name = "miEditPaste";
            this.miEditPaste.ShortcutKeyDisplayString = "Ctrl+V";
            this.miEditPaste.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            this.miEditPaste.Size        = new System.Drawing.Size(167, 22);
            this.miEditPaste.Text        = "&Paste";
            this.miEditPaste.ToolTipText = "Paste from clipboard";
            //
            // miEditDel
            //
            this.al.SetAction(this.miEditDel, this.aEditDelete);
            this.miEditDel.Image = ((System.Drawing.Image)(resources.GetObject("miEditDel.Image")));
            this.miEditDel.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditDel.MergeIndex            = 6;
            this.miEditDel.Name = "miEditDel";
            this.miEditDel.ShortcutKeyDisplayString = "Del";
            this.miEditDel.ShortcutKeys             = System.Windows.Forms.Keys.Delete;
            this.miEditDel.Size        = new System.Drawing.Size(167, 22);
            this.miEditDel.Text        = "&Delete";
            this.miEditDel.ToolTipText = "Delete selection";
            //
            // miEditSep2
            //
            this.miEditSep2.Name = "miEditSep2";
            this.miEditSep2.Size = new System.Drawing.Size(164, 6);
            //
            // miEditSelectAll
            //
            this.al.SetAction(this.miEditSelectAll, this.aEditSelectAll);
            this.miEditSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("miEditSelectAll.Image")));
            this.miEditSelectAll.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miEditSelectAll.MergeIndex            = 8;
            this.miEditSelectAll.Name = "miEditSelectAll";
            this.miEditSelectAll.ShortcutKeyDisplayString = "Ctrl+A";
            this.miEditSelectAll.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
            this.miEditSelectAll.Size        = new System.Drawing.Size(167, 22);
            this.miEditSelectAll.Text        = "&Select All";
            this.miEditSelectAll.ToolTipText = "Select all";
            //
            // miFile
            //
            this.miFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.miFileSep1,
                this.miExit
            });
            this.miFile.MergeIndex = 0;
            this.miFile.Name       = "miFile";
            this.miFile.Size       = new System.Drawing.Size(35, 20);
            this.miFile.Text       = "&File";
            //
            // miFileSep1
            //
            this.miFileSep1.Name = "miFileSep1";
            this.miFileSep1.Size = new System.Drawing.Size(149, 6);
            //
            // miExit
            //
            this.al.SetAction(this.miExit, this.aExit);
            this.miExit.Image = ((System.Drawing.Image)(resources.GetObject("miExit.Image")));
            this.miExit.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miExit.MergeIndex            = 1;
            this.miExit.Name = "miExit";
            this.miExit.ShortcutKeyDisplayString = "Alt+F4";
            this.miExit.ShortcutKeys             = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.miExit.Size        = new System.Drawing.Size(152, 22);
            this.miExit.Text        = "E&xit";
            this.miExit.ToolTipText = "Exit from application";
            //
            // aExit
            //
            this.aExit.Checked    = false;
            this.aExit.Enabled    = true;
            this.aExit.Hint       = "Exit from application";
            this.aExit.ImageIndex = 2;
            this.aExit.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
            this.aExit.Tag        = null;
            this.aExit.Text       = "E&xit";
            this.aExit.Visible    = true;
            this.aExit.Execute   += new System.EventHandler(this.AExitExecute);
            //
            // aEditRedo
            //
            this.aEditRedo.Checked    = false;
            this.aEditRedo.Enabled    = true;
            this.aEditRedo.Hint       = "Redo last operation";
            this.aEditRedo.ImageIndex = 4;
            this.aEditRedo.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
            this.aEditRedo.Tag        = null;
            this.aEditRedo.Text       = "&Redo";
            this.aEditRedo.Visible    = true;
            this.aEditRedo.Execute   += new System.EventHandler(this.AEditRedoExecute);
            this.aEditRedo.Update    += new System.EventHandler(this.AEditRedoUpdate);
            //
            // aEditCopy
            //
            this.aEditCopy.Checked    = false;
            this.aEditCopy.Enabled    = true;
            this.aEditCopy.Hint       = "Copy selection to clipboard";
            this.aEditCopy.ImageIndex = 0;
            this.aEditCopy.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            this.aEditCopy.Tag        = null;
            this.aEditCopy.Text       = "&Copy";
            this.aEditCopy.Visible    = true;
            this.aEditCopy.Execute   += new System.EventHandler(this.AEditCopyExecute);
            this.aEditCopy.Update    += new System.EventHandler(this.AEditCopyUpdate);
            //
            // aEditCut
            //
            this.aEditCut.Checked    = false;
            this.aEditCut.Enabled    = true;
            this.aEditCut.Hint       = "Cut selection to clipboard";
            this.aEditCut.ImageIndex = 1;
            this.aEditCut.Shortcut   = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
            this.aEditCut.Tag        = null;
            this.aEditCut.Text       = "Cu&t";
            this.aEditCut.Visible    = true;
            this.aEditCut.Execute   += new System.EventHandler(this.AEditCutExecute);
            this.aEditCut.Update    += new System.EventHandler(this.AEditCutUpdate);
            //
            // miHelp
            //
            this.miHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.miAbout
            });
            this.miHelp.MergeIndex = 1000;
            this.miHelp.Name       = "miHelp";
            this.miHelp.Size       = new System.Drawing.Size(40, 20);
            this.miHelp.Text       = "Help";
            //
            // miAbout
            //
            this.al.SetAction(this.miAbout, this.aAbout);
            this.miAbout.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miAbout.MergeIndex            = 1000;
            this.miAbout.Name = "miAbout";
            this.miAbout.Size = new System.Drawing.Size(114, 22);
            this.miAbout.Text = "About";
            //
            // ptEdit
            //
            this.ptEdit.Dock = System.Windows.Forms.DockStyle.None;
            this.ptEdit.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.newToolStripButton,
                this.openToolStripButton,
                this.saveToolStripButton,
                this.printToolStripButton,
                this.tsEditSep1,
                this.sbSelectAll,
                this.tsEditSep2,
                this.sbCut,
                this.sbCopy,
                this.sbPaste,
                this.sbDelete,
                this.tsEditSep3,
                this.sbUndo,
                this.sbRedo,
                this.tsEditSep4,
                this.helpToolStripButton
            });
            this.ptEdit.Location = new System.Drawing.Point(3, 0);
            this.ptEdit.Name     = "ptEdit";
            this.ptEdit.Size     = new System.Drawing.Size(312, 25);
            this.ptEdit.TabIndex = 7;
            this.ptEdit.Text     = "toolStrip1";
            //
            // newToolStripButton
            //
            this.newToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.newToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image")));
            this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.newToolStripButton.Name = "newToolStripButton";
            this.newToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.newToolStripButton.Text = "&New";
            //
            // openToolStripButton
            //
            this.openToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.openToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image")));
            this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.openToolStripButton.Name = "openToolStripButton";
            this.openToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.openToolStripButton.Text = "&Open";
            //
            // saveToolStripButton
            //
            this.saveToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.saveToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image")));
            this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.saveToolStripButton.Name = "saveToolStripButton";
            this.saveToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.saveToolStripButton.Text = "&Save";
            //
            // printToolStripButton
            //
            this.printToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.printToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image")));
            this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.printToolStripButton.Name = "printToolStripButton";
            this.printToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.printToolStripButton.Text = "&Print";
            //
            // tsEditSep1
            //
            this.tsEditSep1.Name = "tsEditSep1";
            this.tsEditSep1.Size = new System.Drawing.Size(6, 25);
            //
            // sbSelectAll
            //
            this.al.SetAction(this.sbSelectAll, this.aEditSelectAll);
            this.sbSelectAll.AutoToolTip           = false;
            this.sbSelectAll.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbSelectAll.Image                 = ((System.Drawing.Image)(resources.GetObject("sbSelectAll.Image")));
            this.sbSelectAll.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbSelectAll.Name        = "sbSelectAll";
            this.sbSelectAll.Size        = new System.Drawing.Size(23, 22);
            this.sbSelectAll.Text        = "&Select All";
            this.sbSelectAll.ToolTipText = "Select all";
            //
            // tsEditSep2
            //
            this.tsEditSep2.Name = "tsEditSep2";
            this.tsEditSep2.Size = new System.Drawing.Size(6, 25);
            //
            // sbCut
            //
            this.al.SetAction(this.sbCut, this.aEditCut);
            this.sbCut.AutoToolTip           = false;
            this.sbCut.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbCut.Image                 = ((System.Drawing.Image)(resources.GetObject("sbCut.Image")));
            this.sbCut.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbCut.Name        = "sbCut";
            this.sbCut.Size        = new System.Drawing.Size(23, 22);
            this.sbCut.Text        = "Cu&t";
            this.sbCut.ToolTipText = "Cut selection to clipboard";
            //
            // sbCopy
            //
            this.al.SetAction(this.sbCopy, this.aEditCopy);
            this.sbCopy.AutoToolTip           = false;
            this.sbCopy.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbCopy.Image                 = ((System.Drawing.Image)(resources.GetObject("sbCopy.Image")));
            this.sbCopy.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbCopy.Name        = "sbCopy";
            this.sbCopy.Size        = new System.Drawing.Size(23, 22);
            this.sbCopy.Text        = "&Copy";
            this.sbCopy.ToolTipText = "Copy selection to clipboard";
            //
            // sbPaste
            //
            this.al.SetAction(this.sbPaste, this.aEditPaste);
            this.sbPaste.AutoToolTip           = false;
            this.sbPaste.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbPaste.Image                 = ((System.Drawing.Image)(resources.GetObject("sbPaste.Image")));
            this.sbPaste.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbPaste.Name        = "sbPaste";
            this.sbPaste.Size        = new System.Drawing.Size(23, 22);
            this.sbPaste.Text        = "&Paste";
            this.sbPaste.ToolTipText = "Paste from clipboard";
            //
            // sbDelete
            //
            this.al.SetAction(this.sbDelete, this.aEditDelete);
            this.sbDelete.AutoToolTip           = false;
            this.sbDelete.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbDelete.Image                 = ((System.Drawing.Image)(resources.GetObject("sbDelete.Image")));
            this.sbDelete.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbDelete.Name        = "sbDelete";
            this.sbDelete.Size        = new System.Drawing.Size(23, 22);
            this.sbDelete.Text        = "&Delete";
            this.sbDelete.ToolTipText = "Delete selection";
            //
            // tsEditSep3
            //
            this.tsEditSep3.Name = "tsEditSep3";
            this.tsEditSep3.Size = new System.Drawing.Size(6, 25);
            //
            // sbUndo
            //
            this.al.SetAction(this.sbUndo, this.aEditUndo);
            this.sbUndo.AutoToolTip           = false;
            this.sbUndo.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbUndo.Image                 = ((System.Drawing.Image)(resources.GetObject("sbUndo.Image")));
            this.sbUndo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbUndo.Name        = "sbUndo";
            this.sbUndo.Size        = new System.Drawing.Size(23, 22);
            this.sbUndo.Text        = "&Undo";
            this.sbUndo.ToolTipText = "Undo last operation";
            //
            // sbRedo
            //
            this.al.SetAction(this.sbRedo, this.aEditRedo);
            this.sbRedo.AutoToolTip           = false;
            this.sbRedo.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.sbRedo.Image                 = ((System.Drawing.Image)(resources.GetObject("sbRedo.Image")));
            this.sbRedo.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.sbRedo.Name        = "sbRedo";
            this.sbRedo.Size        = new System.Drawing.Size(23, 22);
            this.sbRedo.Text        = "&Redo";
            this.sbRedo.ToolTipText = "Redo last operation";
            //
            // tsEditSep4
            //
            this.tsEditSep4.Name = "tsEditSep4";
            this.tsEditSep4.Size = new System.Drawing.Size(6, 25);
            //
            // helpToolStripButton
            //
            this.helpToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.helpToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image")));
            this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.helpToolStripButton.Name = "helpToolStripButton";
            this.helpToolStripButton.Size = new System.Drawing.Size(23, 22);
            this.helpToolStripButton.Text = "He&lp";
            //
            // aAbout
            //
            this.aAbout.Checked  = false;
            this.aAbout.Enabled  = true;
            this.aAbout.Hint     = null;
            this.aAbout.Tag      = null;
            this.aAbout.Text     = "About";
            this.aAbout.Visible  = true;
            this.aAbout.Execute += new System.EventHandler(this.AAboutExecute);
            //
            // miService
            //
            this.miService.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.miOptionsToolStripMenuItem
            });
            this.miService.Name = "miService";
            this.miService.Size = new System.Drawing.Size(44, 20);
            this.miService.Text = "&Tools";
            //
            // miOptionsToolStripMenuItem
            //
            this.al.SetAction(this.miOptionsToolStripMenuItem, this.aOptions);
            this.miOptionsToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Transparent;
            this.miOptionsToolStripMenuItem.Name = "miOptionsToolStripMenuItem";
            this.miOptionsToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
            this.miOptionsToolStripMenuItem.Text = "O&ptions ...";
            //
            // aOptions
            //
            this.aOptions.Checked  = false;
            this.aOptions.Enabled  = true;
            this.aOptions.Hint     = null;
            this.aOptions.Tag      = null;
            this.aOptions.Text     = "O&ptions ...";
            this.aOptions.Visible  = true;
            this.aOptions.Execute += new System.EventHandler(this.AOptionsExecute);
            //
            // MainForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(484, 549);
            this.Name  = "MainForm";
            this.Text  = "MainForm";
            this.Load += new System.EventHandler(this.MainFormLoad);
            this.msMain.ResumeLayout(false);
            this.msMain.PerformLayout();
            this.pToolBars.ResumeLayout(false);
            this.pToolBars.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.al)).EndInit();
            this.ptEdit.ResumeLayout(false);
            this.ptEdit.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Exemplo n.º 10
0
        public ToolStripItem AddToolStripButton(System.Windows.Forms.ToolStrip owner, int index, FreeCL.UI.Actions.Action action, Type buttonType)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            ToolStripItem netsb = (ToolStripItem)Activator.CreateInstance(buttonType);

            if (action != null)
            {
                action.Parent.SetAction(netsb, action);
            }

            netsb.DisplayStyle = ToolStripItemDisplayStyle.Image;
            netsb.MergeIndex   = index;
            netsb.MergeAction  = MergeAction.Insert;

            if (index < owner.Items.Count)
            {
                owner.Items.Insert(index, netsb);
            }
            else
            {
                owner.Items.Add(netsb);
            }

            SortItems(owner.Items);

            return(netsb);
        }
Exemplo n.º 11
0
 public ToolStripItem  AddToolStripButton(CommonToolStripsEnum toolStrip, CommonItemsEnum index, FreeCL.UI.Actions.Action action, Type buttonType)
 {
     return(AddToolStripButton(toolStrip, (int)index, action, buttonType));
 }
Exemplo n.º 12
0
 public ToolStripItem AddToolStripButton(CommonToolStripsEnum toolStrip, int index, FreeCL.UI.Actions.Action action, Type buttonType)
 {
     return(AddToolStripButton(GetToolStrip(toolStrip), index, action, buttonType));
 }
Exemplo n.º 13
0
        public ToolStripMenuItem GetOrCreateMenuItem(ToolStripMenuItem owner, int index, FreeCL.UI.Actions.Action action, bool separator, string caption)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            foreach (ToolStripItem mi in owner.DropDownItems)
            {
                if (mi.Text == caption)
                {
                    return((ToolStripMenuItem)mi);
                }
            }
            return((ToolStripMenuItem)this.AddMenuItem(owner, index, action, separator, caption));
        }
Exemplo n.º 14
0
 public ToolStripItem AddMenuItem(ToolStripMenuItem owner, int index, FreeCL.UI.Actions.Action action)
 {
     return(AddMenuItem(owner, (int)index, action, true));
 }
Exemplo n.º 15
0
 public ToolStripItem AddMenuItem(CommonMenusEnum menu, CommonItemsEnum index, FreeCL.UI.Actions.Action action)
 {
     return(AddMenuItem(menu, (int)index, action));
 }
Exemplo n.º 16
0
 public ToolStripItem AddMenuItem(CommonMenusEnum menu, int index, FreeCL.UI.Actions.Action action)
 {
     return(AddMenuItem(GetTopMenuItem(menu), index, action));
 }