~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/spinbutton.cc

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-01 23:42:36 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120301234236-12w6m0hkomhi7h53
Tags: 3.3.16-0ubuntu1
* New upstream version
* debian/control.in: updated the glib requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
 
479
479
void SpinButton::configure(const Glib::RefPtr<Adjustment>& adjustment, double climb_rate, guint digits)
480
480
{
481
 
gtk_spin_button_configure(gobj(), Glib::unwrap(adjustment), climb_rate, digits); 
 
481
  gtk_spin_button_configure(gobj(), Glib::unwrap(adjustment), climb_rate, digits); 
482
482
}
483
483
 
484
484
void SpinButton::set_adjustment(const Glib::RefPtr<Adjustment>& adjustment)
485
485
{
486
 
gtk_spin_button_set_adjustment(gobj(), Glib::unwrap(adjustment)); 
 
486
  gtk_spin_button_set_adjustment(gobj(), Glib::unwrap(adjustment)); 
487
487
}
488
488
 
489
489
Glib::RefPtr<Adjustment> SpinButton::get_adjustment()
503
503
 
504
504
void SpinButton::set_digits(guint digits)
505
505
{
506
 
gtk_spin_button_set_digits(gobj(), digits); 
 
506
  gtk_spin_button_set_digits(gobj(), digits); 
507
507
}
508
508
 
509
509
guint SpinButton::get_digits() const
513
513
 
514
514
void SpinButton::set_increments(double step, double page)
515
515
{
516
 
gtk_spin_button_set_increments(gobj(), step, page); 
 
516
  gtk_spin_button_set_increments(gobj(), step, page); 
517
517
}
518
518
 
519
519
void SpinButton::get_increments(double& step, double& page) const
520
520
{
521
 
gtk_spin_button_get_increments(const_cast<GtkSpinButton*>(gobj()), &(step), &(page)); 
 
521
  gtk_spin_button_get_increments(const_cast<GtkSpinButton*>(gobj()), &(step), &(page)); 
522
522
}
523
523
 
524
524
void SpinButton::set_range(double min, double max)
525
525
{
526
 
gtk_spin_button_set_range(gobj(), min, max); 
 
526
  gtk_spin_button_set_range(gobj(), min, max); 
527
527
}
528
528
 
529
529
void SpinButton::get_range(double& min, double& max) const
530
530
{
531
 
gtk_spin_button_get_range(const_cast<GtkSpinButton*>(gobj()), &(min), &(max)); 
 
531
  gtk_spin_button_get_range(const_cast<GtkSpinButton*>(gobj()), &(min), &(max)); 
532
532
}
533
533
 
534
534
double SpinButton::get_value() const
543
543
 
544
544
void SpinButton::set_value(double value)
545
545
{
546
 
gtk_spin_button_set_value(gobj(), value); 
 
546
  gtk_spin_button_set_value(gobj(), value); 
547
547
}
548
548
 
549
549
void SpinButton::set_update_policy(SpinButtonUpdatePolicy policy)
550
550
{
551
 
gtk_spin_button_set_update_policy(gobj(), ((GtkSpinButtonUpdatePolicy)(policy))); 
 
551
  gtk_spin_button_set_update_policy(gobj(), ((GtkSpinButtonUpdatePolicy)(policy))); 
552
552
}
553
553
 
554
554
SpinButtonUpdatePolicy SpinButton::get_update_policy() const
558
558
 
559
559
void SpinButton::set_numeric(bool numeric)
560
560
{
561
 
gtk_spin_button_set_numeric(gobj(), static_cast<int>(numeric)); 
 
561
  gtk_spin_button_set_numeric(gobj(), static_cast<int>(numeric)); 
562
562
}
563
563
 
564
564
bool SpinButton::get_numeric() const
568
568
 
569
569
void SpinButton::spin(SpinType direction, double increment)
570
570
{
571
 
gtk_spin_button_spin(gobj(), ((GtkSpinType)(direction)), increment); 
 
571
  gtk_spin_button_spin(gobj(), ((GtkSpinType)(direction)), increment); 
572
572
}
573
573
 
574
574
void SpinButton::set_wrap(bool wrap)
575
575
{
576
 
gtk_spin_button_set_wrap(gobj(), static_cast<int>(wrap)); 
 
576
  gtk_spin_button_set_wrap(gobj(), static_cast<int>(wrap)); 
577
577
}
578
578
 
579
579
bool SpinButton::get_wrap() const
583
583
 
584
584
void SpinButton::set_snap_to_ticks(bool snap_to_ticks)
585
585
{
586
 
gtk_spin_button_set_snap_to_ticks(gobj(), static_cast<int>(snap_to_ticks)); 
 
586
  gtk_spin_button_set_snap_to_ticks(gobj(), static_cast<int>(snap_to_ticks)); 
587
587
}
588
588
 
589
589
bool SpinButton::get_snap_to_ticks() const
593
593
 
594
594
void SpinButton::update()
595
595
{
596
 
gtk_spin_button_update(gobj()); 
 
596
  gtk_spin_button_update(gobj()); 
597
597
}
598
598
 
599
599
 
621
621
}
622
622
 
623
623
 
 
624
#ifndef GTKMM_DISABLE_DEPRECATED
 
625
 
624
626
#ifdef GLIBMM_PROPERTIES_ENABLED
625
627
Glib::PropertyProxy< Glib::RefPtr<Adjustment> > SpinButton::property_adjustment() 
626
628
{
627
629
  return Glib::PropertyProxy< Glib::RefPtr<Adjustment> >(this, "adjustment");
628
630
}
 
631
#endif // GTKMM_DISABLE_DEPRECATED
 
632
 
629
633
#endif //GLIBMM_PROPERTIES_ENABLED
630
634
 
631
635
#ifdef GLIBMM_PROPERTIES_ENABLED
635
639
}
636
640
#endif //GLIBMM_PROPERTIES_ENABLED
637
641
 
 
642
#ifndef GTKMM_DISABLE_DEPRECATED
 
643
 
638
644
#ifdef GLIBMM_PROPERTIES_ENABLED
639
645
Glib::PropertyProxy< double > SpinButton::property_climb_rate() 
640
646
{
641
647
  return Glib::PropertyProxy< double >(this, "climb-rate");
642
648
}
 
649
#endif // GTKMM_DISABLE_DEPRECATED
 
650
 
643
651
#endif //GLIBMM_PROPERTIES_ENABLED
644
652
 
645
653
#ifdef GLIBMM_PROPERTIES_ENABLED
649
657
}
650
658
#endif //GLIBMM_PROPERTIES_ENABLED
651
659
 
 
660
#ifndef GTKMM_DISABLE_DEPRECATED
 
661
 
652
662
#ifdef GLIBMM_PROPERTIES_ENABLED
653
663
Glib::PropertyProxy< guint > SpinButton::property_digits() 
654
664
{
655
665
  return Glib::PropertyProxy< guint >(this, "digits");
656
666
}
 
667
#endif // GTKMM_DISABLE_DEPRECATED
 
668
 
657
669
#endif //GLIBMM_PROPERTIES_ENABLED
658
670
 
659
671
#ifdef GLIBMM_PROPERTIES_ENABLED
663
675
}
664
676
#endif //GLIBMM_PROPERTIES_ENABLED
665
677
 
 
678
#ifndef GTKMM_DISABLE_DEPRECATED
 
679
 
666
680
#ifdef GLIBMM_PROPERTIES_ENABLED
667
681
Glib::PropertyProxy< bool > SpinButton::property_snap_to_ticks() 
668
682
{
669
683
  return Glib::PropertyProxy< bool >(this, "snap-to-ticks");
670
684
}
 
685
#endif // GTKMM_DISABLE_DEPRECATED
 
686
 
671
687
#endif //GLIBMM_PROPERTIES_ENABLED
672
688
 
673
689
#ifdef GLIBMM_PROPERTIES_ENABLED
677
693
}
678
694
#endif //GLIBMM_PROPERTIES_ENABLED
679
695
 
 
696
#ifndef GTKMM_DISABLE_DEPRECATED
 
697
 
680
698
#ifdef GLIBMM_PROPERTIES_ENABLED
681
699
Glib::PropertyProxy< bool > SpinButton::property_numeric() 
682
700
{
683
701
  return Glib::PropertyProxy< bool >(this, "numeric");
684
702
}
 
703
#endif // GTKMM_DISABLE_DEPRECATED
 
704
 
685
705
#endif //GLIBMM_PROPERTIES_ENABLED
686
706
 
687
707
#ifdef GLIBMM_PROPERTIES_ENABLED
691
711
}
692
712
#endif //GLIBMM_PROPERTIES_ENABLED
693
713
 
 
714
#ifndef GTKMM_DISABLE_DEPRECATED
 
715
 
694
716
#ifdef GLIBMM_PROPERTIES_ENABLED
695
717
Glib::PropertyProxy< bool > SpinButton::property_wrap() 
696
718
{
697
719
  return Glib::PropertyProxy< bool >(this, "wrap");
698
720
}
 
721
#endif // GTKMM_DISABLE_DEPRECATED
 
722
 
699
723
#endif //GLIBMM_PROPERTIES_ENABLED
700
724
 
701
725
#ifdef GLIBMM_PROPERTIES_ENABLED
705
729
}
706
730
#endif //GLIBMM_PROPERTIES_ENABLED
707
731
 
 
732
#ifndef GTKMM_DISABLE_DEPRECATED
 
733
 
708
734
#ifdef GLIBMM_PROPERTIES_ENABLED
709
735
Glib::PropertyProxy< SpinButtonUpdatePolicy > SpinButton::property_update_policy() 
710
736
{
711
737
  return Glib::PropertyProxy< SpinButtonUpdatePolicy >(this, "update-policy");
712
738
}
 
739
#endif // GTKMM_DISABLE_DEPRECATED
 
740
 
713
741
#endif //GLIBMM_PROPERTIES_ENABLED
714
742
 
715
743
#ifdef GLIBMM_PROPERTIES_ENABLED
719
747
}
720
748
#endif //GLIBMM_PROPERTIES_ENABLED
721
749
 
 
750
#ifndef GTKMM_DISABLE_DEPRECATED
 
751
 
722
752
#ifdef GLIBMM_PROPERTIES_ENABLED
723
753
Glib::PropertyProxy< double > SpinButton::property_value() 
724
754
{
725
755
  return Glib::PropertyProxy< double >(this, "value");
726
756
}
 
757
#endif // GTKMM_DISABLE_DEPRECATED
 
758
 
727
759
#endif //GLIBMM_PROPERTIES_ENABLED
728
760
 
729
761
#ifdef GLIBMM_PROPERTIES_ENABLED