00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef PICTURESIZEDIALOG_H_
00027 #define PICTURESIZEDIALOG_H_
00028
00029 #include <QtGui/QDialog>
00030 #include "../../ui_pictureSizeDialog.h"
00031
00032 class DiaryControls;
00033
00034 class PictureSizeDialog: public QDialog
00035 {
00036 Q_OBJECT
00037 public:
00038 PictureSizeDialog(DiaryControls *aParent);
00039 void resetValues(const QString aPictureBeingAdded, const QString aPicturePath, int height, int width);
00040 void HandleUiLanguageChange();
00041 protected:
00042 bool event ( QEvent * event );
00043 private:
00044 bool iMaintainAspectRatio;
00045 bool iValueResetOnProgress;
00046 int iPictureHeigth;
00047 int iPictureWidth;
00048 int iPictureHeigthInPixels;
00049 int iPictureWidthInPixels;
00050 QString iPictureBeingAdded;
00051 QString iPicturePath;
00052 Ui_PictureSizeDialog iUi;
00053 public slots:
00054 void WidthChanged(int newWidth);
00055 void HeightChanged(int newHeigth);
00056 void MaintainAspectRatioToggled(bool status);
00057 signals:
00058 void setHTMLToEditor(const QString &text);
00059 void undoEditor();
00060 void MaintainAspectRatioBoxChecked(bool val);
00061 void setHorizontalPictureWidthSliderValue(int val);
00062 void setHorizontalPictureHeightSliderValue(int val);
00063 void reloadEditorContent();
00064 };
00065
00066 #endif