mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Merge remote-tracking branch 'rcutmore/feature-3250'
This commit is contained in:
commit
eba8b4a518
@ -174,6 +174,7 @@ CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undo
|
|||||||
connect (mCreate, SIGNAL (clicked (bool)), this, SLOT (create()));
|
connect (mCreate, SIGNAL (clicked (bool)), this, SLOT (create()));
|
||||||
|
|
||||||
connect (mId, SIGNAL (textChanged (const QString&)), this, SLOT (textChanged (const QString&)));
|
connect (mId, SIGNAL (textChanged (const QString&)), this, SLOT (textChanged (const QString&)));
|
||||||
|
connect (mId, SIGNAL (returnPressed()), this, SLOT (inputReturnPressed()));
|
||||||
|
|
||||||
connect (&mData, SIGNAL (idListChanged()), this, SLOT (dataIdListChanged()));
|
connect (&mData, SIGNAL (idListChanged()), this, SLOT (dataIdListChanged()));
|
||||||
}
|
}
|
||||||
@ -209,6 +210,14 @@ void CSVWorld::GenericCreator::textChanged (const QString& text)
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVWorld::GenericCreator::inputReturnPressed()
|
||||||
|
{
|
||||||
|
if (mCreate->isEnabled())
|
||||||
|
{
|
||||||
|
create();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CSVWorld::GenericCreator::create()
|
void CSVWorld::GenericCreator::create()
|
||||||
{
|
{
|
||||||
if (!mLocked)
|
if (!mLocked)
|
||||||
|
@ -116,6 +116,9 @@ namespace CSVWorld
|
|||||||
|
|
||||||
void textChanged (const QString& text);
|
void textChanged (const QString& text);
|
||||||
|
|
||||||
|
/// \brief Create record if able to after Return key is pressed on input.
|
||||||
|
void inputReturnPressed();
|
||||||
|
|
||||||
void create();
|
void create();
|
||||||
|
|
||||||
void scopeChanged (int index);
|
void scopeChanged (int index);
|
||||||
|
@ -60,6 +60,7 @@ CSVWorld::InfoCreator::InfoCreator (CSMWorld::Data& data, QUndoStack& undoStack,
|
|||||||
setManualEditing (false);
|
setManualEditing (false);
|
||||||
|
|
||||||
connect (mTopic, SIGNAL (textChanged (const QString&)), this, SLOT (topicChanged()));
|
connect (mTopic, SIGNAL (textChanged (const QString&)), this, SLOT (topicChanged()));
|
||||||
|
connect (mTopic, SIGNAL (returnPressed()), this, SLOT (inputReturnPressed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVWorld::InfoCreator::cloneMode (const std::string& originId,
|
void CSVWorld::InfoCreator::cloneMode (const std::string& originId,
|
||||||
@ -110,7 +111,7 @@ void CSVWorld::InfoCreator::topicChanged()
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
CSVWorld::Creator *CSVWorld::InfoCreatorFactory::makeCreator(CSMDoc::Document& document,
|
CSVWorld::Creator *CSVWorld::InfoCreatorFactory::makeCreator(CSMDoc::Document& document,
|
||||||
const CSMWorld::UniversalId& id) const
|
const CSMWorld::UniversalId& id) const
|
||||||
{
|
{
|
||||||
return new InfoCreator(document.getData(),
|
return new InfoCreator(document.getData(),
|
||||||
|
@ -87,6 +87,7 @@ CSVWorld::ReferenceCreator::ReferenceCreator (CSMWorld::Data& data, QUndoStack&
|
|||||||
setManualEditing (false);
|
setManualEditing (false);
|
||||||
|
|
||||||
connect (mCell, SIGNAL (textChanged (const QString&)), this, SLOT (cellChanged()));
|
connect (mCell, SIGNAL (textChanged (const QString&)), this, SLOT (cellChanged()));
|
||||||
|
connect (mCell, SIGNAL (returnPressed()), this, SLOT (inputReturnPressed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVWorld::ReferenceCreator::reset()
|
void CSVWorld::ReferenceCreator::reset()
|
||||||
|
@ -53,6 +53,7 @@ CSVWorld::StartScriptCreator::StartScriptCreator(
|
|||||||
insertBeforeButtons(mScript, true);
|
insertBeforeButtons(mScript, true);
|
||||||
|
|
||||||
connect(mScript, SIGNAL (textChanged(const QString&)), this, SLOT (scriptChanged()));
|
connect(mScript, SIGNAL (textChanged(const QString&)), this, SLOT (scriptChanged()));
|
||||||
|
connect(mScript, SIGNAL (returnPressed()), this, SLOT (inputReturnPressed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVWorld::StartScriptCreator::cloneMode(
|
void CSVWorld::StartScriptCreator::cloneMode(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user