Skip to content

Commit

Permalink
Windows: Added tabs to Main window for Time Shifting, Pitch Shifting,…
Browse files Browse the repository at this point in the history
… Info and Actions. Added TabButton control which draws a line at the bottom of the control when IsSelected == true.

Related to issue #422.
  • Loading branch information
ycastonguay committed Aug 26, 2013
1 parent 887bec5 commit 0bfefa0
Show file tree
Hide file tree
Showing 6 changed files with 3,005 additions and 2,190 deletions.
2 changes: 1 addition & 1 deletion MPfm/MPfm.MVP/Services/PlayerService.cs
Expand Up @@ -61,7 +61,7 @@ public PlayerService(ITinyMessengerHub messageHub)
{
_messengerHub = messageHub;
}

public void Initialize(Device device, int sampleRate, int bufferSize, int updatePeriod)
{
_player = new MPfm.Player.Player(device, sampleRate, bufferSize, updatePeriod, true);
Expand Down
3,865 changes: 2,135 additions & 1,730 deletions MPfm/MPfm.Windows/Classes/Forms/frmMain.Designer.cs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions MPfm/MPfm.Windows/Classes/Forms/frmMain.cs
Expand Up @@ -1974,6 +1974,19 @@ public void EnableTooltips(bool enable)
// formUpdateLibraryStatus.toolTip.Active = enable;
}

private void btnTab_Click(object sender, EventArgs e)
{
btnTabTimeShifting.IsSelected = sender == btnTabTimeShifting;
btnTabPitchShifting.IsSelected = sender == btnTabPitchShifting;
btnTabInformation.IsSelected = sender == btnTabInformation;
btnTabActions.IsSelected = sender == btnTabActions;

panelTimeShifting.Visible = sender == btnTabTimeShifting;
panelPitchShifting.Visible = sender == btnTabPitchShifting;
panelInformation.Visible = sender == btnTabInformation;
panelActions.Visible = sender == btnTabActions;
}

#region IMainView implementation

public Action OnOpenPreferencesWindow { get; set; }
Expand Down

0 comments on commit 0bfefa0

Please sign in to comment.