예제 #1
0
    void HandleStageOperationRemovedFromStage(object sender, StageOperationParametersEventArgs e)
    {
        StageOperationHolderWidget sohw = (StageOperationHolderWidget)mStage.Holders[e.Target];

        Application.Invoke(delegate {
            stage_vbox.Remove(sohw);
            sohw.Hide();
            sohw.Dispose();

            ArrangeVBoxes();
        });
    }
예제 #2
0
    protected void ArrangeVBoxes()
    {
        // Arranging stage 2
        for (int i = 0; i < mStage.StageQueue.Count; i++)
        {
            StageOperationHolderWidget sohw = (StageOperationHolderWidget)mStage.Holders[mStage.StageQueue[i]];
            ((Gtk.Box.BoxChild)stage_vbox[sohw]).Position = i;

            //	if (sohw.Requisition.Width > maxWidth) maxWidth = sohw.Requisition.Width;
        }
        //if (maxWidth > 0)
        //	stage_vbox.SetSizeRequest(maxWidth, -1);
        stage_vbox.CheckResize();
    }
예제 #3
0
    void HandleStageOperationAddedToStage(object sender, StageOperationParametersEventArgs e)
    {
        StageOperationHolderWidget sohw = (StageOperationHolderWidget)mStage.Holders[e.Target];

        Application.Invoke(delegate {
            stage_vbox.Add(sohw);
            ((Gtk.Box.BoxChild)stage_vbox[sohw]).Fill   = false;
            ((Gtk.Box.BoxChild)stage_vbox[sohw]).Expand = false;


            sohw.Show();
            ArrangeVBoxes();
        });
    }