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

« back to all changes in this revision

Viewing changes to gtk/gtkmm/action.h

  • 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:
233
233
  bool get_sensitive() const;
234
234
 
235
235
  
236
 
  /** Sets the ::sensitive property of the action to @a sensitive. Note that 
 
236
  /** Sets the property_sensitive() property of the action to @a sensitive. Note that 
237
237
   * this doesn't necessarily mean effective sensitivity. See 
238
238
   * is_sensitive() 
239
239
   * for that.
261
261
   */
262
262
  bool get_visible() const;
263
263
  
264
 
  /** Sets the ::visible property of the action to @a visible. Note that 
 
264
  /** Sets the property_visible() property of the action to @a visible. Note that 
265
265
   * this doesn't necessarily mean effective visibility. See 
266
266
   * is_visible() 
267
267
   * for that.
369
369
  /// For instance, void on_activate();
370
370
  typedef sigc::slot<void> SlotActivate;
371
371
 
372
 
  /** The "activate" signal is emitted when the action is activated.
373
 
   *
374
 
   * @par Prototype:
 
372
  
 
373
  /**
 
374
   * @par Slot Prototype:
375
375
   * <tt>void on_my_%activate()</tt>
 
376
   *
 
377
   * The "activate" signal is emitted when the action is activated.
 
378
   * 
 
379
   * @newin{2,4}
376
380
   */
377
381
 
 
382
 
378
383
  Glib::SignalProxy0< void > signal_activate();
379
384
 
380
385
 
539
544
 
540
545
  
541
546
  /** Sets whether @a action<!-- -->'s menu item proxies will ignore the
542
 
   * Gtk::Settings:gtk-menu-images setting and always show their image, if available.
 
547
   * Gtk::Settings::property_gtk_menu_images() setting and always show their image, if available.
543
548
   * 
544
549
   * Use this if the menu item would be useless or hard to use
545
550
   * without their image.
550
555
  void set_always_show_image(bool always_show =  true);
551
556
  
552
557
  /** Returns whether @a action<!-- -->'s menu item proxies will ignore the
553
 
   * Gtk::Settings:gtk-menu-images setting and always show their image,
 
558
   * Gtk::Settings::property_gtk_menu_images() setting and always show their image,
554
559
   * if available.
555
560
   * 
556
561
   * @newin{2,20}
580
585
  
581
586
 
582
587
  #ifdef GLIBMM_PROPERTIES_ENABLED
583
 
/** A unique name for the action.
 
588
/** 
584
589
   *
585
590
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
586
591
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
591
596
 
592
597
 
593
598
  #ifdef GLIBMM_PROPERTIES_ENABLED
594
 
/** The label used for menu items and buttons that activate this action.
 
599
/** 
595
600
   *
596
601
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
597
602
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
611
616
#endif //#GLIBMM_PROPERTIES_ENABLED
612
617
 
613
618
  #ifdef GLIBMM_PROPERTIES_ENABLED
614
 
/** A shorter label that may be used on toolbar buttons.
 
619
/** 
615
620
   *
616
621
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
617
622
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
631
636
#endif //#GLIBMM_PROPERTIES_ENABLED
632
637
 
633
638
  #ifdef GLIBMM_PROPERTIES_ENABLED
634
 
/** A tooltip for this action.
 
639
/** 
635
640
   *
636
641
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
637
642
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
651
656
#endif //#GLIBMM_PROPERTIES_ENABLED
652
657
 
653
658
  #ifdef GLIBMM_PROPERTIES_ENABLED
654
 
/** The stock icon displayed in widgets representing this action.
 
659
/** 
655
660
   *
656
661
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
657
662
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
671
676
#endif //#GLIBMM_PROPERTIES_ENABLED
672
677
 
673
678
  #ifdef GLIBMM_PROPERTIES_ENABLED
674
 
/** The GIcon being displayed.
 
679
/** 
675
680
   *
676
681
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
677
682
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
691
696
#endif //#GLIBMM_PROPERTIES_ENABLED
692
697
 
693
698
  #ifdef GLIBMM_PROPERTIES_ENABLED
694
 
/** The name of the icon from the icon theme.
 
699
/** 
695
700
   *
696
701
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
697
702
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
711
716
#endif //#GLIBMM_PROPERTIES_ENABLED
712
717
 
713
718
  #ifdef GLIBMM_PROPERTIES_ENABLED
714
 
/** Whether the toolbar item is visible when the toolbar is in a horizontal orientation.
 
719
/** 
715
720
   *
716
721
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
717
722
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
731
736
#endif //#GLIBMM_PROPERTIES_ENABLED
732
737
 
733
738
  #ifdef GLIBMM_PROPERTIES_ENABLED
734
 
/** Whether the toolbar item is visible when the toolbar is in a vertical orientation.
 
739
/** 
735
740
   *
736
741
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
737
742
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
751
756
#endif //#GLIBMM_PROPERTIES_ENABLED
752
757
 
753
758
  #ifdef GLIBMM_PROPERTIES_ENABLED
754
 
/** When TRUE, toolitem proxies for this action are represented in the toolbar overflow menu.
 
759
/** 
755
760
   *
756
761
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
757
762
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
771
776
#endif //#GLIBMM_PROPERTIES_ENABLED
772
777
 
773
778
  #ifdef GLIBMM_PROPERTIES_ENABLED
774
 
/** Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.
 
779
/** 
775
780
   *
776
781
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
777
782
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
791
796
#endif //#GLIBMM_PROPERTIES_ENABLED
792
797
 
793
798
  #ifdef GLIBMM_PROPERTIES_ENABLED
794
 
/** When TRUE, empty menu proxies for this action are hidden.
 
799
/** 
795
800
   *
796
801
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
797
802
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
811
816
#endif //#GLIBMM_PROPERTIES_ENABLED
812
817
 
813
818
  #ifdef GLIBMM_PROPERTIES_ENABLED
814
 
/** Whether the action is enabled.
 
819
/** 
815
820
   *
816
821
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
817
822
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
831
836
#endif //#GLIBMM_PROPERTIES_ENABLED
832
837
 
833
838
  #ifdef GLIBMM_PROPERTIES_ENABLED
834
 
/** Whether the action is visible.
 
839
/** 
835
840
   *
836
841
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
837
842
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
851
856
#endif //#GLIBMM_PROPERTIES_ENABLED
852
857
 
853
858
  #ifdef GLIBMM_PROPERTIES_ENABLED
854
 
/** The GtkActionGroup this GtkAction is associated with, or NULL (for internal use).
 
859
/** 
855
860
   *
856
861
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
857
862
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
871
876
#endif //#GLIBMM_PROPERTIES_ENABLED
872
877
 
873
878
  #ifdef GLIBMM_PROPERTIES_ENABLED
874
 
/** Whether the image will always be shown.
 
879
/** 
875
880
   *
876
881
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
877
882
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
914
919
  //GTK+ Virtual Functions (override these to change behaviour):
915
920
 
916
921
  //Default Signal Handlers::
 
922
  /// This is a default handler for the signal signal_activate().
917
923
  virtual void on_activate();
918
924
 
919
925