[rkward-cvs] rkward/rkward/windows rcontrolwindow.h,1.3,1.4
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Sun Oct 16 16:02:02 UTC 2005
- Previous message: [rkward-cvs] rkward/rkward rkconsole.cpp,1.12,1.13 rkconsole.h,1.8,1.9
- Next message: [rkward-cvs] rkward/rkward/settings Makefile.am,1.3,1.4 rksettings.cpp,1.7,1.8 rksettings.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/rkward/rkward/rkward/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25476/rkward/windows
Modified Files:
rcontrolwindow.h
Log Message:
Allow empty lines when pasting to the console. Some code cleanups (mostly coding style)
Index: rcontrolwindow.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/windows/rcontrolwindow.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rcontrolwindow.h 16 Oct 2005 14:06:50 -0000 1.3
--- rcontrolwindow.h 16 Oct 2005 16:02:00 -0000 1.4
***************
*** 36,40 ****
This class provides a GUI interface to inspect, and manipulate the current RCommandStack, and to Pause/Resume the R engine.
! Do create an instance of this class directly. Create a RControlWindowPart instead.
// TODO: probably the QListView of RCommands (and associated functionality) should be separted to an own class
--- 36,41 ----
This class provides a GUI interface to inspect, and manipulate the current RCommandStack, and to Pause/Resume the R engine.
! Do create an instance of this class directly. Create a RControlWindowPart instead. Also, probably RInterface should be the only class ever calling
! functions of RControlWindow.
// TODO: probably the QListView of RCommands (and associated functionality) should be separted to an own class
***************
*** 55,71 ****
~RControlWindow ();
public:
void addChain (RCommandChain *chain);
void addCommand (RCommand *command, RCommandChain *parent);
void updateChain (RCommandChain *chain);
void updateCommand (RCommand *command);
void removeCommand (RCommand *command);
void setCommandRunning (RCommand *command);
! /** reimplemented to refresh list of commands when showing. */
void show ();
public slots:
void commandSelectionChanged ();
void cancelButtonClicked ();
void pauseButtonClicked ();
void configureButtonClicked ();
private:
--- 56,82 ----
~RControlWindow ();
public:
+ /** Add new chain to the RControlWindow. Has no effect unless RControlWindow::isShown () */
void addChain (RCommandChain *chain);
+ /** Add new command to the RControlWindow. The command is added to the given parent chain. Has no effect unless RControlWindow::isShown () */
void addCommand (RCommand *command, RCommandChain *parent);
+ /** Update information on the given chain. Use esp, if the chain was set to closed. Has no effect unless RControlWindow::isShown () */
void updateChain (RCommandChain *chain);
+ /** Update information on the given command. Use esp, if the command was cancelled. Has no effect unless RControlWindow::isShown () */
void updateCommand (RCommand *command);
+ /** Remove given command from the RControlWindow. This will also check, whether the parent chain can be torn down, automatically. Has no effect unless RControlWindow::isShown ()*/
void removeCommand (RCommand *command);
+ /** Set given command as running. Has no effect unless RControlWindow::isShown ()*/
void setCommandRunning (RCommand *command);
! /** reimplemented to refresh list of commands when showing. This is needed, as the RControlWindow is only kept up to date as long as it is shown. Hence, if it was hidden, and then gets shown, it will have to update the entire list. */
void show ();
public slots:
+ /** command selection was changed. Automatically select sub-items of selected chains. Enable/disable "Cancel" button */
void commandSelectionChanged ();
+ /** cancel button was clicked. Cancel selected commands (unless they are RCommand::Sync). */
void cancelButtonClicked ();
+ /** pause button was clicked. Pause/Resume processing of the stack */
void pauseButtonClicked ();
+ /** configure button was clicked. Invoke settings dialog */
void configureButtonClicked ();
private:
***************
*** 73,82 ****
QPushButton *cancel_button;
QPushButton *pause_button;
void addCommands (RChainOrCommand *coc, RControlWindowListViewItem *parent);
void addCommand (RCommand *command, RControlWindowListViewItem *parent);
! /** delete chain(s) if applicable. This basically mimics the behavior in RCommandStack::pop () */
void checkCleanChain (RControlWindowListViewItem *chain);
! /** causes the RControlWindow (if shown) to refresh it's entire list of commands. Warning! Does not lock the mutex. Lock the mutex before calling this! */
void refreshCommands ();
--- 84,96 ----
QPushButton *cancel_button;
QPushButton *pause_button;
+
+ /** internal: recursively add commands/chains */
void addCommands (RChainOrCommand *coc, RControlWindowListViewItem *parent);
+ /** internal: add single command */
void addCommand (RCommand *command, RControlWindowListViewItem *parent);
! /** internal: delete chain(s) if applicable. This basically mimics the behavior in RCommandStack::pop () */
void checkCleanChain (RControlWindowListViewItem *chain);
! /** internal: causes the RControlWindow (if shown) to refresh it's entire list of commands. Warning! Does not lock the mutex. Lock the mutex before calling this! */
void refreshCommands ();
- Previous message: [rkward-cvs] rkward/rkward rkconsole.cpp,1.12,1.13 rkconsole.h,1.8,1.9
- Next message: [rkward-cvs] rkward/rkward/settings Makefile.am,1.3,1.4 rksettings.cpp,1.7,1.8 rksettings.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the rkward-tracker
mailing list