/[cits3200i]/branches/playback-branch-rvvs89/UWAPlugins/PlaybackPlugin/Source/PlaybackControl.Designer.cs


UCC Code Repository

Contents of /branches/playback-branch-rvvs89/UWAPlugins/PlaybackPlugin/Source/PlaybackControl.Designer.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (show annotations) (download)
Thu Sep 30 03:03:02 2010 UTC (11 years, 2 months ago) by rvvs89
File size: 9231 byte(s)
Implemented playback.
Timer resolution and playback bar resolution is currently hardcoded into PlaybackControl.
Removed some listeners from PlaybackControl that were not necessary.
Print current time and time limits to status bar.
Update current position of the playback bar is altered by the user.
If current state is Paused and Rewind or FastForward is pressed, then step back/forward one unit of STEP_SIZE.
Added FollowButton that causes the map to follow playback when checked.
Added FollowIcon for FollowButton.
Increased size of PlaybackDialog to accomodate the new button.
If LoopButton is checked, move back to the startTime if the currentTime exceeds endTime.
If LoopButton is not checked, go to stopped state if the end is reached.
If PlayButton is pressed and currentTime is equal to endTime, move it back to startTime.
If no section of track has been selected, use the entire track.
If a section of track has been selected, use that as the start and end limits for playback.
If a single point on the track has been selected, start playback from that point.
Display markers at the start and end limits.
Don't display markers at the start and end limits if they coincide with the start and end of the track.
On form closing, remove ST event listeners, restore previous selection of track, disable playback timer, hide map markers and dispose forms.
Moved icons that are not compiled in to the executable to a separate directory, Data (start.png, stop.png).
Restructured Plugin to allow other source files to reference it.
Attempt to find icons in the plugin data directory using references from Plugin.
Added PlaybackRouteControlSelection, a simple implementation of IRouteControlSelection to allow PlaybackPlugin to alter the selected area of track thereby allowing playback.
Added a hack to PlaybackControl to prevent problems with Visual Studio's Designer, though the designer still seems to think there are problems with properties.
Added CurrentTime property to PlaybackControl to automatically trigger UI updates when the currentTime is modified.
Added functions to calculate times from the distances provided by SportTracks selection utility since it provides no simple way to convert from distance to time, only from time to distance.
Added listener to SelectedItems on the route control to watch for user interaction, playback is moved to the point the user selected bounded to the current playback limits.
Modified build script to include the Data directory.
Reduced AssemblyInfo version number to 0.1 since this is an alpha.
Removed playing.cs, it doesn't do anything.
Probably some other things too.
1 namespace PlaybackPlugin.Source
2 {
3 partial class PlaybackControl
4 {
5 /// <summary>
6 /// Required designer variable.
7 /// </summary>
8 private System.ComponentModel.IContainer components = null;
9
10 /// <summary>
11 /// Clean up any resources being used.
12 /// </summary>
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
22
23 #region Component Designer generated code
24
25 /// <summary>
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
28 /// </summary>
29 private void InitializeComponent()
30 {
31 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlaybackControl));
32 this.rewindButton = new System.Windows.Forms.Button();
33 this.playButton = new System.Windows.Forms.Button();
34 this.fastForwardButton = new System.Windows.Forms.Button();
35 this.loopButton = new System.Windows.Forms.CheckBox();
36 this.speedLabel = new System.Windows.Forms.Label();
37 this.speedSpinner = new System.Windows.Forms.NumericUpDown();
38 this.playbackBar = new System.Windows.Forms.TrackBar();
39 this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();
40 this.statusStrip = new System.Windows.Forms.StatusStrip();
41 this.followButton = new System.Windows.Forms.CheckBox();
42 ((System.ComponentModel.ISupportInitialize)(this.speedSpinner)).BeginInit();
43 ((System.ComponentModel.ISupportInitialize)(this.playbackBar)).BeginInit();
44 this.SuspendLayout();
45 //
46 // rewindButton
47 //
48 this.rewindButton.Image = global::PlaybackPlugin.Properties.Resources.RewindIcon;
49 this.rewindButton.Location = new System.Drawing.Point(3, 3);
50 this.rewindButton.Name = "rewindButton";
51 this.rewindButton.Size = new System.Drawing.Size(38, 38);
52 this.rewindButton.TabIndex = 0;
53 this.rewindButton.UseVisualStyleBackColor = true;
54 this.rewindButton.Click += new System.EventHandler(this.rewindButton_Click);
55 //
56 // playButton
57 //
58 this.playButton.Image = global::PlaybackPlugin.Properties.Resources.PlayIcon;
59 this.playButton.Location = new System.Drawing.Point(47, 3);
60 this.playButton.Name = "playButton";
61 this.playButton.Size = new System.Drawing.Size(38, 38);
62 this.playButton.TabIndex = 1;
63 this.playButton.UseVisualStyleBackColor = true;
64 this.playButton.Click += new System.EventHandler(this.playButton_Click);
65 //
66 // fastForwardButton
67 //
68 this.fastForwardButton.Image = global::PlaybackPlugin.Properties.Resources.FastForwardIcon;
69 this.fastForwardButton.Location = new System.Drawing.Point(91, 3);
70 this.fastForwardButton.Name = "fastForwardButton";
71 this.fastForwardButton.Size = new System.Drawing.Size(38, 38);
72 this.fastForwardButton.TabIndex = 2;
73 this.fastForwardButton.UseVisualStyleBackColor = true;
74 this.fastForwardButton.Click += new System.EventHandler(this.fastForwardButton_Click);
75 //
76 // loopButton
77 //
78 this.loopButton.Appearance = System.Windows.Forms.Appearance.Button;
79 this.loopButton.AutoSize = true;
80 this.loopButton.Checked = true;
81 this.loopButton.CheckState = System.Windows.Forms.CheckState.Checked;
82 this.loopButton.Image = global::PlaybackPlugin.Properties.Resources.LoopIcon;
83 this.loopButton.Location = new System.Drawing.Point(135, 3);
84 this.loopButton.Name = "loopButton";
85 this.loopButton.Size = new System.Drawing.Size(38, 38);
86 this.loopButton.TabIndex = 3;
87 this.loopButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
88 this.loopButton.UseVisualStyleBackColor = true;
89 //
90 // speedLabel
91 //
92 this.speedLabel.AutoSize = true;
93 this.speedLabel.Location = new System.Drawing.Point(223, 16);
94 this.speedLabel.Name = "speedLabel";
95 this.speedLabel.Size = new System.Drawing.Size(41, 13);
96 this.speedLabel.TabIndex = 5;
97 this.speedLabel.Text = "Speed:";
98 //
99 // speedSpinner
100 //
101 this.speedSpinner.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
102 | System.Windows.Forms.AnchorStyles.Right)));
103 this.speedSpinner.Location = new System.Drawing.Point(270, 14);
104 this.speedSpinner.Minimum = new decimal(new int[] {
105 1,
106 0,
107 0,
108 0});
109 this.speedSpinner.Name = "speedSpinner";
110 this.speedSpinner.Size = new System.Drawing.Size(51, 20);
111 this.speedSpinner.TabIndex = 6;
112 this.speedSpinner.Value = new decimal(new int[] {
113 1,
114 0,
115 0,
116 0});
117 //
118 // playbackBar
119 //
120 this.playbackBar.Dock = System.Windows.Forms.DockStyle.Bottom;
121 this.playbackBar.Location = new System.Drawing.Point(0, 47);
122 this.playbackBar.Name = "playbackBar";
123 this.playbackBar.Size = new System.Drawing.Size(324, 45);
124 this.playbackBar.TabIndex = 9;
125 this.playbackBar.Scroll += new System.EventHandler(this.playbackBar_Scroll);
126 //
127 // statusLabel
128 //
129 this.statusLabel.Name = "statusLabel";
130 this.statusLabel.Size = new System.Drawing.Size(90, 17);
131 this.statusLabel.Text = "0:00:00 / 0:00:10";
132 //
133 // statusStrip
134 //
135 this.statusStrip.Location = new System.Drawing.Point(0, 92);
136 this.statusStrip.Name = "statusStrip";
137 this.statusStrip.Size = new System.Drawing.Size(324, 22);
138 this.statusStrip.SizingGrip = false;
139 this.statusStrip.TabIndex = 8;
140 this.statusStrip.Text = "statusBar";
141 //
142 // followButton
143 //
144 this.followButton.Appearance = System.Windows.Forms.Appearance.Button;
145 this.followButton.AutoSize = true;
146 this.followButton.Image = ((System.Drawing.Image)(resources.GetObject("followButton.Image")));
147 this.followButton.Location = new System.Drawing.Point(179, 3);
148 this.followButton.Name = "followButton";
149 this.followButton.Size = new System.Drawing.Size(38, 38);
150 this.followButton.TabIndex = 10;
151 this.followButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
152 this.followButton.UseVisualStyleBackColor = true;
153 //
154 // PlaybackControl
155 //
156 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
157 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
158 this.Controls.Add(this.followButton);
159 this.Controls.Add(this.playbackBar);
160 this.Controls.Add(this.statusStrip);
161 this.Controls.Add(this.speedSpinner);
162 this.Controls.Add(this.speedLabel);
163 this.Controls.Add(this.loopButton);
164 this.Controls.Add(this.fastForwardButton);
165 this.Controls.Add(this.playButton);
166 this.Controls.Add(this.rewindButton);
167 this.Name = "PlaybackControl";
168 this.Size = new System.Drawing.Size(324, 114);
169 ((System.ComponentModel.ISupportInitialize)(this.speedSpinner)).EndInit();
170 ((System.ComponentModel.ISupportInitialize)(this.playbackBar)).EndInit();
171 this.ResumeLayout(false);
172 this.PerformLayout();
173
174 }
175
176 #endregion
177
178 private System.Windows.Forms.Button rewindButton;
179 private System.Windows.Forms.Button playButton;
180 private System.Windows.Forms.Button fastForwardButton;
181 private System.Windows.Forms.CheckBox loopButton;
182 private System.Windows.Forms.Label speedLabel;
183 private System.Windows.Forms.NumericUpDown speedSpinner;
184 private System.Windows.Forms.TrackBar playbackBar;
185 private System.Windows.Forms.ToolStripStatusLabel statusLabel;
186 private System.Windows.Forms.StatusStrip statusStrip;
187 private System.Windows.Forms.CheckBox followButton;
188
189 }
190 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26