~ubuntu-branches/ubuntu/maverick/kdebase-workspace/maverick-proposed

« back to all changes in this revision

Viewing changes to kwin/clients/oxygen/oxygenbutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-07-08 01:11:52 UTC
  • mfrom: (1.1.43 upstream)
  • Revision ID: james.westby@ubuntu.com-20100708011152-z0h26httnjr91mmy
Tags: 4:4.4.92-0ubuntu1
* New upstream rc release:
  - Bump kde-sc-dev-latest to 4.4.92
  - Refresh patches
  - Update symbols
  - plasma-widgets-workspace replaces/conflicts plasma-widget-logout

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        void paintEvent(QPaintEvent* );
112
112
 
113
113
        //! draw icon
114
 
        void drawIcon(QPainter*, QPalette&, ButtonType& );
 
114
        void drawIcon(QPainter*);
115
115
 
116
116
        //! color
117
117
        QColor buttonDetailColor(const QPalette& );
129
129
        //! true if buttons hover are animated
130
130
        bool animateButtonHover( void ) const;
131
131
 
 
132
        //!@name button properties
 
133
        //@{
 
134
 
 
135
        //! true if button if of menu type
 
136
        bool isMenuButton( void ) const
 
137
        { return type_ == ButtonMenu || type_ == ButtonItemMenu; }
 
138
 
 
139
        //! true if button is of toggle type
 
140
        bool isToggleButton( void ) const
 
141
        { return type_ == ButtonSticky || type_ == ButtonAbove || type_ == ButtonBelow; }
 
142
 
 
143
        //! true if button if of close type
 
144
        bool isCloseButton( void ) const
 
145
        { return type_ == ButtonClose || type_ == ButtonItemClose; }
 
146
 
 
147
        //! true if button has decoration
 
148
        bool hasDecoration( void ) const
 
149
        { return !isMenuButton() && type_ != ButtonItemClose; }
 
150
 
 
151
        //@}
 
152
 
132
153
        private:
133
154
 
134
155
        //! parent client