-/**
- * Searches for given text in editor content.
- * Displays window to set search parameters. If text is found sets cursor
- * position on it.
- */
-void Editor::findText()
-{
- QDialog dlg(this, Qt::Dialog);
- QString *txt;
- int res, line, pom;
-
- QLineEdit *tmpQLineEdit;
- tmpQLineEdit = new QLineEdit("", &dlg);
- tmpQLineEdit->setGeometry(60, 10, 180, 30);
-
- QLabel *tmpQLabel;
- tmpQLabel = new QLabel(&dlg);
- tmpQLabel->setGeometry(10, 10, 50, 30);
-
- tmpQLabel->setText("Text:");
-
- QCheckBox *tmpQRadioButton;
- tmpQRadioButton = new QCheckBox("Case sensitive", &dlg);
- tmpQRadioButton->setGeometry(70, 50, 150, 30);
- tmpQRadioButton->setAutoRepeat(FALSE);
-
-/*TODO: Does not exists in Qt4. Use layout and set the size policy (https://qt-project.org/forums/viewthread/2112)
- tmpQRadioButton->setAutoResize(FALSE);
-*/
-
- QPushButton *okbtn, *cbtn;
- okbtn = new QPushButton("Find", &dlg);
- okbtn->setGeometry(260, 10, 100, 30);
- okbtn->setDefault(TRUE);
- connect(okbtn,SIGNAL(clicked()), &dlg, SLOT(accept()));
-
- cbtn = new QPushButton("Close", &dlg);
- cbtn->setGeometry(260, 50, 100, 30);
- connect(cbtn, SIGNAL(clicked()), &dlg, SLOT(reject()));
- dlg.resize(380, 90);
-
- if (dlg.exec()) {
- sensitive = tmpQRadioButton->isChecked();
- find_text = tmpQLineEdit->text();
-
- QTextDocument::FindFlags flags = 0;
-
- if (sensitive) {
- flags |= QTextDocument::FindCaseSensitively;
- }
- e->find(find_text, flags);
- }
-}
-
-/**
- * Searches for next occurence of given text in editor content.
- * Displays window to set search parameters. If text is found sets cursor
- * position on it.
- */
-void Editor::find_next()
-{
- if (!find_text.isEmpty()) {
- QTextDocument::FindFlags flags = 0;
-
- if (sensitive) {
- flags |= QTextDocument::FindCaseSensitively;
- }
- e->find(find_text, flags);
- }
-}
-void Editor::on_actionNew_triggered()
-{
-}
-void Editor::on_actionOpen_triggered()
-{
-}
-void Editor::on_actionSave_triggered()
-{
-}
-void Editor::on_actionSave_as_triggered()
-{
-}
-void Editor::on_actionQuit_triggered()
-{
-}
-void Editor::on_actionCopy_triggered()
-{
-}
-void Editor::on_actionPaste_triggered()
-{
-}
-void Editor::on_actionCut_triggered()
-{
-}
-void Editor::on_actionClear_all_triggered()
-{
-}
-void Editor::on_actionFind_triggered()
-{
-}
-void Editor::on_actionFind_Next_triggered()
-{
-}
-