Changeset View
Changeset View
Standalone View
Standalone View
src/cantor_part.cpp
Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Line(s) | 120 | { | |||
---|---|---|---|---|---|
281 | actionCollection()->addAction(QLatin1String("insert_command_entry"), insertCommandEntry); | 281 | actionCollection()->addAction(QLatin1String("insert_command_entry"), insertCommandEntry); | ||
282 | actionCollection()->setDefaultShortcut(insertCommandEntry, Qt::CTRL + Qt::Key_Return); | 282 | actionCollection()->setDefaultShortcut(insertCommandEntry, Qt::CTRL + Qt::Key_Return); | ||
283 | connect(insertCommandEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertCommandEntry())); | 283 | connect(insertCommandEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertCommandEntry())); | ||
284 | 284 | | |||
285 | QAction * insertTextEntry=new QAction(i18n("Insert Text Entry"), actionCollection()); | 285 | QAction * insertTextEntry=new QAction(i18n("Insert Text Entry"), actionCollection()); | ||
286 | actionCollection()->addAction(QLatin1String("insert_text_entry"), insertTextEntry); | 286 | actionCollection()->addAction(QLatin1String("insert_text_entry"), insertTextEntry); | ||
287 | connect(insertTextEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertTextEntry())); | 287 | connect(insertTextEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertTextEntry())); | ||
288 | 288 | | |||
289 | QAction * insertMarkdownEntry=new QAction(i18n("Insert Markdown Entry"), actionCollection()); | ||||
290 | actionCollection()->addAction(QLatin1String("insert_markdown_entry"), insertMarkdownEntry); | ||||
291 | connect(insertMarkdownEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertMarkdownEntry())); | ||||
292 | | ||||
289 | QAction * insertLatexEntry=new QAction(i18n("Insert Latex Entry"), actionCollection()); | 293 | QAction * insertLatexEntry=new QAction(i18n("Insert Latex Entry"), actionCollection()); | ||
290 | actionCollection()->addAction(QLatin1String("insert_latex_entry"), insertLatexEntry); | 294 | actionCollection()->addAction(QLatin1String("insert_latex_entry"), insertLatexEntry); | ||
291 | connect(insertLatexEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertLatexEntry())); | 295 | connect(insertLatexEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertLatexEntry())); | ||
292 | 296 | | |||
293 | QAction * insertPageBreakEntry=new QAction(i18n("Insert Page Break"), actionCollection()); | 297 | QAction * insertPageBreakEntry=new QAction(i18n("Insert Page Break"), actionCollection()); | ||
294 | actionCollection()->addAction(QLatin1String("insert_page_break_entry"), insertPageBreakEntry); | 298 | actionCollection()->addAction(QLatin1String("insert_page_break_entry"), insertPageBreakEntry); | ||
295 | connect(insertPageBreakEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertPageBreakEntry())); | 299 | connect(insertPageBreakEntry, SIGNAL(triggered()), m_worksheet, SLOT(insertPageBreakEntry())); | ||
296 | 300 | | |||
▲ Show 20 Lines • Show All 596 Lines • Show Last 20 Lines |