Changeset View
Changeset View
Standalone View
Standalone View
kmplot/view.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 114 | m_mousePressTimer = new QTime(); | |||
---|---|---|---|---|---|
115 | 115 | | |||
116 | new ViewAdaptor(this); | 116 | new ViewAdaptor(this); | ||
117 | QDBusConnection::sessionBus().registerObject("/view", this); | 117 | QDBusConnection::sessionBus().registerObject("/view", this); | ||
118 | 118 | | |||
119 | setMouseTracking( true ); | 119 | setMouseTracking( true ); | ||
120 | m_sliderWindow = 0; | 120 | m_sliderWindow = 0; | ||
121 | 121 | | |||
122 | m_popupMenuTitle = m_popupMenu->insertSection( MainDlg::self()->m_firstFunctionAction, "" ); | 122 | m_popupMenuTitle = m_popupMenu->insertSection( MainDlg::self()->m_firstFunctionAction, "" ); | ||
123 | connect(XParser::self(), &XParser::functionRemoved, this, &View::functionRemoved); | ||||
123 | } | 124 | } | ||
124 | 125 | | |||
125 | 126 | | |||
126 | View::~View() | 127 | View::~View() | ||
127 | { | 128 | { | ||
128 | m_textEdit->deleteLater(); | 129 | m_textEdit->deleteLater(); | ||
129 | delete XParser::self(); | 130 | delete XParser::self(); | ||
130 | delete m_mousePressTimer; | 131 | delete m_mousePressTimer; | ||
▲ Show 20 Lines • Show All 3833 Lines • ▼ Show 20 Line(s) | 3940 | { | |||
3964 | } | 3965 | } | ||
3965 | } | 3966 | } | ||
3966 | 3967 | | |||
3967 | void View::sliderWindowClosed() | 3968 | void View::sliderWindowClosed() | ||
3968 | { | 3969 | { | ||
3969 | m_menuSliderAction->setChecked( false ); //set the slider-item in the menu | 3970 | m_menuSliderAction->setChecked( false ); //set the slider-item in the menu | ||
3970 | } | 3971 | } | ||
3971 | 3972 | | |||
3973 | void View::functionRemoved( int id ) | ||||
3974 | { | ||||
3975 | if ( id == m_currentPlot.functionID() ) | ||||
3976 | { | ||||
3977 | m_currentPlot.setFunctionID( -1 ); | ||||
3978 | setStatusBar( QString(), RootSection ); | ||||
3979 | setStatusBar( QString(), FunctionSection ); | ||||
3980 | } | ||||
3981 | } | ||||
3982 | | ||||
3972 | void View::hideCurrentFunction() | 3983 | void View::hideCurrentFunction() | ||
3973 | { | 3984 | { | ||
3974 | if ( m_currentPlot.functionID() == -1 ) | 3985 | if ( m_currentPlot.functionID() == -1 ) | ||
3975 | return; | 3986 | return; | ||
3976 | 3987 | | |||
3977 | Function * ufkt = m_currentPlot.function(); | 3988 | Function * ufkt = m_currentPlot.function(); | ||
3978 | ufkt->plotAppearance( m_currentPlot.plotMode ).visible = false; | 3989 | ufkt->plotAppearance( m_currentPlot.plotMode ).visible = false; | ||
3979 | 3990 | | |||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |