1// this code is GENERATED. Do not change it directly! 2 Q_PROPERTY(int color READ GetColor WRITE SetColor NOTIFY ColorChanged) 3 int m_Color; 4 Q_SLOT void SetColor(int o); 5 Q_SIGNAL void ColorChanged(int o); 6 int GetColor() const { return m_Color; }; 7 8 Q_PROPERTY(int bond_color READ GetBondColor WRITE SetBondColor NOTIFY BondColorChanged) 9 int m_BondColor; 10 Q_SLOT void SetBondColor(int o); 11 Q_SIGNAL void BondColorChanged(int o); 12 int GetBondColor() const { return m_BondColor; }; 13 14 Q_PROPERTY(double bond_radius_factor READ GetBondRadiusFactor WRITE SetBondRadiusFactor NOTIFY BondRadiusFactorChanged) 15 double m_BondRadiusFactor; 16 Q_SLOT void SetBondRadiusFactor(double o); 17 Q_SIGNAL void BondRadiusFactorChanged(double o); 18 double GetBondRadiusFactor() const { return m_BondRadiusFactor; }; 19 20 Q_PROPERTY(double covalent_radius READ GetCovalentRadius WRITE SetCovalentRadius NOTIFY CovalentRadiusChanged) 21 double m_CovalentRadius; 22 Q_SLOT void SetCovalentRadius(double o); 23 Q_SIGNAL void CovalentRadiusChanged(double o); 24 double GetCovalentRadius() const { return m_CovalentRadius; }; 25 26 Q_PROPERTY(double draw_radius READ GetDrawRadius WRITE SetDrawRadius NOTIFY DrawRadiusChanged) 27 double m_DrawRadius; 28 Q_SLOT void SetDrawRadius(double o); 29 Q_SIGNAL void DrawRadiusChanged(double o); 30 double GetDrawRadius() const { return m_DrawRadius; }; 31 32 Q_PROPERTY(QString draw_name READ GetDrawName WRITE SetDrawName NOTIFY DrawNameChanged) 33 QString m_DrawName; 34 Q_SLOT void SetDrawName(QString o); 35 Q_SIGNAL void DrawNameChanged(QString o); 36 QString GetDrawName() const { return m_DrawName; }; 37 38 void InitProperties(); // set default values of properties and emit corresponding signals. 39 QString GetOptionsDesc(); // make script for setting non-default options 40 void CopyPropertiesFrom(FElementOptions const &other); // copy data from other object, and emit corresponding signals. 41// kate: syntax c++; 42