Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
a4aacfc6
Commit
a4aacfc6
authored
Jul 06, 2016
by
LEFEBVREJP email
Browse files
Fixing some formatting in plot.cc and exposing context menu access.
parent
031bc95b
Changes
2
Hide whitespace changes
Inline
Side-by-side
radixplot/plot.cc
View file @
a4aacfc6
...
...
@@ -398,20 +398,34 @@ void Plot::initContextMenu()
auto
saveJpg
=
mSaveAsContextMenu
->
addAction
(
"JPG"
);
// connect signals/slots
connect
(
actionPlotOption
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
showPlotOptionsDialog
()
)
);
connect
(
mActionFitGraphs
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
fitGraphs
()
)
);
connect
(
mActionRemove
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
removeSelected
()
)
);
connect
(
mActionRemoveAll
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
removeAll
()
)
);
connect
(
savePdf
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
saveAsPdf
()
)
);
connect
(
savePng
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
saveAsPng
()
)
);
connect
(
saveJpg
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
saveAsJpg
()
)
);
connect
(
actionPlotOption
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
showPlotOptionsDialog
()));
connect
(
mActionFitGraphs
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
fitGraphs
()));
connect
(
mActionRemove
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
removeSelected
()));
connect
(
mActionRemoveAll
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
removeAll
()));
connect
(
savePdf
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
saveAsPdf
()));
connect
(
savePng
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
saveAsPng
()));
connect
(
saveJpg
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
saveAsJpg
()));
}
void
Plot
::
initPlot
()
...
...
radixplot/plot.hh
View file @
a4aacfc6
...
...
@@ -218,9 +218,9 @@ public slots:
*/
void
fitGraphs
();
p
rotected
:
QMenu
*
contextMenu
()
const
{
return
mContextMenu
;}
QMenu
*
saveAsContextMenu
()
const
{
return
mSaveAsContextMenu
;}
p
ublic
:
QMenu
*
contextMenu
()
const
{
return
mContextMenu
;}
QMenu
*
saveAsContextMenu
()
const
{
return
mSaveAsContextMenu
;}
private
slots
:
void
legendDoubleClick
(
QCPLegend
*
legend
,
QCPAbstractLegendItem
*
item
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment