From: Shie E. <er...@us...> - 2004-08-07 11:18:08
|
Update of /cvsroot/krusader/krusader_kde3/krusader/Panel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2043/krusader/Panel Modified Files: panelpopup.cpp Log Message: add: save left and right popup's active tab Index: panelpopup.cpp =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/panelpopup.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** panelpopup.cpp 7 Aug 2004 10:26:26 -0000 1.6 --- panelpopup.cpp 7 Aug 2004 11:17:58 -0000 1.7 *************** *** 1,2 **** --- 1,3 ---- + #include "../krusader.h" #include "panelpopup.h" #include "../kicons.h" *************** *** 13,23 **** #include <krview.h> #include <krviewitem.h> - #include <qwidgetstack.h> #include <klineedit.h> #include <kdebug.h> ! ! PanelPopup::PanelPopup( QWidget *parent ) : QWidget( parent ), stack( 0 ), viewer( 0 ), pjob( 0 ) { QGridLayout * layout = new QGridLayout(this, 1, 1); --- 14,23 ---- #include <krview.h> #include <krviewitem.h> #include <klineedit.h> #include <kdebug.h> ! PanelPopup::PanelPopup( QWidget *parent, bool left ) : QWidget( parent ), ! stack( 0 ), viewer( 0 ), pjob( 0 ) { QGridLayout * layout = new QGridLayout(this, 1, 1); *************** *** 135,141 **** layout->addMultiCellWidget(stack,1,1,0,3); ! // raise the tree part ! treeBtn->setOn(true); ! tabSelected(Tree); } --- 135,151 ---- layout->addMultiCellWidget(stack,1,1,0,3); ! // set the wanted widget ! // ugly: are we left or right? ! int id; ! krConfig->setGroup("Startup"); ! if (left) { ! id = krConfig->readNumEntry("Left Panel Popup", _LeftPanelPopup); ! kdWarning() << "left " << id << endl; ! } else { ! id = krConfig->readNumEntry("Right Panel Popup", _RightPanelPopup); ! kdWarning() << "right " << id << endl; ! } ! btns->setButton(id); ! tabSelected(id); } |