tools/shared/qtpropertybrowser/qtpropertymanager.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  2332     : QtAbstractPropertyManager(parent), d_ptr(new QtLocalePropertyManagerPrivate)
  2332     : QtAbstractPropertyManager(parent), d_ptr(new QtLocalePropertyManagerPrivate)
  2333 {
  2333 {
  2334     d_ptr->q_ptr = this;
  2334     d_ptr->q_ptr = this;
  2335 
  2335 
  2336     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  2336     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  2337     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  2337     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  2338                 this, SLOT(slotEnumChanged(QtProperty *, int)));
  2338                 this, SLOT(slotEnumChanged(QtProperty*,int)));
  2339 
  2339 
  2340     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  2340     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  2341                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  2341                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  2342 }
  2342 }
  2343 
  2343 
  2344 /*!
  2344 /*!
  2345     Destroys this manager, and all the properties it has created.
  2345     Destroys this manager, and all the properties it has created.
  2346 */
  2346 */
  2569     : QtAbstractPropertyManager(parent), d_ptr(new QtPointPropertyManagerPrivate)
  2569     : QtAbstractPropertyManager(parent), d_ptr(new QtPointPropertyManagerPrivate)
  2570 {
  2570 {
  2571     d_ptr->q_ptr = this;
  2571     d_ptr->q_ptr = this;
  2572 
  2572 
  2573     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  2573     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  2574     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  2574     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  2575                 this, SLOT(slotIntChanged(QtProperty *, int)));
  2575                 this, SLOT(slotIntChanged(QtProperty*,int)));
  2576     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  2576     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  2577                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  2577                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  2578 }
  2578 }
  2579 
  2579 
  2580 /*!
  2580 /*!
  2581     Destroys this manager, and all the properties it has created.
  2581     Destroys this manager, and all the properties it has created.
  2582 */
  2582 */
  2799     : QtAbstractPropertyManager(parent), d_ptr(new QtPointFPropertyManagerPrivate)
  2799     : QtAbstractPropertyManager(parent), d_ptr(new QtPointFPropertyManagerPrivate)
  2800 {
  2800 {
  2801     d_ptr->q_ptr = this;
  2801     d_ptr->q_ptr = this;
  2802 
  2802 
  2803     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  2803     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  2804     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty *, double)),
  2804     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty*,double)),
  2805                 this, SLOT(slotDoubleChanged(QtProperty *, double)));
  2805                 this, SLOT(slotDoubleChanged(QtProperty*,double)));
  2806     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  2806     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  2807                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  2807                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  2808 }
  2808 }
  2809 
  2809 
  2810 /*!
  2810 /*!
  2811     Destroys this manager, and all the properties it has created.
  2811     Destroys this manager, and all the properties it has created.
  2812 */
  2812 */
  3110     : QtAbstractPropertyManager(parent), d_ptr(new QtSizePropertyManagerPrivate)
  3110     : QtAbstractPropertyManager(parent), d_ptr(new QtSizePropertyManagerPrivate)
  3111 {
  3111 {
  3112     d_ptr->q_ptr = this;
  3112     d_ptr->q_ptr = this;
  3113 
  3113 
  3114     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  3114     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  3115     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  3115     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  3116                 this, SLOT(slotIntChanged(QtProperty *, int)));
  3116                 this, SLOT(slotIntChanged(QtProperty*,int)));
  3117     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  3117     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  3118                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  3118                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  3119 }
  3119 }
  3120 
  3120 
  3121 /*!
  3121 /*!
  3122     Destroys this manager, and all the properties it has created.
  3122     Destroys this manager, and all the properties it has created.
  3123 */
  3123 */
  3464     : QtAbstractPropertyManager(parent), d_ptr(new QtSizeFPropertyManagerPrivate)
  3464     : QtAbstractPropertyManager(parent), d_ptr(new QtSizeFPropertyManagerPrivate)
  3465 {
  3465 {
  3466     d_ptr->q_ptr = this;
  3466     d_ptr->q_ptr = this;
  3467 
  3467 
  3468     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  3468     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  3469     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty *, double)),
  3469     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty*,double)),
  3470                 this, SLOT(slotDoubleChanged(QtProperty *, double)));
  3470                 this, SLOT(slotDoubleChanged(QtProperty*,double)));
  3471     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  3471     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  3472                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  3472                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  3473 }
  3473 }
  3474 
  3474 
  3475 /*!
  3475 /*!
  3476     Destroys this manager, and all the properties it has created.
  3476     Destroys this manager, and all the properties it has created.
  3477 */
  3477 */
  3878     : QtAbstractPropertyManager(parent), d_ptr(new QtRectPropertyManagerPrivate)
  3878     : QtAbstractPropertyManager(parent), d_ptr(new QtRectPropertyManagerPrivate)
  3879 {
  3879 {
  3880     d_ptr->q_ptr = this;
  3880     d_ptr->q_ptr = this;
  3881 
  3881 
  3882     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  3882     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  3883     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  3883     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  3884                 this, SLOT(slotIntChanged(QtProperty *, int)));
  3884                 this, SLOT(slotIntChanged(QtProperty*,int)));
  3885     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  3885     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  3886                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  3886                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  3887 }
  3887 }
  3888 
  3888 
  3889 /*!
  3889 /*!
  3890     Destroys this manager, and all the properties it has created.
  3890     Destroys this manager, and all the properties it has created.
  3891 */
  3891 */
  4298     : QtAbstractPropertyManager(parent), d_ptr(new QtRectFPropertyManagerPrivate)
  4298     : QtAbstractPropertyManager(parent), d_ptr(new QtRectFPropertyManagerPrivate)
  4299 {
  4299 {
  4300     d_ptr->q_ptr = this;
  4300     d_ptr->q_ptr = this;
  4301 
  4301 
  4302     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  4302     d_ptr->m_doublePropertyManager = new QtDoublePropertyManager(this);
  4303     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty *, double)),
  4303     connect(d_ptr->m_doublePropertyManager, SIGNAL(valueChanged(QtProperty*,double)),
  4304                 this, SLOT(slotDoubleChanged(QtProperty *, double)));
  4304                 this, SLOT(slotDoubleChanged(QtProperty*,double)));
  4305     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  4305     connect(d_ptr->m_doublePropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  4306                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  4306                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  4307 }
  4307 }
  4308 
  4308 
  4309 /*!
  4309 /*!
  4310     Destroys this manager, and all the properties it has created.
  4310     Destroys this manager, and all the properties it has created.
  4311 */
  4311 */
  4991     : QtAbstractPropertyManager(parent), d_ptr(new QtFlagPropertyManagerPrivate)
  4991     : QtAbstractPropertyManager(parent), d_ptr(new QtFlagPropertyManagerPrivate)
  4992 {
  4992 {
  4993     d_ptr->q_ptr = this;
  4993     d_ptr->q_ptr = this;
  4994 
  4994 
  4995     d_ptr->m_boolPropertyManager = new QtBoolPropertyManager(this);
  4995     d_ptr->m_boolPropertyManager = new QtBoolPropertyManager(this);
  4996     connect(d_ptr->m_boolPropertyManager, SIGNAL(valueChanged(QtProperty *, bool)),
  4996     connect(d_ptr->m_boolPropertyManager, SIGNAL(valueChanged(QtProperty*,bool)),
  4997                 this, SLOT(slotBoolChanged(QtProperty *, bool)));
  4997                 this, SLOT(slotBoolChanged(QtProperty*,bool)));
  4998     connect(d_ptr->m_boolPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  4998     connect(d_ptr->m_boolPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  4999                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  4999                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5000 }
  5000 }
  5001 
  5001 
  5002 /*!
  5002 /*!
  5003     Destroys this manager, and all the properties it has created.
  5003     Destroys this manager, and all the properties it has created.
  5004 */
  5004 */
  5317     : QtAbstractPropertyManager(parent), d_ptr(new QtSizePolicyPropertyManagerPrivate)
  5317     : QtAbstractPropertyManager(parent), d_ptr(new QtSizePolicyPropertyManagerPrivate)
  5318 {
  5318 {
  5319     d_ptr->q_ptr = this;
  5319     d_ptr->q_ptr = this;
  5320 
  5320 
  5321     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  5321     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  5322     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  5322     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  5323                 this, SLOT(slotIntChanged(QtProperty *, int)));
  5323                 this, SLOT(slotIntChanged(QtProperty*,int)));
  5324     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  5324     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  5325     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  5325     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  5326                 this, SLOT(slotEnumChanged(QtProperty *, int)));
  5326                 this, SLOT(slotEnumChanged(QtProperty*,int)));
  5327 
  5327 
  5328     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  5328     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  5329                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  5329                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5330     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  5330     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  5331                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  5331                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5332 }
  5332 }
  5333 
  5333 
  5334 /*!
  5334 /*!
  5335     Destroys this manager, and all the properties it has created.
  5335     Destroys this manager, and all the properties it has created.
  5336 */
  5336 */
  5728 {
  5728 {
  5729     d_ptr->q_ptr = this;
  5729     d_ptr->q_ptr = this;
  5730     QObject::connect(qApp, SIGNAL(fontDatabaseChanged()), this, SLOT(slotFontDatabaseChanged()));
  5730     QObject::connect(qApp, SIGNAL(fontDatabaseChanged()), this, SLOT(slotFontDatabaseChanged()));
  5731 
  5731 
  5732     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  5732     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  5733     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  5733     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  5734                 this, SLOT(slotIntChanged(QtProperty *, int)));
  5734                 this, SLOT(slotIntChanged(QtProperty*,int)));
  5735     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  5735     d_ptr->m_enumPropertyManager = new QtEnumPropertyManager(this);
  5736     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  5736     connect(d_ptr->m_enumPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  5737                 this, SLOT(slotEnumChanged(QtProperty *, int)));
  5737                 this, SLOT(slotEnumChanged(QtProperty*,int)));
  5738     d_ptr->m_boolPropertyManager = new QtBoolPropertyManager(this);
  5738     d_ptr->m_boolPropertyManager = new QtBoolPropertyManager(this);
  5739     connect(d_ptr->m_boolPropertyManager, SIGNAL(valueChanged(QtProperty *, bool)),
  5739     connect(d_ptr->m_boolPropertyManager, SIGNAL(valueChanged(QtProperty*,bool)),
  5740                 this, SLOT(slotBoolChanged(QtProperty *, bool)));
  5740                 this, SLOT(slotBoolChanged(QtProperty*,bool)));
  5741 
  5741 
  5742     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  5742     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  5743                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  5743                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5744     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  5744     connect(d_ptr->m_enumPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  5745                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  5745                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5746     connect(d_ptr->m_boolPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  5746     connect(d_ptr->m_boolPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  5747                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  5747                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  5748 }
  5748 }
  5749 
  5749 
  5750 /*!
  5750 /*!
  5751     Destroys this manager, and all the properties it has created.
  5751     Destroys this manager, and all the properties it has created.
  5752 */
  5752 */
  6103     : QtAbstractPropertyManager(parent), d_ptr(new QtColorPropertyManagerPrivate)
  6103     : QtAbstractPropertyManager(parent), d_ptr(new QtColorPropertyManagerPrivate)
  6104 {
  6104 {
  6105     d_ptr->q_ptr = this;
  6105     d_ptr->q_ptr = this;
  6106 
  6106 
  6107     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  6107     d_ptr->m_intPropertyManager = new QtIntPropertyManager(this);
  6108     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty *, int)),
  6108     connect(d_ptr->m_intPropertyManager, SIGNAL(valueChanged(QtProperty*,int)),
  6109                 this, SLOT(slotIntChanged(QtProperty *, int)));
  6109                 this, SLOT(slotIntChanged(QtProperty*,int)));
  6110 
  6110 
  6111     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty *)),
  6111     connect(d_ptr->m_intPropertyManager, SIGNAL(propertyDestroyed(QtProperty*)),
  6112                 this, SLOT(slotPropertyDestroyed(QtProperty *)));
  6112                 this, SLOT(slotPropertyDestroyed(QtProperty*)));
  6113 }
  6113 }
  6114 
  6114 
  6115 /*!
  6115 /*!
  6116     Destroys this manager, and all the properties it has created.
  6116     Destroys this manager, and all the properties it has created.
  6117 */
  6117 */