Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (47 sloc) 1.26 KB
/*
* SLocDialog.h
*
* Created on: 03.01.2010
* Author: Ivan Ryazanov
*/
#ifndef SLOCDIALOG_H_
#define SLOCDIALOG_H_
#include <inttypes.h>
#include "ui_loc.h"
#include <QDialog>
#include <QPixmapCache>
#include <QFileDialog>
#include <QFontDialog>
#include <QColorDialog>
#include <QValidator>
#include "locutils/Location.h"
#include "ogl/GLSatAbstractWidget.h"
class SLocDialog: public QDialog {
Q_OBJECT
public:
Location defaultLoc;
SLocDialog(GLSatAbstractWidget *satWidget);
virtual ~SLocDialog();
inline Location *loc() { return m_loc; }
void setLoc(Location *loc) { m_loc = loc; }
void makeLoc(Location *loc);
void setSatWidget(GLSatAbstractWidget *satWidget);
inline Ui::LocDialog * getWidget() { return &widget; }
protected:
void showEvent(QShowEvent *event);
private:
Ui::LocDialog widget;
Location *m_loc;
GLSatAbstractWidget *satWidget;
QDoubleValidator m_doubleValidator;
void setBtnColor(QWidget *widget);
uint32_t flipRgb(uint32_t rgb);
private slots:
void setColorLocName();
void setColorLocZrv();
void setColorLocLines();
void setLocFont();
void setDefault();
void setIcon();
};
#endif /* SLOCDIALOG_H_ */
You can’t perform that action at this time.