99581bc990
- Updated header inclusions from QtGui to QtWidgets for consistency and compatibility with Qt 5 and later. - Replaced deprecated QApplication::desktop() with QApplication::primaryScreen() for obtaining screen DPI. - Modified MyOutputHandler to use QMessageLogContext and QString for improved logging. - Changed QMatrix to QTransform for image rotation in ImageCutout class. - Updated various debug statements to use toLocal8Bit() instead of toAscii() for better string handling. - Refactored several classes to use QElapsedTimer instead of QTime for performance measurement. - Ensured all operator overloads in Section and Tag classes are marked as const for better const-correctness.
79 lines
2.0 KiB
C++
79 lines
2.0 KiB
C++
/************************************************************************
|
|
* $Id: prominencedialog.h 583 2010-05-15 09:54:58Z elzubeir $
|
|
*
|
|
* ------------
|
|
* Description:
|
|
* ------------
|
|
*
|
|
* (C) Copyright 2009,2010 ALLCONTENT. All rights reserved.
|
|
*
|
|
* -----------------
|
|
* Revision Details: (Updated by Revision Control System)
|
|
* -----------------
|
|
* $Date: 2010-05-15 13:54:58 +0400 (Sat, 15 May 2010) $
|
|
* $Author: elzubeir $
|
|
* $Revision: 583 $
|
|
* $HeadURL: file:///opt/svn/socialhose/trunk/app/ClippingStation/prominencedialog.h $
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef PROMINENCEDIALOG_H
|
|
#define PROMINENCEDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include "prominence.h"
|
|
|
|
namespace Ui {
|
|
class ProminenceDialog;
|
|
}
|
|
|
|
class ProminenceDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
|
|
//! \fn ProminenceDialog()
|
|
//! default constructor
|
|
//! \author elzubeir
|
|
ProminenceDialog(QWidget *parent = 0);
|
|
|
|
//! \fn ~ProminenceDialog()
|
|
//! destrct
|
|
//! \author elzubeir
|
|
~ProminenceDialog();
|
|
|
|
//! \fn prominenceDialog()
|
|
//! returns an object of the Prominence class containing the data populated
|
|
//! \author elzubeir
|
|
Prominence prominence();
|
|
|
|
//! \fn setProminence()
|
|
//! set the prominence values
|
|
//! \param[in] Prominence object to set its value
|
|
//! \author elzubeir
|
|
void setProminence(Prominence pr);
|
|
|
|
protected:
|
|
//! \fn changeEvent()
|
|
//! a change event has occured
|
|
//! \author elzubeir
|
|
void changeEvent(QEvent *e);
|
|
|
|
//! \fn accept()
|
|
//! the ok button is clicked
|
|
//! \author elzubeir
|
|
void accept();
|
|
|
|
private:
|
|
//! \fn updateUi()
|
|
//! updates the ui with the values from the prominence object
|
|
//! \author elzubeir
|
|
void updateUi();
|
|
private:
|
|
Ui::ProminenceDialog *m_ui;
|
|
|
|
//! prominence object
|
|
Prominence m_prominence;
|
|
};
|
|
|
|
#endif // PROMINENCEDIALOG_H
|