コード例 #1
0
ファイル: WorkAreaForm.cs プロジェクト: daisy/obi
        private string redo_label;          // for undo and redo

        public WorkAreaForm()
        {
            InitializeComponent();
            mStripManager = new StripManager(stripLayout);
            mUndoStack    = new UndoRedoStack();
            mMetadata     = new Metadata();
            metadataInfoPanel1.MetadataController = mMetadata;
            undo_label             = undoToolStripMenuItem.Text;
            redo_label             = redoToolStripMenuItem.Text;
            openFileDialog1.Filter = "Wave file|*.wav|Any file|*.*";
        }
コード例 #2
0
 /// <summary>
 /// The actual base constructor.
 /// Do not overload the constructor as it will not initialize the most specific model and user control.
 /// </summary>
 /// <param name="manager">The parent manager of the controller.</param>
 protected void InitBaseMembers(StripManager manager)
 {
     mManager  = manager;
     mSelected = false;
 }
コード例 #3
0
 /// <summary>
 /// Create a new strip, as well as a user control and a model.
 /// </summary>
 /// <param name="manager">The strip manager to which this strip belongs.</param>
 /// <param name="label">The label of the strip.</param>
 public Strip(StripManager manager, string label)
 {
     InitBaseMembers(manager);
     InitModelUserControl(label);
 }
コード例 #4
0
 /// <summary>
 /// Create an append container strip command. The strip will be created automagically.
 /// </summary>
 /// <param name="manager">The strip manager to append to.</param>
 public AppendParStripCommand(StripManager manager)
 {
     mManager = manager;
     // the strip will be created when the action is performed
     mStrip = null;
 }
コード例 #5
0
 public StructureStrip(StripManager manager, string label, ParStrip parent)
 {
     InitBaseMembers(manager, parent);
     InitModelUserControl(label, parent);
 }
コード例 #6
0
ファイル: SeqStrip.cs プロジェクト: daisy/obi
 public void InitBaseMembers(StripManager manager, ParStrip parent)
 {
     base.InitBaseMembers(manager);
     mParent = parent;
 }