mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-04 15:57:59 +03:00
Merge branch 'master' into cc9cii
Conflicts: apps/opencs/model/settings/usersettings.cpp apps/opencs/view/doc/view.cpp apps/opencs/view/world/table.cpp apps/opencs/view/world/table.hpp
This commit is contained in:
commit
f989bfcd42
204 changed files with 3344 additions and 662 deletions
|
@ -26,8 +26,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();
|
||||
|
||||
|
@ -70,9 +70,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 ()
|
||||
|
@ -179,12 +181,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