# HG changeset patch
# User insilmaril
# Date 1259162885 0
# Node ID 0a1abd218f3698ce1127d2855ea3a19e8c975524
# Parent  b163492fda1732f324eb7a831c7edfc52f696d22
Removing unneeded findwindow.*

diff -r b163492fda17 -r 0a1abd218f36 findwindow.cpp
--- a/findwindow.cpp	Wed Nov 25 15:27:22 2009 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-#include <QLineEdit>
-#include <QVBoxLayout>
-#include <QLabel>
-
-#include "findwindow.h"
-
-
-extern QString vymName;
-
-FindWindow::FindWindow(QWidget* parent)
-	//: QGroupBox( tr("Find"), parent )
-
-{
-	//setWindowTitle(vymName + " - " +tr("Find Text"));
-
-    QVBoxLayout* mainLayout = new QVBoxLayout;
-    
-    QHBoxLayout *row1Layout = new QHBoxLayout;
-	/*
-    // Create a Label
-    QLabel* label = new QLabel;
-    label->setText( tr("Text to find:"));
-    row1Layout->addWidget( label );
-	*/
-
-	// Create LineEdit (here QComboBox)
-    QHBoxLayout *row2Layout = new QHBoxLayout;
-    findcombo = new QComboBox;
-	findcombo->setMinimumWidth(250);
-	findcombo->setEditable(true);
-	connect ( findcombo, SIGNAL( highlighted(int) ), 
-		this, SLOT( findPressed() ) );
-	connect ( findcombo, SIGNAL( textChanged(const QString &) ), 
-		this, SLOT( findTextChanged(const QString&) ) );
-
-	row2Layout->addWidget(findcombo);
-
-	// Create Buttons
-    //QHBoxLayout *row3Layout = new QHBoxLayout;
-	clearbutton = new QPushButton;
-	clearbutton->setText(tr("Clear"));
-	connect ( clearbutton, SIGNAL( clicked() ), this, SLOT( clearLineEdit() ) );
-	row2Layout->addWidget (clearbutton);
-	
-	cancelbutton = new QPushButton;
-	cancelbutton->setText(tr("Cancel"));
-	cancelbutton->setShortcut (Qt::Key_Escape);
-	connect ( cancelbutton, SIGNAL( clicked() ), this, SLOT( cancelPressed() ) );
-	row2Layout->addWidget (cancelbutton);
-	
-	findbutton = new QPushButton;
-	findbutton->setText (tr("Find"));
-	findbutton->setDefault (true);
-	findbutton->setShortcut (Qt::Key_Return);
-	connect ( findbutton, SIGNAL( clicked() ), this, SLOT( findPressed() ) );
-
-	//row2Layout->addStretch(2);
-	row2Layout->addWidget(findbutton);
-
-	mainLayout->addLayout (row1Layout);
-	mainLayout->addLayout (row2Layout);
-	//mainLayout->addLayout (row3Layout);
-	setLayout (mainLayout);
-}
-
-void FindWindow::popup()
-{
-	show();
-	findcombo->lineEdit()->selectAll();
-	findcombo->setFocus();
-}
-
-void FindWindow::cancelPressed()
-{
-	hide();
-}
-
-void FindWindow::findPressed()
-{
-	emit (findButton(findcombo->currentText() ) );
-}
-
-void FindWindow::findTextChanged(const QString&)
-{
-	emit (somethingChanged() );
-}
-
-void FindWindow::clearLineEdit()
-{
-	findcombo->lineEdit()->clear();
-}
diff -r b163492fda17 -r 0a1abd218f36 findwindow.h
--- a/findwindow.h	Wed Nov 25 15:27:22 2009 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#ifndef FINDWINDOW_H 
-#define FINDWINDOW_H
-
-#include <QMainWindow>
-#include <QComboBox>
-#include <QPushButton>
-#include <QGroupBox>
-#include <QLayout>
-#include <QLabel>
-
-
-class FindWindow : public QWidget
-{
-	Q_OBJECT
-
-public:
-	FindWindow (QWidget* parent=0);
-
-public slots:	
-	void popup();
-	void cancelPressed();
-	void findPressed();
-	void findTextChanged(const QString&);
-	void clearLineEdit();
-
-signals:
-	void findButton(QString);		// emit to mainwindow
-	void somethingChanged();	// emit to mainwindow
-
-private:
-	QGroupBox *findbox;
-	QComboBox *findcombo;
-	QPushButton *clearbutton;
-	QPushButton *findbutton;
-	QPushButton *cancelbutton;
-};
-
-
-#endif