public static void InitialSettings() { faderPage = 1; EncoderMenuPosition = 1; BigEncoderOption = BigEncoderButtonFunctionMidiValue.straightenAngle; ActivePanel = ActivePanel.loupe; SendToMidiDevice.Send("Encoder"); Display.Send(1, "High. ", "Tone "); Display.Send(2, "Lights ", "Tone "); Display.Send(3, "Darks ", "Tone "); Display.Send(4, "Shadow ", "Tone "); Display.Send(5, "Shadow ", "Split "); Display.Send(6, "Midtone", "Split "); Display.Send(7, "High. ", "Split "); Display.Send(8, " ", " "); LrParameters.BigEncoderDisplayButtons(); SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 95, 0); SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 80, 0); SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 81, 0); SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 82, 0); SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 83, 0); }
private void labelSettings_Click(object sender, EventArgs e) { _activePanel.Panel.BackColor = _tabBarColors[5]; _activePanel = new ActivePanel(m4, 3); //change tab bachground color ChangeToActiveTab(m4, m44.BackColor); }
public DirectoriesViewModel() { this.ActivePanel = ActivePanel.Left; this.LeftEntries = DirectoryStructure.GetAllLogicalDrives(); this.RightEntries = DirectoryStructure.GetAllLogicalDrives(); this.RightPath = ".."; this.LeftPath = ".."; }
void InitUI() { geoUI = new GeoUI(); Transform canvasBack = GameObject.Find("/UI/CanvasBack").transform; Transform canvasFront = GameObject.Find("/UI/CanvasFront").transform; NavPanel navPanel = canvasBack.Find("NavPanel").GetComponent <NavPanel>(); navPanel.OnShadeButtonClick = HandleClickShadeButton; navPanel.OnLockButtonClick = HandleClickLockButton; navPanel.OnDisplayButtonClick = HandleClickDisplayButton; navPanel.OnCoordinateButtonClick = HandleClickCoordinateButton; navPanel.OnGridButtonClick = HandleClickGridButton; navPanel.OnSnapButtonClick = HandleClickSnapButton; geometryBehaviour.OnElementDisplayChange = HandleElementDisplayChange; navPanel.Init(); ToolPanel toolPanel = canvasBack.Find("ToolPanel").GetComponent <ToolPanel>(); toolPanel.Init(); toolPanel.OnClickTool = HandleClickTool; StatePanel statePanel = canvasBack.Find("StatePanel").GetComponent <StatePanel>(); statePanel.Init(); InputPanel inputPanel = canvasBack.Find("InputPanel").GetComponent <InputPanel>(); inputPanel.Init(); ElementPanel elementPanel = canvasFront.Find("ElementPanel").GetComponent <ElementPanel>(); elementPanel.Init(); ActivePanel activePanel = canvasFront.Find("ActivePanel").GetComponent <ActivePanel>(); activePanel.Init(); CameraPanel cameraPanel = canvasFront.Find("CameraPanel").GetComponent <CameraPanel>(); cameraPanel.OnCenterButtonClick = HandleClickCenterButton; cameraPanel.OnZoomInButtonClick = HandleClickZoomInButton; cameraPanel.OnZoomOutButtonClick = HandleClickZoomOutButton; cameraPanel.OnUpButtonClick = HandleClickUpButton; cameraPanel.OnDownButtonClick = HandleClickDownButton; cameraPanel.Init(); cameraPanel.SetCenterButtonActive(false); geoUI.navPanel = navPanel; geoUI.toolPanel = toolPanel; geoUI.statePanel = statePanel; geoUI.inputPanel = inputPanel; geoUI.elementPanel = elementPanel; geoUI.activePanel = activePanel; geoUI.cameraPanel = cameraPanel; }
private void ChangePanel(ActivePanel panel) { foreach (GameObject _panel in panels) { Debug.Log(panels); _panel.SetActive(false); } panels[(int)panel].SetActive(true); }
private void labelProfile_Click(object sender, EventArgs e) { _activePanel.Panel.BackColor = _tabBarColors[5]; _activePanel = new ActivePanel(m3, 2); //change tab bachground color ChangeToActiveTab(m3, m33.BackColor); //shows The ProfileWindow as Active Screen / Panel ChangeActivePanel(new ProfileWindow()); }
private void labelSell_Click(object sender, EventArgs e) { _activePanel.Panel.BackColor = _tabBarColors[5]; _activePanel = new ActivePanel(m2, 1); //change tab bachground color ChangeToActiveTab(m2, m22.BackColor); //shows The SellDataWindow as Active Screen / Panel ChangeActivePanel(new SellDataWindow()); }
private void labelLogout_Click(object sender, EventArgs e) { _activePanel.Panel.BackColor = _tabBarColors[5]; _activePanel = new ActivePanel(m5, 4); //change tab bachground color ChangeToActiveTab(m5, m55.BackColor); //shows the logout dialogBox ChangeActivePanel(new LogoutDialogBox(panel1), true, (AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left)); }
public IWindowUT AddChildToActivePanel(IWindowUT newChild) { if (ActivePanel != null) { if (ActivePanel.CanHaveChildren) { return(ActivePanel.AddChild(newChild).Init()); } } return(null); }
public EditEdgeOperation(GeoController geoController, GeoCamera geoCamera, Geometry geometry, GeometryBehaviour geometryBehaviour, GeoUI geoUI, GeoEdge geoEdge) { CanRotateCamera = false; CanActiveElement = false; this.geoController = geoController; this.geoCamera = geoCamera; this.geometry = geometry; this.geometryBehaviour = geometryBehaviour; this.activePanel = geoUI.activePanel; this.elementPanel = geoUI.elementPanel; this.geoEdge = geoEdge; }
private void PanelFinisehdTranstionOut(GameObject _Panel) { // Set inactive and Unregister the transition out handler _Panel.SetActive(false); CDUIPanel panel = _Panel.GetComponent <CDUIPanel>(); panel.EventTransitionOutFinished -= PanelFinisehdTranstionOut; // Set active and transition the current panel in ActivePanel.SetActive(true); panel = ActivePanel.GetComponent <CDUIPanel>(); panel.TransitionIn(); }
public EditVertexOperation(GeoController geoController, StateController stateController, GeoCamera geoCamera, Geometry geometry, GeometryBehaviour geometryBehaviour, GeoUI geoUI, GeoVertex geoVertex) { CanRotateCamera = false; CanActiveElement = false; this.geoController = geoController; this.stateController = stateController; this.geoCamera = geoCamera; this.geometry = geometry; this.geometryBehaviour = geometryBehaviour; this.activePanel = geoUI.activePanel; this.elementPanel = geoUI.elementPanel; this.geoVertex = geoVertex; }
public MainWindow(bool signedIn) { InitializeComponent(); //sets the active Tab as Purchase Tab of index 0 _activePanel = new ActivePanel(m1, 0); if (signedIn == false) { labelPurchase_Click(this, new EventArgs()); } else { labelProfile_Click(this, new EventArgs()); } }
private void btnPanelGlove_Click(object sender, EventArgs e) { resetTab_ClearConnectionTexts(); if (!glove.IsConnected()) { SetActivePanel(panelConnect); panel8.Enabled = true; linkSwitchEmg1c.Visible = false; lblConnectionTitle.Text = "Glove Connection"; } else { SetActivePanel(PanelGLOVE); } activePanel = ActivePanel.PanelGlove; }
private void btnPanelRFID_Click(object sender, EventArgs e) { resetTab_ClearConnectionTexts(); if (!rfid.IsConnected()) { SetActivePanel(panelConnect); panel8.Enabled = true; linkSwitchEmg1c.Visible = false; lblConnectionTitle.Text = "Image Processing Connection"; } else { SetActivePanel(PanelRFID); } activePanel = ActivePanel.PanelRFID; }
private void btnPanelEMG_Click(object sender, EventArgs e) { resetTab_ClearConnectionTexts(); if (!emg.IsConnected()) { SetActivePanel(panelConnect); linkSwitchEmg1c.Visible = true; panel8.Enabled = true; lblConnectionTitle.Text = "EMG Connection"; InitialEmgChart(); } else { SetActivePanel(PanelEMG); } activePanel = ActivePanel.PanelEMG; }
public override void TouchesEnded(NSSet touches, UIEvent evt) { base.TouchesEnded(touches, evt); ActivePanel.TouchesEnded( ); UITouch touch = (UITouch)touches.AnyObject; CGPoint posInMain = touch.LocationInView(MainPanel); // if they tap outside the window (in the shaded area) dismiss this. if ((posInMain.X < 0 || posInMain.X > MainPanel.Bounds.Width) || (posInMain.Y < 0 || posInMain.Y > MainPanel.Bounds.Height)) { // confirm they want to cancel //ConfirmCancel( ); DismissAnimated(false, null); } }
public override void ViewDidLayoutSubviews() { base.ViewDidLayoutSubviews( ); BlockerView.SetBounds(MainPanel.Bounds.ToRectF( )); BackgroundPanel.Bounds = View.Bounds; BackgroundPanel.Layer.Position = View.Layer.Position; // setup the scroll view and contents ScrollView.Bounds = MainPanel.Bounds; // layout the active view SearchPanel.ViewDidLayoutSubviews(MainPanel.Bounds); PeoplePanel.ViewDidLayoutSubviews(MainPanel.Bounds); CloseButton.Layer.Position = new CGPoint(MainPanel.Bounds.Width - CloseButton.Bounds.Width - 10, 5); nfloat scrollSize = Math.Max((float)ActivePanel.GetRootView( ).Frame.Bottom, (float)MainPanel.Bounds.Height) * 1.05f; ScrollView.ContentSize = new CGSize(MainPanel.Bounds.Width, scrollSize); }
private void UpdatePanels() { if (m_ActivePanelId.GetPrevious() != null) { // Register the transition out handler CDUIPanel panel = PreviouslyActivePanel.GetComponent <CDUIPanel>(); panel.EventTransitionOutFinished += PanelFinisehdTranstionOut; // Unregister the transition in handler just incase panel.EventTransitionInFinished -= PanelFinishedTranstionIn; // Transition this panel out panel.TransitionOut(); } else { // Set active and transition the current panel in ActivePanel.SetActive(true); CDUIPanel panel = ActivePanel.GetComponent <CDUIPanel>(); panel.TransitionIn(); } }
private string Write23_ActivePanel(ActivePanel v) { switch (v) { case ActivePanel.Unchanged: return "Unchanged"; case ActivePanel.Left: return "Left"; case ActivePanel.Right: return "Right"; } long num = (long) v; throw base.CreateInvalidEnumValueException(num.ToString(CultureInfo.InvariantCulture), "Nomad.Configuration.ActivePanel"); }
/* ЗАМЕТКА РАЗРАБОТЧИКУ * * В данном файле размещаются подпрограммы для управления файлами, которые * вызываются из MainWindow.cs. Также планируется использование этих подпрограмм * после реализации текстовой коммандной строки FC (которая внизу окна). * Все комманды работают с активной и пассивой панелью - Active/PassivePanel. * FC всегда их определяет сам. Пассивая панель - всегда получатель файлов. * Названия комманд - UNIX в верблюжьем регистре (Ls, Rm, MkDir, Touch и т.п.). * Всем коммандам параметры передаются строкой, но допускаются исключения, напр., * если базовая функция "перегружена" функцией для нужд графического интерфейса. * Sorry for my bad english. */ /// <summary> /// Reads the file <paramref name="url"/> and shows in FC Viewer /// </summary> /// <param name="url"></param> public void FCView(string url) { VEd fcv = new VEd(); pluginner.IFSPlugin fs = ActivePanel.FS; if (!fs.FileExists(url)) { //MessageBox.Show(string.Format(locale.GetString("FileNotFound"), ActivePanel.list.SelectedItems[0].Text), "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); Xwt.MessageDialog.ShowError(string.Format(Locale.GetString("FileNotFound"), ActivePanel.GetValue(ActivePanel.dfDisplayName))); return; } pluginner.File SelectedFile = fs.GetFile(url, new int()); string FileContent = Encoding.ASCII.GetString(fs.GetFileContent(url)); fcv.LoadFile(url, ActivePanel.FS, false); fcv.Show(); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Background mask BackgroundPanel = new UIView( ); BackgroundPanel.BackgroundColor = UIColor.Black; BackgroundPanel.Layer.Opacity = 0.00f; View.AddSubview(BackgroundPanel); // Floating "main" UI panel MainPanel = new UIView(); MainPanel.Layer.AnchorPoint = CGPoint.Empty; MainPanel.BackgroundColor = UIColor.Black; MainPanel.Layer.Opacity = 1.00f; MainPanel.Bounds = new CoreGraphics.CGRect(0, 0, View.Bounds.Width * .75f, View.Bounds.Height * .75f); View.AddSubview(MainPanel); // Scroll view on the right hand side ScrollView = new UIScrollViewWrapper( ); ScrollView.Layer.AnchorPoint = CGPoint.Empty; ScrollView.Parent = this; //ScrollView.BackgroundColor = Theme.GetColor( Config.Instance.VisualSettings.AddPersonBGColor ); ScrollView.BackgroundColor = Theme.GetColor(Config.Instance.VisualSettings.BackgroundColor); MainPanel.AddSubview(ScrollView); KeyboardAdjustManager = new KeyboardAdjustManager(MainPanel); SearchPanel = new SearchFamilyPanel(); SearchPanel.ViewDidLoad(this); PeoplePanel = new BrowsePeoplePanel(); PeoplePanel.ViewDidLoad(this); // add both views to the scrollView ScrollView.AddSubview(SearchPanel.GetRootView( )); ScrollView.AddSubview(PeoplePanel.GetRootView( )); // setup the initial panel positions SearchPanel.GetRootView( ).Bounds = ScrollView.Bounds; // hide the people/family panels until we know which one the user wants PeoplePanel.GetRootView( ).Layer.Position = new CGPoint(MainPanel.Bounds.Width, 0); PeoplePanel.GetRootView( ).Hidden = true; // add our Close Button CloseButton = UIButton.FromType(UIButtonType.System); CloseButton.Layer.AnchorPoint = CGPoint.Empty; CloseButton.SetTitle("X", UIControlState.Normal); Theme.StyleButton(CloseButton, Config.Instance.VisualSettings.DefaultButtonStyle); CloseButton.SizeToFit( ); CloseButton.BackgroundColor = UIColor.Clear; CloseButton.Layer.BorderWidth = 0; MainPanel.AddSubview(CloseButton); CloseButton.TouchUpInside += (object sender, EventArgs e) => { ActivePanel.TouchesEnded( ); //ConfirmCancel( ); DismissAnimated(false, null); }; // setup the blocker view BlockerView = new UIBlockerView(MainPanel, MainPanel.Bounds.ToRectF( )); ActivePanel = SearchPanel; MainPanel.Layer.CornerRadius = 4; // default to hidden until PresentAnimated() is called View.Hidden = true; }
private void btnCharts_Click(object sender, EventArgs e) { btnControls.ForeColor = Color.Black; SetActivePanel(panelCharts); activePanel = ActivePanel.PanelCharts; }