|
|
@ -112,24 +112,9 @@ namespace Plugin
|
|
|
|
|
|
|
|
|
|
|
|
void GeorgesEditorForm::open()
|
|
|
|
void GeorgesEditorForm::open()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/*qDebug() << "GeorgesEditorForm::open()";
|
|
|
|
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Form"));
|
|
|
|
if (!m_dockedWidgets.size())
|
|
|
|
if(!fileName.isNull())
|
|
|
|
{
|
|
|
|
loadFile(fileName);
|
|
|
|
m_dockedWidgets.append(new CGeorgesTreeViewDialog(m_mainDock));
|
|
|
|
|
|
|
|
m_mainDock->addDockWidget(Qt::RightDockWidgetArea, m_dockedWidgets.last());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_dockedWidgets.append(new CGeorgesTreeViewDialog(m_mainDock));
|
|
|
|
|
|
|
|
Q_ASSERT(m_dockedWidgets.size() > 1);
|
|
|
|
|
|
|
|
m_mainDock->tabifyDockWidget(m_dockedWidgets.at(m_dockedWidgets.size() - 2), m_dockedWidgets.last());
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: FileDialog & loadFile();
|
|
|
|
|
|
|
|
//m_mainDock->addDockWidget(Qt::TopDockWidgetArea, new CGeorgesTreeViewDialog(m_mainDock, true));
|
|
|
|
|
|
|
|
//m_mainDock->addDockWidget(Qt::LeftDockWidgetArea, new CGeorgesTreeViewDialog(m_mainDock, true));
|
|
|
|
|
|
|
|
//QString fileName = QFileDialog::getOpenFileName();
|
|
|
|
|
|
|
|
//loadFile(fileName);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GeorgesEditorForm::newFile()
|
|
|
|
void GeorgesEditorForm::newFile()
|
|
|
|