Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ManagerView(ViewBase owner)
     : base(owner)
 {
     notebook = new Notebook();
     _mainWidget = notebook;
     Grid = new GridView(this);
     ScriptEditor = new EditorView(this);
     notebook.AppendPage(Grid.MainWidget, new Label("Properties"));
     notebook.AppendPage(ScriptEditor.MainWidget, new Label("Script"));
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InitialWaterView" /> class.
 /// </summary>
 public XYPairsView(ViewBase owner)
     : base(owner)
 {
     vpaned = new VPaned();
     _mainWidget = vpaned;
     gridView = new GridView(this);
     graphView = new GraphView(this);
     vpaned.Pack1(gridView.MainWidget, true, false);
     vpaned.Pack2(graphView.MainWidget, true, false);
 }
Exemple #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public InputView(ViewBase owner)
            : base(owner)
        {
            Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.InputView.glade", "vbox1");
            gxml.Autoconnect(this);
            _mainWidget = vbox1;

            Grid = new GridView(this);
            vbox1.PackStart(Grid.MainWidget, true, true, 0);
            button1.Clicked += OnBrowseButtonClick;
            label2.ModifyFg(StateType.Normal, new Gdk.Color(0xFF, 0x0, 0x0));
            _mainWidget.Destroyed += _mainWidget_Destroyed;
        }
Exemple #4
0
 public ProfileView(ViewBase owner)
     : base(owner)
 {
     Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.ProfileView.glade", "vpaned1");
     gxml.Autoconnect(this);
     _mainWidget = vpaned1;
     PropertyGrid = new GridView(this);
     vbox1.PackStart(PropertyGrid.MainWidget, true, true, 0);
     //vpaned1.Pack1(PropertyGrid.MainWidget, true, true);
     ProfileGrid = new GridView(this);
     vpaned2.Pack1(ProfileGrid.MainWidget, true, true);
     Graph = new GraphView(this);
     vpaned2.Pack2(Graph.MainWidget, true, false);
     Graph.MainWidget.Realized += GraphWidget_Realized;
 }
Exemple #5
0
 /// <summary>Initializes a new instance of the <see cref="DataStoreView" /> class.</summary>
 public DataStoreView(ViewBase owner)
     : base(owner)
 {
     Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.DataStoreView.glade", "vbox1");
     gxml.Autoconnect(this);
     _mainWidget = vbox1;
     gridView = new GridView(this);
     vbox1.PackStart(gridView.MainWidget, true, true, 0);
     vbox1.ReorderChild(hbox1, 2);
     dropDownView1 = new DropDownView(this);
     editView1 = new EditView(this);
     table1.Attach(dropDownView1.MainWidget, 1, 2, 0, 1);
     table1.Attach(editView1.MainWidget, 1, 2, 1, 2);
     editView2 = new EditView(this);
     hbox1.PackStart(editView2.MainWidget, false, false, 0);
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeProxyView" /> class.
 /// </summary>
 public TreeProxyView(ViewBase owner)
     : base(owner)
 {
     /// TBI this.InitializeComponent();
     this.pBelowGround = new OxyPlot.GtkSharp.PlotView(); /// TEMP
     this.pAboveGround = new OxyPlot.GtkSharp.PlotView(); /// TEMP
     this.gridView1 = new Views.GridView(this); /// TEMP
     this.pAboveGround.Model = new PlotModel();
     this.pBelowGround.Model = new PlotModel();
     plots.Add(pAboveGround);
     plots.Add(pBelowGround);
     smallestDate = DateTime.MaxValue;
     largestDate = DateTime.MinValue;
 }
Exemple #7
0
 /// <summary>Initializes a new instance of the <see cref="TabbedMetDataView"/> class.</summary>
 public TabbedMetDataView(ViewBase owner)
     : base(owner)
 {
     Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.TabbedMetDataView.glade", "vbox1");
     gxml.Autoconnect(this);
     _mainWidget = vbox1;
     graphViewSummary = new GraphView(this);
     alignSummary.Add(graphViewSummary.MainWidget);
     graphViewRainfall = new GraphView(this);
     vboxRainChart.PackEnd(graphViewRainfall.MainWidget);
     graphViewMonthlyRainfall = new GraphView(this);
     vboxRainMonthly.PackEnd(graphViewMonthlyRainfall.MainWidget);
     graphViewTemperature = new GraphView(this);
     vboxTemp.PackEnd(graphViewTemperature.MainWidget);
     graphViewRadiation = new GraphView(this);
     vboxRadn.PackEnd(graphViewRadiation.MainWidget);
     gridViewData = new GridView(this);
     gridViewData.ReadOnly = true;
     alignData.Add(gridViewData.MainWidget);
     button1.Clicked += OnButton1Click;
     spinStartYear.ValueChanged += OnGraphStartYearValueChanged;
     spinNYears.ValueChanged += OnGraphShowYearsValueChanged;
     notebook1.SwitchPage += TabControl1_SelectedIndexChanged;
     GraphStartYearMaxValue = 2100;
     GraphStartYearMinValue = 1900;
     GraphStartYearValue = 2000;
     GraphShowYearsValue = 1;
     worksheetCombo = new DropDownView(this);
     alignment10.Add(worksheetCombo.MainWidget);
     worksheetCombo.IsVisible = true;
     worksheetCombo.Changed += WorksheetCombo_Changed;
     _mainWidget.Destroyed += _mainWidget_Destroyed;
 }