Workspace 6.21.5
Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
ModifyMergedDifferencesWidget Class Reference

Offers user input to an auto merge process, such as choosing to ignore a merge or (to be implemented) choose which workflow to choose in case of conflict.

#include <Tools/Widgets/modifymergeddifferenceswidget.h>

Inheritance diagram for ModifyMergedDifferencesWidget:
[legend]

Public Slots

void onActionChanged ()
 
void onChangeSelection (const QUuid &id)
 
void widgetUpdated ()
 
- Public Slots inherited from OperationConnectionWidget
void connectToOperation (CSIRO::DataExecution::Operation *op)
 
bool hasOutstandingDataUpdateRequests () const
 
void requestUpdateData ()
 
void requestUpdateWidget ()
 

Signals

void actionsChanged ()
 
void selectionChanged (const QUuid &id)
 

Public Member Functions

 ModifyMergedDifferencesWidget (QWidget *parent=0)
 
 ~ModifyMergedDifferencesWidget () override
 
void clear ()
 
MergeProgressWidgetprogressWidget ()
 
void updateData () override
 
void updateWidget () override
 
- Public Member Functions inherited from OperationConnectionWidget
 OperationConnectionWidget (QWidget *parent=nullptr)
 
 ~OperationConnectionWidget () override
 
virtual void updateData ()=0
 
virtual void updateWidget ()=0
 

Protected Slots

void onApplyClicked ()
 
void onResetClicked ()
 

Additional Inherited Members

- Protected Member Functions inherited from OperationConnectionWidget
virtual void connectedToOperation ()
 
DataExecution::OperationgetOperation ()
 

Constructor & Destructor Documentation

◆ ModifyMergedDifferencesWidget()

ModifyMergedDifferencesWidget ( QWidget *  parent = 0)
explicit

◆ ~ModifyMergedDifferencesWidget()

~ModifyMergedDifferencesWidget ( )
overridedefault

Member Function Documentation

◆ actionsChanged

void actionsChanged ( )
signal

◆ clear()

void clear ( )

◆ onActionChanged

void onActionChanged ( )
slot

◆ onApplyClicked

void onApplyClicked ( )
protectedslot

◆ onChangeSelection

void onChangeSelection ( const QUuid &  id)
slot

◆ onResetClicked

void onResetClicked ( )
protectedslot

◆ progressWidget()

MergeProgressWidget & progressWidget ( )

◆ selectionChanged

void selectionChanged ( const QUuid &  id)
signal

◆ updateData()

void updateData ( )
overridevirtual

This function is called whenever the widget requests to update data via the requestUpdateData() function. Its job is to assign data from the widget to the various inputs of the attached Operation.

Note
This is the only function in which updates to the operation can take place. Assigning data to the operation in any other location is unsafe and will result in undefined behaviour. For this reason, never directly call updateData() - instead, call requestUpdateData()

Implements OperationConnectionWidget.

◆ updateWidget()

void updateWidget ( )
overridevirtual

This function is called whenever the widget is requested to be updated via a call to requestUpdateWidget(). Its job is to update the widget when the operation's data has changed. Workspace will make sure to invoke this function as needed.

Note
This is the only function in which operation data should be accessed in order to update the widget. Accessing operation data at other times is not safe and will result in undefined behaviour.

Implements OperationConnectionWidget.

◆ widgetUpdated

void widgetUpdated ( )
slot

Example slot. Connect your UI widgets to a slot like this when you need to update the operation based on changes in the UI.