camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/client ActionList.cpp ActionList.h


From: Pascal Audoux
Subject: [Camino-devel] camino/src/client ActionList.cpp ActionList.h
Date: Wed, 29 Jan 2003 15:16:53 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Pascal Audoux <address@hidden>  03/01/29 15:16:53

Modified files:
        src/client     : ActionList.cpp ActionList.h 

Log message:
        manage buttons

Patches:
Index: camino/src/client/ActionList.cpp
diff -u camino/src/client/ActionList.cpp:1.1 
camino/src/client/ActionList.cpp:1.2
--- camino/src/client/ActionList.cpp:1.1        Tue Jan 28 14:34:15 2003
+++ camino/src/client/ActionList.cpp    Wed Jan 29 15:16:53 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: ActionList.cpp,v 1.1 2003/01/28 19:34:15 Audoux Exp $
+** Version : $Id: ActionList.cpp,v 1.2 2003/01/29 20:16:53 Audoux Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 28/01/2003
@@ -36,15 +36,18 @@
 : QWidget( parent, name )
 {
        _play = new QPushButton( this );
+       _play->setToggleButton( true );
        _play->setText( "Play" );
        FIXEDSIZE( _play );
 
        _complete = new QPushButton( this );
        _complete->setText( "Complete" );
+       _complete->setToggleButton( true );
        FIXEDSIZE( _complete );
 
        _trash = new QPushButton( this );
        _trash->setText( "Trash" );
+       _trash->setToggleButton( true );
        FIXEDSIZE( _trash );
 
        _undo = new QPushButton( this );
@@ -62,5 +65,48 @@
        layout->addWidget( _undo );
        layout->addStretch( 1 );
        layout->activate();
+
+       connect( _play, SIGNAL( clicked() ), SLOT( slot_play() ) );
+       connect( _complete, SIGNAL( clicked() ), SLOT( slot_complete() ) );
+       connect( _trash, SIGNAL( clicked() ), SLOT( slot_trash() ) );
+       connect( _undo, SIGNAL( clicked() ), SLOT( slot_undo() ) );
+}
+
+void ActionList::slot_play()
+{
+       _complete->setOn( false );
+       _trash->setOn( false );
+       emit sig_play();
+}
+
+void ActionList::slot_complete()
+{
+       _play->setOn( false );
+       _trash->setOn( false );
+       emit sig_complete();
+}
+
+void ActionList::slot_trash()
+{
+       _play->setOn( false );
+       _complete->setOn( false );
+       emit sig_trash();
+}
+
+void ActionList::slot_undo()
+{
+       _play->setOn( false );
+       _complete->setOn( false );
+       _trash->setOn( false );
+       emit sig_undo();
 }
+
+
+
+
+
+
+
+
+
 
Index: camino/src/client/ActionList.h
diff -u camino/src/client/ActionList.h:1.1 camino/src/client/ActionList.h:1.2
--- camino/src/client/ActionList.h:1.1  Tue Jan 28 14:34:15 2003
+++ camino/src/client/ActionList.h      Wed Jan 29 15:16:53 2003
@@ -5,7 +5,7 @@
 ** ActionList.h
 ** List of the actions available
 **
-** Version : $Id: ActionList.h,v 1.1 2003/01/28 19:34:15 Audoux Exp $
+** Version : $Id: ActionList.h,v 1.2 2003/01/29 20:16:53 Audoux Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 14/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -48,6 +48,12 @@
 public:
        /** Constructor */
        ActionList( QWidget * parent = 0, const char * name = 0 );
+
+public slots:
+       void slot_play();
+       void slot_undo();
+       void slot_complete();
+       void slot_trash();
 
 signals:
        void sig_play();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]