mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-04 15:57:59 +03:00
Merge branch 'master' into pathgrid-edit
Conflicts: apps/opencs/view/render/cell.cpp apps/opencs/view/render/mousestate.cpp
This commit is contained in:
commit
a02448f0ba
258 changed files with 4373 additions and 951 deletions
|
@ -23,8 +23,8 @@
|
|||
|
||||
CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
||||
: mUserSettings (mCfgMgr), mOverlaySystem (0), mDocumentManager (mCfgMgr),
|
||||
mViewManager (mDocumentManager),
|
||||
mIpcServerName ("org.openmw.OpenCS"), mServer(NULL), mClientSocket(NULL), mPid(""), mLock()
|
||||
mViewManager (mDocumentManager), mPid(""),
|
||||
mLock(), mIpcServerName ("org.openmw.OpenCS"), mServer(NULL), mClientSocket(NULL)
|
||||
{
|
||||
std::pair<Files::PathContainer, std::vector<std::string> > config = readConfig();
|
||||
|
||||
|
@ -67,9 +67,11 @@ CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|||
|
||||
connect (&mFileDialog, SIGNAL(signalCreateNewFile (const boost::filesystem::path&)),
|
||||
this, SLOT(createNewFile (const boost::filesystem::path&)));
|
||||
connect (&mFileDialog, SIGNAL (rejected()), this, SLOT (cancelFileDialog ()));
|
||||
|
||||
connect (&mNewGame, SIGNAL (createRequest (const boost::filesystem::path&)),
|
||||
this, SLOT (createNewGame (const boost::filesystem::path&)));
|
||||
connect (&mNewGame, SIGNAL (cancelCreateGame()), this, SLOT (cancelCreateGame ()));
|
||||
}
|
||||
|
||||
CS::Editor::~Editor ()
|
||||
|
@ -176,12 +178,40 @@ void CS::Editor::createGame()
|
|||
mNewGame.activateWindow();
|
||||
}
|
||||
|
||||
void CS::Editor::cancelCreateGame()
|
||||
{
|
||||
if (!mDocumentManager.isEmpty())
|
||||
return;
|
||||
|
||||
mNewGame.hide();
|
||||
|
||||
if (mStartup.isHidden())
|
||||
mStartup.show();
|
||||
|
||||
mStartup.raise();
|
||||
mStartup.activateWindow();
|
||||
}
|
||||
|
||||
void CS::Editor::createAddon()
|
||||
{
|
||||
mStartup.hide();
|
||||
mFileDialog.showDialog (CSVDoc::ContentAction_New);
|
||||
}
|
||||
|
||||
void CS::Editor::cancelFileDialog()
|
||||
{
|
||||
if (!mDocumentManager.isEmpty())
|
||||
return;
|
||||
|
||||
mFileDialog.hide();
|
||||
|
||||
if (mStartup.isHidden())
|
||||
mStartup.show();
|
||||
|
||||
mStartup.raise();
|
||||
mStartup.activateWindow();
|
||||
}
|
||||
|
||||
void CS::Editor::loadDocument()
|
||||
{
|
||||
mStartup.hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue