00001 /*******************************************************************************
-00002
-00003 This file is part of mDictionary.
-00004
-00005 mDictionary is free software: you can redistribute it and/or modify
-00006 it under the terms of the GNU General Public License as published by
-00007 the Free Software Foundation, either version 3 of the License, or
-00008 (at your option) any later version.
-00009
-00010 mDictionary is distributed in the hope that it will be useful,
-00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
-00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-00013 GNU General Public License for more details.
-00014
-00015 You should have received a copy of the GNU General Public License
-00016 along with mDictionary. If not, see <http://www.gnu.org/licenses/>.
-00017
-00018 Copyright 2010 Comarch S.A.
-00019
-00020 *******************************************************************************/
-00024
-00025 #ifndef TRANSLATIONWIDGET_H
-00026 #define TRANSLATIONWIDGET_H
-00027
-00028 #include <QWidget>
-00029 #include <QModelIndex>
-00030 #include <QtGui>
-00031 #include "../backbone/backbone.h"
-00032 #include "TranslationWidgetAutoResizer.h"
-00033
-00035
-00038class TranslationWidget : public QScrollArea {
-00039 Q_OBJECT
-00040 public:
-00041 explicitTranslationWidget(QWidget *parent = 0);
-00042
-00043 Q_SIGNALS:
-00044 void updateSize();
-00045
-00046 public Q_SLOTS:
-00048 voidshow();
-00049
-00051 voidshow(QStringList);
-00052
-00053
-00054 private:
-00055 QTextEdit *textEdit;
-00056 QToolButton* zoomInToolButton;
-00057 QToolButton* zoomOutToolButton;
-00058 #ifdef Q_WS_MAEMO_5
-00059 QToolButton* fullScreenButton;
-00060 QToolButton* backButton;
-00061 #endif
-00062 QVBoxLayout *verticalLayout;
-00063 QHBoxLayout* horizontalLayout;
-00064 TranslationWidgetAutoResizer* resizer;
-00065
-00066 void initializeUI();
-00067
-00068 };
-00069
-00070 #endif // TRANSLATIONWIDGET_H
-