~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to src/actions/rs_actionselect.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-12-17 20:08:57 UTC
  • mfrom: (0.2.4)
  • Revision ID: package-import@ubuntu.com-20111217200857-r9wmynaloj230qm1
Tags: 1.0.0+nolibs-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
**
8
8
**
9
9
** This file may be distributed and/or modified under the terms of the
10
 
** GNU General Public License version 2 as published by the Free Software 
 
10
** GNU General Public License version 2 as published by the Free Software
11
11
** Foundation and appearing in the file gpl-2.0.txt included in the
12
12
** packaging of this file.
13
13
**
15
15
** but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
17
** GNU General Public License for more details.
18
 
** 
 
18
**
19
19
** You should have received a copy of the GNU General Public License
20
20
** along with this program; if not, write to the Free Software
21
21
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22
22
**
23
 
** This copyright notice MUST APPEAR in all copies of the script!  
 
23
** This copyright notice MUST APPEAR in all copies of the script!
24
24
**
25
25
**********************************************************************/
26
26
 
36
36
 * @author Andrew Mustun
37
37
 */
38
38
class RS_ActionSelect : public RS_ActionInterface {
39
 
        Q_OBJECT
 
39
        Q_OBJECT
40
40
public:
41
41
    RS_ActionSelect(RS_EntityContainer& container,
42
42
                    RS_GraphicView& graphicView,
43
43
                    RS2::ActionType nextAction);
44
44
    ~RS_ActionSelect() {}
45
45
 
46
 
    void init(int status);
 
46
    RS2::ActionType rtti(){
 
47
        return RS2::ActionSelect;
 
48
    }
 
49
    virtual void init(int status);
 
50
    virtual void resume();
47
51
    //virtual void keyPressEvent(QKeyEvent* e);
48
 
    void mouseReleaseEvent(QMouseEvent* e);
49
 
    void updateToolBar();
50
 
    void updateMouseButtonHints();
 
52
    virtual void mouseReleaseEvent(QMouseEvent* e);
 
53
    virtual void updateToolBar();
 
54
    virtual void updateMouseButtonHints();
 
55
    virtual void updateMouseCursor();
 
56
    virtual int countSelected();
 
57
    void requestFinish();
51
58
 
52
59
private:
53
60
    RS2::ActionType nextAction;
 
61
    bool selectSingle;
54
62
};
55
63
 
56
64
#endif