public EditEscapeSequenceColor(Color back, Color fore, EscapesequenceColorSet cs)
        {
            StringResource sr = TerminalUIPlugin.Instance.Strings;

            //
            // Windows フォーム デザイナ サポートに必要です。
            //
            InitializeComponent();

            _colorBoxes = new ColorButton[16];
            _backColor  = back;
            _foreColor  = fore;
            _esColorSet = (EscapesequenceColorSet)cs.Clone();
            int ti = 0;

            int y = 8;

            AddBackColorUI(y, ref ti);
            y += 24;

            {
                AddUI(-1, 0, y, ref ti);                 //-1はデフォルト色設定
                y += 24;

                int y1 = y;
                for (int i = 0; i < 8; i++)
                {
                    AddUI(i, 0, y, ref ti);                     //-1はデフォルト色設定
                    y += 24;
                }
                y = y1;
                for (int i = 8; i < 16; i++)
                {
                    AddUI(i, 250, y, ref ti);
                    y += 24;
                }
            }

            y += 8;
            _setDefaultButton           = new Button();
            _setDefaultButton.Left      = 356;
            _setDefaultButton.Width     = 144;
            _setDefaultButton.Click    += new EventHandler(OnSetDefault);
            _setDefaultButton.Text      = sr.GetString("Form.EditEscapesequenceColor._setDefaultButton");
            _setDefaultButton.Top       = y;
            _setDefaultButton.TabIndex  = ti++;
            _setDefaultButton.FlatStyle = FlatStyle.System;
            this.Controls.Add(_setDefaultButton);

            y += 32;
            _okButton.Text     = sr.GetString("Common.OK");
            _okButton.Top      = y;
            _cancelButton.Text = sr.GetString("Common.Cancel");
            _cancelButton.Top  = y;
            this.Text          = sr.GetString("Form.EditEscapesequenceColor.Text");

            this.ClientSize = new Size(this.ClientSize.Width, y + 32);
        }
Exemplo n.º 2
0
        public void CopyTo(CommonOptions o)
        {
            o._closeOnDisconnect            = _closeOnDisconnect;
            o._disconnectNotification       = _disconnectNotification;
            o._beepOnBellChar               = _beepOnBellChar;
            o._askCloseOnExit               = _askCloseOnExit;
            o._quitAppWithLastPane          = _quitAppWithLastPane;
            o._autoCopyByLeftButton         = _autoCopyByLeftButton;
            o._send0x7FByDel                = _send0x7FByDel;
            o._keepAliveInterval            = _keepAliveInterval;
            o._adjustsTabTitleToWindowTitle = _adjustsTabTitleToWindowTitle;
            o._allowsScrollInAppMode        = _allowsScrollInAppMode;
            o._wheelAmount               = _wheelAmount;
            o._terminalBufferSize        = _terminalBufferSize;
            o._retainsPassphrase         = _retainsPassphrase;
            o._warningOption             = _warningOption;
            o._localBufferScrollModifier = _localBufferScrollModifier;

            o._rightButtonAction     = _rightButtonAction;
            o._leftAltKey            = _leftAltKey;
            o._rightAltKey           = _rightAltKey;
            o._additionalWordElement = _additionalWordElement;

            o._font                    = null;
            o._japaneseFont            = null;
            o._fontName                = _fontName;
            o._japaneseFontName        = _japaneseFontName;
            o._useClearType            = _useClearType;
            o._fontSize                = _fontSize;
            o._bgColor                 = _bgColor;
            o._textColor               = _textColor;
            o._esColorSet              = (EscapesequenceColorSet)_esColorSet.Clone();
            o._backgroundImageFileName = _backgroundImageFileName;
            o._caretType               = _caretType;
            o._caretColor              = _caretColor;
            o._imageStyle              = _imageStyle;

            o._cipherAlgorithmOrder  = (string[])_cipherAlgorithmOrder.Clone();
            o._hostKeyAlgorithmOrder = (string[])_hostKeyAlgorithmOrder.Clone();
            o._sshWindowSize         = _sshWindowSize;
            o._sshCheckMAC           = _sshCheckMAC;
            o._defaultLogType        = _defaultLogType;
            o._defaultLogDirectory   = _defaultLogDirectory;
            o._useSocks        = _useSocks;
            o._socksServer     = _socksServer;
            o._socksPort       = _socksPort;
            o._socksAccount    = _socksAccount;
            o._socksPassword   = _socksPassword;
            o._socksNANetworks = _socksNANetworks;
        }
        public EditEscapeSequenceColor(Color back, Color fore, EscapesequenceColorSet cs)
        {
            //
            // Windows フォーム デザイナ サポートに必要です。
            //
            InitializeComponent();

            //
            // TODO: InitializeComponent 呼び出しの後に、コンストラクタ コードを追加してください。
            //
            _colorBoxes = new ColorButton[8];
            _backColor  = back;
            _foreColor  = fore;
            _esColorSet = (EscapesequenceColorSet)cs.Clone();
            int ti = 0;

            int y = 8;

            AddBackColorUI(y, ref ti);
            y += 24;

            for (int i = -1; i < 8; i++)
            {
                AddUI(i, y, ref ti);                 //-1はデフォルト色設定
                y += 24;
            }

            y += 8;
            _setDefaultButton           = new Button();
            _setDefaultButton.Left      = 106;
            _setDefaultButton.Width     = 144;
            _setDefaultButton.Click    += new EventHandler(OnSetDefault);
            _setDefaultButton.Text      = GApp.Strings.GetString("Form.EditEscapesequenceColor._setDefaultButton");
            _setDefaultButton.Top       = y;
            _setDefaultButton.TabIndex  = ti++;
            _setDefaultButton.FlatStyle = FlatStyle.System;
            this.Controls.Add(_setDefaultButton);

            y += 32;
            _okButton.Text     = GApp.Strings.GetString("Common.OK");
            _okButton.Top      = y;
            _cancelButton.Text = GApp.Strings.GetString("Common.Cancel");
            _cancelButton.Top  = y;
            this.Text          = GApp.Strings.GetString("Form.EditEscapesequenceColor.Text");

            this.ClientSize = new Size(this.ClientSize.Width, y + 32);
        }
Exemplo n.º 4
0
        public EditEscapeSequenceColor(Color back, Color fore, EscapesequenceColorSet cs)
        {
            StringResource sr = TerminalUIPlugin.Instance.Strings;
            //
            // Windows フォーム デザイナ サポートに必要です。
            //
            InitializeComponent();

            _colorBoxes = new ColorButton[8];
            _backColor = back;
            _foreColor = fore;
            _esColorSet = (EscapesequenceColorSet)cs.Clone();
            int ti = 0;

            int y = 8;
            AddBackColorUI(y, ref ti);
            y += 24;

            for (int i = -1; i < 8; i++) {
                AddUI(i, y, ref ti); //-1はデフォルト色設定
                y += 24;
            }

            y += 8;
            _setDefaultButton = new Button();
            _setDefaultButton.Left = 106;
            _setDefaultButton.Width = 144;
            _setDefaultButton.Click += new EventHandler(OnSetDefault);
            _setDefaultButton.Text = sr.GetString("Form.EditEscapesequenceColor._setDefaultButton");
            _setDefaultButton.Top = y;
            _setDefaultButton.TabIndex = ti++;
            _setDefaultButton.FlatStyle = FlatStyle.System;
            this.Controls.Add(_setDefaultButton);

            y += 32;
            _okButton.Text = sr.GetString("Common.OK");
            _okButton.Top = y;
            _cancelButton.Text = sr.GetString("Common.Cancel");
            _cancelButton.Top = y;
            this.Text = sr.GetString("Form.EditEscapesequenceColor.Text");

            this.ClientSize = new Size(this.ClientSize.Width, y + 32);
        }