labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

GuiTools.cpp File Reference
#include "GuiTools.h"
#include <KI18n/KLocalizedString>
#include <array>
#include <QApplication>
#include <QComboBox>
#include <QLineEdit>
#include <QMenu>
#include <QColor>
#include <QPainter>
Include dependency graph for GuiTools.cpp:

Go to the source code of this file.

Variables

static const int colorsCount = 26
 
static std::array< QColor, colorsCountcolors
 

Variable Documentation

◆ colors

std::array<QColor, colorsCount> colors
static
Initial value:
= {QColor(255,255,255), QColor(0,0,0),
QColor(192,0,0), QColor(255,0,0), QColor(255,192,192),
QColor(0,192,0), QColor(0,255,0), QColor(192,255,192),
QColor(0,0,192), QColor(0,0,255), QColor(192,192,255),
QColor(192,192,0), QColor(255,255,0), QColor(255,255,192),
QColor(0,192,192), QColor(0,255,255), QColor(192,255,255),
QColor(192,0,192), QColor(255,0,255), QColor(255,192,255),
QColor(192,88,0), QColor(255,128,0), QColor(255,168,88),
QColor(128,128,128), QColor(160,160,160), QColor(195,195,195)
}

Definition at line 42 of file GuiTools.cpp.

Referenced by GuiTools::colorFromAction(), GuiTools::fillColorMenu(), ImageEditor::findBackgroundColor(), and GuiTools::selectColorAction().

◆ colorsCount

const int colorsCount = 26
static

File : GuiTools.cpp

Project : LabPlot

Copyright : (C) 2011-2013 Alexander Semke (alexander.semke*web.de) (replace * with @ in the email addresses) Description : contains several static functions which are used on frequently throughout the kde frontend.

  • This program 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 2 of the License, or * (at your option) any later version. *
  • This program 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 this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 41 of file GuiTools.cpp.

Referenced by GuiTools::colorFromAction(), GuiTools::fillColorMenu(), and GuiTools::selectColorAction().