Changeset View
Changeset View
Standalone View
Standalone View
src/cantor_part.cpp
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 119 | { | |||
---|---|---|---|---|---|
159 | 159 | | |||
160 | //central widget | 160 | //central widget | ||
161 | QWidget* widget = new QWidget(parentWidget); | 161 | QWidget* widget = new QWidget(parentWidget); | ||
162 | QVBoxLayout* layout = new QVBoxLayout(widget); | 162 | QVBoxLayout* layout = new QVBoxLayout(widget); | ||
163 | m_worksheet=new Worksheet(b, widget); | 163 | m_worksheet=new Worksheet(b, widget); | ||
164 | m_worksheetview=new WorksheetView(m_worksheet, widget); | 164 | m_worksheetview=new WorksheetView(m_worksheet, widget); | ||
165 | m_worksheetview->setEnabled(false); //disable input until the session has successfully logged in and emits the ready signal | 165 | m_worksheetview->setEnabled(false); //disable input until the session has successfully logged in and emits the ready signal | ||
166 | connect(m_worksheet, SIGNAL(modified()), this, SLOT(setModified())); | 166 | connect(m_worksheet, SIGNAL(modified()), this, SLOT(setModified())); | ||
167 | connect(m_worksheet, SIGNAL(showHelp(QString)), this, SIGNAL(showHelp(QString))); | 167 | connect(m_worksheet, SIGNAL(showHelp(QTextDocument*)), this, SIGNAL(showHelp(QTextDocument*))); | ||
168 | connect(m_worksheet, SIGNAL(loaded()), this, SLOT(initialized())); | 168 | connect(m_worksheet, SIGNAL(loaded()), this, SLOT(initialized())); | ||
169 | connect(collection, SIGNAL(inserted(QAction*)), m_worksheet, SLOT(registerShortcut(QAction*))); | 169 | connect(collection, SIGNAL(inserted(QAction*)), m_worksheet, SLOT(registerShortcut(QAction*))); | ||
170 | layout->addWidget(m_worksheetview); | 170 | layout->addWidget(m_worksheetview); | ||
171 | setWidget(widget); | 171 | setWidget(widget); | ||
172 | 172 | | |||
173 | //create WorksheetAccessInterface, used at the moment by LabPlot only to access Worksheet's API | 173 | //create WorksheetAccessInterface, used at the moment by LabPlot only to access Worksheet's API | ||
174 | Cantor::WorksheetAccessInterface* iface = new WorksheetAccessInterfaceImpl(this, m_worksheet); | 174 | Cantor::WorksheetAccessInterface* iface = new WorksheetAccessInterfaceImpl(this, m_worksheet); | ||
175 | Q_UNUSED(iface); | 175 | Q_UNUSED(iface); | ||
▲ Show 20 Lines • Show All 798 Lines • Show Last 20 Lines |