mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-10 18:03:55 +00:00
Fix group cue frame and add collapsing
This commit is contained in:
@@ -13,6 +13,7 @@ namespace qController.ViewModels
|
||||
{
|
||||
QCue cue;
|
||||
bool isSelected = false;
|
||||
bool isCollapsed = false;
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public QCueViewModel(QCue cue, bool checkPlayback)
|
||||
@@ -56,6 +57,14 @@ namespace qController.ViewModels
|
||||
IsSelected = args.cueID == cue.uid;
|
||||
}
|
||||
|
||||
public Thickness nestPadding
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Thickness((cue.nestLevel - 1) * 10,0,0,0);
|
||||
}
|
||||
}
|
||||
|
||||
public string name
|
||||
{
|
||||
get
|
||||
@@ -135,5 +144,18 @@ namespace qController.ViewModels
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsCollapsed
|
||||
{
|
||||
get
|
||||
{
|
||||
return isCollapsed;
|
||||
}
|
||||
set
|
||||
{
|
||||
isCollapsed = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user