mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-05 06:32:34 +02:00
2014-11-01 Fred Gleason <fredg@paravelsystems.com>
* Modified 'rdlogedit/edit_log.cpp' so as to retain external data attributes only when pasting from a 'cut' operation.
This commit is contained in:
parent
eb6227b69e
commit
201e94b9ec
@ -14624,3 +14624,6 @@
|
|||||||
2014-11-01 Fred Gleason <fredg@paravelsystems.com>
|
2014-11-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Changed policy in 'rdlogedit/edit_log.cpp' so that pasted events
|
* Changed policy in 'rdlogedit/edit_log.cpp' so that pasted events
|
||||||
retain external data attributes.
|
retain external data attributes.
|
||||||
|
2014-11-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Modified 'rdlogedit/edit_log.cpp' so as to retain external data
|
||||||
|
attributes only when pasting from a 'cut' operation.
|
||||||
|
@ -954,7 +954,7 @@ void EditLog::downButtonData()
|
|||||||
|
|
||||||
void EditLog::cutButtonData()
|
void EditLog::cutButtonData()
|
||||||
{
|
{
|
||||||
copyButtonData();
|
LoadClipboard(false);
|
||||||
deleteButtonData();
|
deleteButtonData();
|
||||||
UpdateTracks();
|
UpdateTracks();
|
||||||
UpdateSelection();
|
UpdateSelection();
|
||||||
@ -963,17 +963,7 @@ void EditLog::cutButtonData()
|
|||||||
|
|
||||||
void EditLog::copyButtonData()
|
void EditLog::copyButtonData()
|
||||||
{
|
{
|
||||||
QListViewItem *next=edit_log_list->firstChild();
|
LoadClipboard(true);
|
||||||
|
|
||||||
edit_clipboard->clear();
|
|
||||||
while(next!=NULL) {
|
|
||||||
if((edit_log_list->isSelected(next))&&
|
|
||||||
(next->text(12).toInt()!=END_MARKER_ID)) {
|
|
||||||
edit_clipboard->
|
|
||||||
push_back(*edit_log_event->logLine(next->text(13).toInt()));
|
|
||||||
}
|
|
||||||
next=next->nextSibling();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -991,6 +981,7 @@ void EditLog::pasteButtonData()
|
|||||||
*edit_log_event->logLine(line+i)=edit_clipboard->at(i);
|
*edit_log_event->logLine(line+i)=edit_clipboard->at(i);
|
||||||
// edit_log_event->logLine(line+i)->clearExternalData();
|
// edit_log_event->logLine(line+i)->clearExternalData();
|
||||||
edit_log_event->logLine(line+i)->setSource(RDLogLine::Manual);
|
edit_log_event->logLine(line+i)->setSource(RDLogLine::Manual);
|
||||||
|
edit_clipboard->at(i).clearExternalData();
|
||||||
}
|
}
|
||||||
edit_changed=true;
|
edit_changed=true;
|
||||||
RefreshList();
|
RefreshList();
|
||||||
@ -1743,3 +1734,22 @@ bool EditLog::DeleteTracks()
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void EditLog::LoadClipboard(bool clear_ext)
|
||||||
|
{
|
||||||
|
QListViewItem *next=edit_log_list->firstChild();
|
||||||
|
|
||||||
|
edit_clipboard->clear();
|
||||||
|
while(next!=NULL) {
|
||||||
|
if((edit_log_list->isSelected(next))&&
|
||||||
|
(next->text(12).toInt()!=END_MARKER_ID)) {
|
||||||
|
edit_clipboard->
|
||||||
|
push_back(*edit_log_event->logLine(next->text(13).toInt()));
|
||||||
|
if(clear_ext) {
|
||||||
|
edit_clipboard->back().clearExternalData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
next=next->nextSibling();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -102,6 +102,7 @@ class EditLog : public QDialog
|
|||||||
void UpdateTracks();
|
void UpdateTracks();
|
||||||
bool DeleteTracks();
|
bool DeleteTracks();
|
||||||
bool ValidateSvc();
|
bool ValidateSvc();
|
||||||
|
void LoadClipboard(bool clear_ext);
|
||||||
RDListViewItem *SingleSelection();
|
RDListViewItem *SingleSelection();
|
||||||
RDLog *edit_log;
|
RDLog *edit_log;
|
||||||
RDLogEvent *edit_log_event;
|
RDLogEvent *edit_log_event;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user