Skip to content
Snippets Groups Projects
Commit ea6c2acb authored by Olivier Langella's avatar Olivier Langella
Browse files

set central widget

parent 82641a97
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5
#sudo apt-get install libpappsomspp-dev
#FIND_PACKAGE( Pappsomspp REQUIRED )
# SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp")
SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp")
SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp")
# SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp")
SET (PAPPSOMSPP_INCLUDE_DIR "${PAPPSOMSPP_DIR}/src")
SET (PAPPSOMSPP_QT4_LIBRARY "${PAPPSOMSPP_DIR}/cbuild/src/libpappsomspp-qt4.so")
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>286</width>
<height>372</height>
<width>463</width>
<height>383</height>
</rect>
</property>
<property name="windowTitle">
......@@ -17,19 +17,21 @@
<iconset resource="../xtpcpp.qrc">
<normaloff>:/xtpcpp_icon/resources/xtandempipeline_icon.svg</normaloff>:/xtpcpp_icon/resources/xtandempipeline_icon.svg</iconset>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout"/>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>286</width>
<height>33</height>
<width>463</width>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
<string>F&amp;ile</string>
</property>
<addaction name="actionLoad"/>
</widget>
......@@ -38,7 +40,7 @@
<widget class="QStatusBar" name="statusbar"/>
<action name="actionLoad">
<property name="text">
<string>Load</string>
<string>&amp;Load</string>
</property>
</action>
</widget>
......
......@@ -66,7 +66,11 @@ MainWindow::MainWindow(QWidget *parent):
workerThread.start();
_protein_list_window = new ProteinListWindow(this);
_project_window = new ProjectWindow(this);
ui->centralwidget->layout()->addWidget(_project_window);
_project_window->show();
//_protein_list_window = new ProteinListWindow(this);
//QDockWidget *dock = new QDockWidget(tr("Protein List"), this);
//dock->setWidget(_protein_list_window);
//addDockWidget(Qt::RightDockWidgetArea, dock);
......@@ -99,6 +103,7 @@ MainWindow::~MainWindow()
workerThread.wait();
//if (_p_ms_data_file != nullptr) delete _p_ms_data_file;
delete ui;
delete _project_window;
}
......
......@@ -37,6 +37,7 @@
#include "protein_list_view/proteinlistwindow.h"
#include "core/project.h"
#include "files/xpipfile.h"
#include "project_view/projectwindow.h"
......@@ -99,6 +100,7 @@ private :
ProjectSp _project_sp=nullptr;
ProteinListWindow * _protein_list_window=nullptr;
ProjectWindow * _project_window=nullptr;
};
......
......@@ -23,6 +23,7 @@
#include "projectwindow.h"
#include "ui_project_view.h"
#include "../mainwindow.h"
ProjectWindow::ProjectWindow(MainWindow *parent):
......
......@@ -26,7 +26,8 @@
#include <QMainWindow>
#include "../../core/project.h"
#include "../mainwindow.h"
class MainWindow;
//http://doc.qt.io/qt-4.8/qt-itemviews-chart-mainwindow-cpp.html
namespace Ui {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment