diff --git a/src/setting_defines.h b/src/setting_defines.h new file mode 100644 --- /dev/null +++ b/src/setting_defines.h @@ -0,0 +1,91 @@ +/* + Copyright © 2016 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 . +*/ + +#ifndef SETTING_DEFINES_H +#define SETTING_DEFINES_H + +const char SettingGroup_MainWindow[] = "MainWindow"; +const char SettingGroup_Port[] = "Port"; +const char SettingGroup_DataFormat[] = "DataFormat"; +const char SettingGroup_Binary[] = "DataFormat_Binary"; +const char SettingGroup_ASCII[] = "DataFormat_ASCII"; +const char SettingGroup_CustomFrame[] = "DataFormat_CustomFrame"; +const char SettingGroup_Channels[] = "Channels"; +const char SettingGroup_Plot[] = "Plot"; +const char SettingGroup_Commands[] = "Commands"; + +// mainwindow setting keys +const char SG_MainWindow_Size[] = "size"; +const char SG_MainWindow_Pos[] = "pos"; +const char SG_MainWindow_ActivePanel[] = "activePanel"; +const char SG_MainWindow_HidePanels[] = "hidePanels"; +const char SG_MainWindow_Maximized[] = "maximized"; +const char SG_MainWindow_State[] = "state"; + +// port setting keys +const char SG_Port_SelectedPort[] = "selectedPort"; +const char SG_Port_BaudRate[] = "baudRate"; +const char SG_Port_Parity[] = "parity"; +const char SG_Port_DataBits[] = "dataBits"; +const char SG_Port_StopBits[] = "stopBits"; +const char SG_Port_FlowControl[] = "flowControl"; + +// data format panel keys +const char SG_DataFormat_Format[] = "format"; + +// binary stream reader keys +const char SG_Binary_NumOfChannels[] = "numOfChannels"; +const char SG_Binary_NumberFormat[] = "numberFormat"; +const char SG_Binary_Endianness[] = "endianness"; + +// ascii reader keys +const char SG_ASCII_NumOfChannels[] = "numOfChannels"; + +// framed reader keys +const char SG_CustomFrame_NumOfChannels[] = "numOfChannels"; +const char SG_CustomFrame_FrameStart[] = "frameStart"; +const char SG_CustomFrame_FixedSize[] = "fixedSize"; +const char SG_CustomFrame_FrameSize[] = "frameSize"; +const char SG_CustomFrame_NumberFormat[] = "numberFormat"; +const char SG_CustomFrame_Endianness[] = "endianness"; +const char SG_CustomFrame_Checksum[] = "checksum"; +const char SG_CustomFrame_DebugMode[] = "debugMode"; + +// channel manager keys +const char SG_Channels_Channel[] = "channel"; +const char SG_Channels_Name[] = "name"; + +// plot settings keys +const char SG_Plot_NumOfSamples[] = "numOfSamples"; +const char SG_Plot_AutoScale[] = "autoScale"; +const char SG_Plot_YMax[] = "yMax"; +const char SG_Plot_YMin[] = "yMin"; +const char SG_Plot_DarkBackground[] = "darkBackground"; +const char SG_Plot_Grid[] = "grid"; +const char SG_Plot_MinorGrid[] = "minorGrid"; +const char SG_Plot_Legend[] = "legend"; +const char SG_Plot_MultiPlot[] = "multiPlot"; + +// command setting keys +const char SG_Commands_Command[] = "command"; +const char SG_Commands_Name[] = "name"; +const char SG_Commands_Type[] = "type"; +const char SG_Commands_Data[] = "data"; + +#endif // SETTING_DEFINES_H