"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/GUI/DialogRecordSchedule.cpp" between
ssr-0.4.1.tar.gz and ssr-0.4.2.tar.gz

About: SimpleScreenRecorder is a screen (video-audio) recorder for Linux.

DialogRecordSchedule.cpp  (ssr-0.4.1):DialogRecordSchedule.cpp  (ssr-0.4.2)
skipping to change at line 203 skipping to change at line 203
} }
m_widgetrack_schedule->AddWidget(index, widget); m_widgetrack_schedule->AddWidget(index, widget);
m_widgetrack_schedule->SetSelected(index); m_widgetrack_schedule->SetSelected(index);
m_widgetrack_schedule->MakeVisible(widget); m_widgetrack_schedule->MakeVisible(widget);
} }
void DialogRecordSchedule::OnRemove() { void DialogRecordSchedule::OnRemove() {
unsigned int selected = m_widgetrack_schedule->GetSelected(); unsigned int selected = m_widgetrack_schedule->GetSelected();
if(selected != WidgetRack::NO_SELECTION) { if(selected != WidgetRack::NO_SELECTION) {
m_widgetrack_schedule->RemoveWidget(selected); m_widgetrack_schedule->RemoveWidget(selected);
if(selected < m_widgetrack_schedule->GetWidgetCount()) {
m_widgetrack_schedule->SetSelected(selected);
} else if(m_widgetrack_schedule->GetWidgetCount() != 0) {
m_widgetrack_schedule->SetSelected(m_widgetrack_schedule-
>GetWidgetCount() - 1);
}
} }
} }
void DialogRecordSchedule::OnMoveUp() { void DialogRecordSchedule::OnMoveUp() {
unsigned int selected = m_widgetrack_schedule->GetSelected(); unsigned int selected = m_widgetrack_schedule->GetSelected();
if(selected != WidgetRack::NO_SELECTION && selected > 0) { if(selected != WidgetRack::NO_SELECTION && selected > 0) {
m_widgetrack_schedule->MoveWidget(selected, selected - 1); m_widgetrack_schedule->MoveWidget(selected, selected - 1);
m_widgetrack_schedule->MakeVisible(m_widgetrack_schedule->GetWidg et(selected - 1)); m_widgetrack_schedule->MakeVisible(m_widgetrack_schedule->GetWidg et(selected - 1));
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)