Пример #1
0
        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
 public void InitBaseMembers(StripManager manager, ParStrip parent)
 {
     base.InitBaseMembers(manager);
     mParent = parent;
 }