mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
hooked up edit config signal from startup window
This commit is contained in:
parent
17bf7e59a4
commit
0e81fb32dd
@ -18,6 +18,7 @@ CS::Editor::Editor() : mViewManager (mDocumentManager)
|
||||
connect (&mStartup, SIGNAL (createGame()), this, SLOT (createDocument ())); /// \todo split
|
||||
connect (&mStartup, SIGNAL (createAddon()), this, SLOT (createDocument ()));
|
||||
connect (&mStartup, SIGNAL (loadDocument()), this, SLOT (loadDocument ()));
|
||||
connect (&mStartup, SIGNAL (editConfig()), this, SLOT (showSettings ()));
|
||||
|
||||
connect (&mFileDialog, SIGNAL(openFiles()), this, SLOT(openFiles()));
|
||||
connect (&mFileDialog, SIGNAL(createNewFile()), this, SLOT(createNewFile()));
|
||||
@ -127,6 +128,15 @@ void CS::Editor::showStartup()
|
||||
mStartup.activateWindow();
|
||||
}
|
||||
|
||||
void CS::Editor::showSettings()
|
||||
{
|
||||
if (mSettings.isHidden())
|
||||
mSettings.show();
|
||||
|
||||
mSettings.raise();
|
||||
mSettings.activateWindow();
|
||||
}
|
||||
|
||||
bool CS::Editor::makeIPCServer()
|
||||
{
|
||||
mServer = new QLocalServer(this);
|
||||
|
@ -9,12 +9,15 @@
|
||||
#ifndef Q_MOC_RUN
|
||||
#include <components/files/configurationmanager.hpp>
|
||||
#endif
|
||||
|
||||
#include "model/settings/usersettings.hpp"
|
||||
#include "model/doc/documentmanager.hpp"
|
||||
|
||||
#include "view/doc/viewmanager.hpp"
|
||||
#include "view/doc/startup.hpp"
|
||||
#include "view/doc/filedialog.hpp"
|
||||
#include "model/settings/usersettings.hpp"
|
||||
|
||||
#include "view/settings/usersettingsdialog.hpp"
|
||||
|
||||
namespace CS
|
||||
{
|
||||
@ -26,6 +29,7 @@ namespace CS
|
||||
CSMDoc::DocumentManager mDocumentManager;
|
||||
CSVDoc::ViewManager mViewManager;
|
||||
CSVDoc::StartupDialogue mStartup;
|
||||
CSVSettings::UserSettingsDialog mSettings;
|
||||
FileDialog mFileDialog;
|
||||
|
||||
Files::ConfigurationManager mCfgMgr;
|
||||
@ -55,6 +59,8 @@ namespace CS
|
||||
|
||||
void showStartup();
|
||||
|
||||
void showSettings();
|
||||
|
||||
private:
|
||||
|
||||
QString mIpcServerName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user