|
@@ -391,7 +391,7 @@ void FbMainWindow::createActions()
|
|
|
|
|
|
menu->addSeparator();
|
|
menu->addSeparator();
|
|
|
|
|
|
- actionSectSeparator = act = new QAction(tr("Section break"), this);
|
|
|
|
|
|
+ actionSimpleText = act = new QAction(tr("Simple text"), this);
|
|
menu->addAction(act);
|
|
menu->addAction(act);
|
|
|
|
|
|
actionParaSeparator = act = new QAction(tr("Paragraph"), this);
|
|
actionParaSeparator = act = new QAction(tr("Paragraph"), this);
|
|
@@ -434,6 +434,14 @@ void FbMainWindow::createActions()
|
|
menu->addAction(act);
|
|
menu->addAction(act);
|
|
act->setEnabled(false);
|
|
act->setEnabled(false);
|
|
|
|
|
|
|
|
+ menu->addSeparator();
|
|
|
|
+
|
|
|
|
+ actionSectionAdd = act = new FbTextAction(FbIcon("format-indent-more"), tr("Create section"), QWebPage::ToggleSubscript, this);
|
|
|
|
+ menu->addAction(act);
|
|
|
|
+
|
|
|
|
+ actionSectionDel = act = new FbTextAction(FbIcon("format-indent-less"), tr("Remove section"), QWebPage::ToggleSubscript, this);
|
|
|
|
+ menu->addAction(act);
|
|
|
|
+
|
|
menuView = menu = menuBar()->addMenu(tr("&View"));
|
|
menuView = menu = menuBar()->addMenu(tr("&View"));
|
|
|
|
|
|
tool->addSeparator();
|
|
tool->addSeparator();
|
|
@@ -709,10 +717,12 @@ void FbMainWindow::createTextToolbar()
|
|
connect(actionDate, SIGNAL(triggered()), textPage, SLOT(insertDate()));
|
|
connect(actionDate, SIGNAL(triggered()), textPage, SLOT(insertDate()));
|
|
connect(actionBody, SIGNAL(triggered()), textPage, SLOT(insertBody()));
|
|
connect(actionBody, SIGNAL(triggered()), textPage, SLOT(insertBody()));
|
|
|
|
|
|
- connect(actionSectSeparator, SIGNAL(triggered()), textPage, SLOT(separateSection()));
|
|
|
|
connect(actionParaSeparator, SIGNAL(triggered()), textEdit->pageAction(QWebPage::InsertParagraphSeparator), SIGNAL(triggered()));
|
|
connect(actionParaSeparator, SIGNAL(triggered()), textEdit->pageAction(QWebPage::InsertParagraphSeparator), SIGNAL(triggered()));
|
|
connect(actionLineSeparator, SIGNAL(triggered()), textEdit->pageAction(QWebPage::InsertLineSeparator), SIGNAL(triggered()));
|
|
connect(actionLineSeparator, SIGNAL(triggered()), textEdit->pageAction(QWebPage::InsertLineSeparator), SIGNAL(triggered()));
|
|
|
|
|
|
|
|
+ connect(actionSectionAdd, SIGNAL(triggered()), textPage, SLOT(createSection()));
|
|
|
|
+ connect(actionSectionDel, SIGNAL(triggered()), textPage, SLOT(deleteSection()));
|
|
|
|
+
|
|
connect(actionZoomIn, SIGNAL(triggered()), textEdit, SLOT(zoomIn()));
|
|
connect(actionZoomIn, SIGNAL(triggered()), textEdit, SLOT(zoomIn()));
|
|
connect(actionZoomOut, SIGNAL(triggered()), textEdit, SLOT(zoomOut()));
|
|
connect(actionZoomOut, SIGNAL(triggered()), textEdit, SLOT(zoomOut()));
|
|
connect(actionZoomReset, SIGNAL(triggered()), textEdit, SLOT(zoomReset()));
|
|
connect(actionZoomReset, SIGNAL(triggered()), textEdit, SLOT(zoomReset()));
|
|
@@ -725,7 +735,10 @@ void FbMainWindow::createTextToolbar()
|
|
textEdit->addTools(tool);
|
|
textEdit->addTools(tool);
|
|
|
|
|
|
tool->addSeparator();
|
|
tool->addSeparator();
|
|
|
|
+ tool->addAction(actionSectionAdd);
|
|
|
|
+ tool->addAction(actionSectionDel);
|
|
|
|
|
|
|
|
+ tool->addSeparator();
|
|
tool->addAction(actionImage);
|
|
tool->addAction(actionImage);
|
|
tool->addAction(actionNote);
|
|
tool->addAction(actionNote);
|
|
tool->addAction(actionLink);
|
|
tool->addAction(actionLink);
|