The NamingPolicyInputDialog class provides a dialog which allows the user to select how to resolve a naming conflict. More...
#include <NamingPolicyInputDialog.h>
Public Member Functions | |
QString | autoGeneratedName () const |
Returns the current auto generated name. | |
void | endValidationCycle () |
Unchecks the "All in this cycle" check box. | |
bool | initialize (NamingPolicyFilter::NameValidity validity_result) |
Initializes the dialog with the speficic validity. | |
QObject * | objectBase () |
Returns the QObject* base of the interface. | |
const QObject * | objectBase () const |
Returns a const QObject* base of the interface. | |
NamingPolicyFilter::ResolutionPolicy | selectedResolution () const |
Returns the currect selected resolution. | |
void | setContext (int context_id, const QString &context_name, const QIcon &window_icon=QIcon()) |
Sets the context in which the naming policy filter is used. | |
void | setNamingPolicyFilter (NamingPolicyFilter *naming_policy_subject_filter) |
Sets the naming policy filter from which this dialog was constructed. | |
void | setObject (QObject *conflicting_obj) |
Sets the current object which is causing the conflict. | |
bool | useCycleResolution () const |
Indicates if the "All in this cycle" check box is selected. |
The NamingPolicyInputDialog class provides a dialog which allows the user to select how to resolve a naming conflict.
The NamingPolicyInputDialog is used when a naming policy filter detects a conflict and its resolution policy is set to PromptUser. The dialog presents the user with possible options on how to resolve the conflict.
Below is an example of the dialog in action.
|
inlinevirtual |
Returns a const QObject* base of the interface.
This function can be used in const methods, but make sure that you don't modify things that should stay const. An example where this is used is when we want to get a property on an object in a const method. This is a const operation.
Implements Qtilities::Core::Interfaces::IObjectBase.
Qtilities : Reference Documentation | Back to top |
Copyright © 2009-2013, Jaco Naudé
|