##// END OF EJS Templates
Creates a widget that will be the header of the menu in variable widget...
Creates a widget that will be the header of the menu in variable widget The header is a label that contains the variable name (if there is only one variable) or the number of variables (if several variables have been selected in the variable widget)

File last commit:

r258:00cdbd31ff7e
r289:7ca994d5565d
Show More
SqpDateTime.h
28 lines | 653 B | text/x-c | CLexer
#ifndef SCIQLOP_SQPDATETIME_H
#define SCIQLOP_SQPDATETIME_H
#include <QObject>
/**
* @brief The SqpDateTime struct holds the information of time parameters
*/
struct SqpDateTime {
/// Start time
double m_TStart;
/// End time
double m_TEnd;
bool contains(const SqpDateTime &dateTime)
{
return (m_TStart <= dateTime.m_TStart && m_TEnd >= dateTime.m_TEnd);
}
bool intersect(const SqpDateTime &dateTime)
{
return (m_TEnd >= dateTime.m_TStart && m_TStart <= dateTime.m_TEnd);
}
};
// Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(SqpDateTime)
#endif // SCIQLOP_SQPDATETIME_H