Commit 5fee859d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update toolbar when we select "edit mode" into kpopupmenu, update toolbar

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=357519
parent 80052767
......@@ -181,11 +181,11 @@ void PageView::setupActions( KActionCollection * ac, KConfigGroup * config )
mn->setExclusiveGroup("MouseType");
mn->setChecked( true );
KToggleAction * ms = new KRadioAction( i18n("Select"), "frame_edit", 0, this, SLOT( slotSetMouseSelect() ), ac, "mouse_select" );
KToggleAction *ms = new KRadioAction( i18n("Select"), "frame_edit", 0, this, SLOT( slotSetMouseSelect() ), ac, "mouse_select" );
ms->setExclusiveGroup("MouseType");
//ms->setEnabled( false ); // implement feature before removing this line
KToggleAction * md = new KRadioAction( i18n("Draw"), "edit", 0, this, SLOT( slotSetMouseDraw() ), ac, "mouse_draw" );
md = new KRadioAction( i18n("Draw"), "edit", 0, this, SLOT( slotSetMouseDraw() ), ac, "mouse_draw" );
md->setExclusiveGroup("MouseType");
//md->setEnabled( false ); // implement feature before removing this line
......@@ -712,6 +712,7 @@ void PageView::slotSetMouseSelect()
void PageView::slotSetMouseDraw()
{
d->mouseMode = MouseEdit;
md->setChecked( true );
}
void PageView::slotScrollUp()
......
......@@ -30,6 +30,7 @@ class KConfigGroup;
class PageWidget;
class PageViewPrivate;
class KToggleAction;
/**
* @short The main view. Handles zoom and continous mode.. oh, and page
......@@ -113,7 +114,7 @@ private:
bool atBottom() const;
void scrollUp();
void scrollDown();
KToggleAction * md;
// don't want to expose classes in here
class PageViewPrivate * d;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment