From: Shie E. <er...@us...> - 2004-12-17 21:15:07
|
Update of /cvsroot/krusader/krusader_kde3/krusader/Panel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11080/krusader/Panel Modified Files: krselectionmode.cpp krselectionmode.h Log Message: mouse selection modes is back! Index: krselectionmode.cpp =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/krselectionmode.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** krselectionmode.cpp 22 Nov 2004 23:48:36 -0000 1.1 --- krselectionmode.cpp 17 Dec 2004 21:14:55 -0000 1.2 *************** *** 5,11 **** ! KrKDESelectionMode krKDESelectionMode; ! KrOriginalSelectionMode krOriginalSelectionMode; ! KrNewSelectionMode krNewSelectionMode; --- 5,11 ---- ! KonqSelectionMode konqSelectionMode; ! OriginalSelectionMode originalSelectionMode; ! TCSelectionMode tcSelectionMode; *************** *** 16,25 **** } else { // nothing yet, set the correct one krConfig->setGroup( "Look&Feel" ); ! QString mode = krConfig->readEntry("SelectionMode", ""); ! if (mode == "KDESelectionMode") { ! __currentSelectionMode = &krKDESelectionMode; ! } else if (mode == "NewSelectionMode") { ! __currentSelectionMode = &krNewSelectionMode; ! } else __currentSelectionMode = &krOriginalSelectionMode; // init and return __currentSelectionMode->init(); --- 16,33 ---- } else { // nothing yet, set the correct one krConfig->setGroup( "Look&Feel" ); ! QString mode = krConfig->readEntry("Mouse Selection", ""); ! switch (mode.toInt()) { ! case 0: ! __currentSelectionMode = &originalSelectionMode; ! break; ! case 1: ! __currentSelectionMode = &konqSelectionMode; ! break; ! case 2: ! __currentSelectionMode = &tcSelectionMode; ! break; ! default: ! break; ! } // init and return __currentSelectionMode->init(); Index: krselectionmode.h =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/krselectionmode.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** krselectionmode.h 22 Nov 2004 23:48:36 -0000 1.1 --- krselectionmode.h 17 Dec 2004 21:14:55 -0000 1.2 *************** *** 33,37 **** }; ! class KrKDESelectionMode : public KrSelectionMode { public: void init() { --- 33,37 ---- }; ! class KonqSelectionMode : public KrSelectionMode { public: void init() { *************** *** 48,52 **** }; ! class KrOriginalSelectionMode : public KrSelectionMode { public: void init() { --- 48,52 ---- }; ! class OriginalSelectionMode : public KrSelectionMode { public: void init() { *************** *** 63,72 **** }; ! class KrNewSelectionMode : public KrSelectionMode { public: void init() { _useQTSelection = false; ! _spaceMovesDown = true; ! _insertMovesDown = false; _spaceCalculatesDiskSpace = true; _rightButtonSelects = true; --- 63,72 ---- }; ! class TCSelectionMode : public KrSelectionMode { public: void init() { _useQTSelection = false; ! _spaceMovesDown = false; ! _insertMovesDown = true; _spaceCalculatesDiskSpace = true; _rightButtonSelects = true; |