Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (1)
Tags (14)
master
v0.10.0
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7
v0.6
v0.5.1
v0.5
v0.4
v0.3
v0.2
v0.1
master
Branches (1)
Tags (14)
master
v0.10.0
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7
v0.6
v0.5.1
v0.5
v0.4
v0.3
v0.2
v0.1
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (1)
Tags (14)
master
v0.10.0
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7
v0.6
v0.5.1
v0.5
v0.4
v0.3
v0.2
v0.1
serialplot
/
src
/
plotcontrolpanel.h
serialplot
/
src
/
plotcontrolpanel.h
plotcontrolpanel.h 2.45 KB
Copy Edit Raw Blame History
Hasan Yavuz ÖZDERYA authored 2017年08月17日 16:11 +08:00 . save plot width setting
/*
Copyright © 2017 Hasan Yavuz Özderya
This file is part of serialplot.
serialplot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
serialplot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with serialplot. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLOTCONTROLPANEL_H
#define PLOTCONTROLPANEL_H
#include <QWidget>
#include <QSettings>
#include <QAction>
#include <QMenu>
#include "channelinfomodel.h"
namespace Ui {
class PlotControlPanel;
}
class PlotControlPanel : public QWidget
{
Q_OBJECT
public:
explicit PlotControlPanel(QWidget *parent = 0);
~PlotControlPanel();
unsigned numOfSamples();
bool autoScale() const;
double yMax() const;
double yMin() const;
bool xAxisAsIndex() const;
double xMax() const;
double xMin() const;
/// Returns the plot width adjusted for x axis scaling.
double plotWidth() const;
void setChannelInfoModel(ChannelInfoModel* model);
/// Stores plot settings into a `QSettings`
void saveSettings(QSettings* settings);
/// Loads plot settings from a `QSettings`.
void loadSettings(QSettings* settings);
signals:
void numOfSamplesChanged(int value);
void yScaleChanged(bool autoScaled, double yMin = 0, double yMax = 1);
void xScaleChanged(bool asIndex, double xMin = 0, double xMax = 1);
void plotWidthChanged(double width);
private:
Ui::PlotControlPanel *ui;
/// Holds 'number of samples' after the confirmation
unsigned _numOfSamples;
/// User can disable this setting in the checkbox
bool warnNumOfSamples;
QAction resetAct, resetNamesAct, resetColorsAct, showAllAct;
QMenu resetMenu;
/// Show a confirmation dialog before setting #samples to a big value
bool askNSConfirmation(int value);
private slots:
void onNumOfSamples(int value);
void onAutoScaleChecked(bool checked);
void onYScaleChanged();
void onRangeSelected();
void onIndexChecked(bool checked);
void onXScaleChanged();
void onPlotWidthChanged();
};
#endif // PLOTCONTROLPANEL_H
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

THIS IS A MIRROR. Small and simple software for plotting data from serial port in realtime.
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kbytes/serialplot.git
git@gitee.com:kbytes/serialplot.git
kbytes
serialplot
serialplot
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /