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)  

ThemeHandler Class Reference

Provides a widget with buttons for loading of themes. More...

#include <ThemeHandler.h>

Inheritance diagram for ThemeHandler:
[legend]
Collaboration diagram for ThemeHandler:
[legend]

Public Slots

void setCurrentTheme (const QString &)
 

Signals

void loadThemeRequested (const QString &)
 
void saveThemeRequested (KConfig &)
 
void info (const QString &)
 
void loadPreviewPanel (QStringList, QString)
 

Public Member Functions

 ThemeHandler (QWidget *)
 

Static Public Member Functions

static QStringList themeList ()
 
static QStringList themes ()
 
static const QString themeFilePath (const QString &)
 

Private Slots

void loadSelected (const QString &)
 
void showPanel ()
 

Private Attributes

QList< QString > m_dirNames
 
QStringList m_themeList
 
QString m_currentTheme
 
QString m_currentLocalTheme
 
QPushButton * m_pbLoadTheme
 

Detailed Description

Provides a widget with buttons for loading of themes.

File : ThemeHandler.cpp Project : LabPlot

Description : Widget for handling saving and loading of themes

Copyright : (C) 2016 Prakriti Bhardwaj (p_bha.nosp@m.rdwa.nosp@m.j14@i.nosp@m.nfor.nosp@m.matik.nosp@m..uni.nosp@m.-kl.d.nosp@m.e) Copyright : (C) 2016-2017 Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de) Copyright : (C) 2018 Stefan Gerlach (stefa.nosp@m.n.ge.nosp@m.rlach.nosp@m.@uni.nosp@m..kn)

  • 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 *

Emits loadConfig() signal that have to be connected to the appropriate slots in the backend (plot widgets)

Definition at line 39 of file ThemeHandler.h.

Constructor & Destructor Documentation

◆ ThemeHandler()

ThemeHandler::ThemeHandler ( QWidget *  parent)
explicit

Definition at line 60 of file ThemeHandler.cpp.

References i18n, m_pbLoadTheme, m_themeList, showPanel(), and themeList().

Member Function Documentation

◆ info

void ThemeHandler::info ( const QString &  )
signal

◆ loadPreviewPanel

void ThemeHandler::loadPreviewPanel ( QStringList  ,
QString   
)
signal

◆ loadSelected

void ThemeHandler::loadSelected ( const QString &  name)
privateslot

Definition at line 166 of file ThemeHandler.cpp.

References i18n, info(), loadThemeRequested(), and setCurrentTheme().

Referenced by showPanel().

◆ loadThemeRequested

void ThemeHandler::loadThemeRequested ( const QString &  )
signal

◆ saveThemeRequested

void ThemeHandler::saveThemeRequested ( KConfig &  )
signal

◆ setCurrentTheme

void ThemeHandler::setCurrentTheme ( const QString &  name)
slot

◆ showPanel

void ThemeHandler::showPanel ( )
privateslot

◆ themeFilePath()

const QString ThemeHandler::themeFilePath ( const QString &  name)
static

get path for theme of name 'name'

Definition at line 136 of file ThemeHandler.cpp.

References DEBUG, STDSTRING, and themeList().

Referenced by CartesianPlot::childAdded(), Worksheet::handleAspectAdded(), CartesianPlot::load(), CartesianPlot::loadTheme(), and Worksheet::loadTheme().

◆ themeList()

QStringList ThemeHandler::themeList ( )
static

get list of all theme files (full path)

Definition at line 94 of file ThemeHandler.cpp.

References DEBUG, STDSTRING, and themes().

Referenced by themeFilePath(), ThemeHandler(), and themes().

◆ themes()

QStringList ThemeHandler::themes ( )
static

get list of all theme names

Definition at line 115 of file ThemeHandler.cpp.

References DEBUG, QDEBUG, STDSTRING, and themeList().

Referenced by themeList(), and ThemesWidget::ThemesWidget().

Member Data Documentation

◆ m_currentLocalTheme

QString ThemeHandler::m_currentLocalTheme
private

Definition at line 55 of file ThemeHandler.h.

◆ m_currentTheme

QString ThemeHandler::m_currentTheme
private

Definition at line 54 of file ThemeHandler.h.

Referenced by setCurrentTheme().

◆ m_dirNames

QList<QString> ThemeHandler::m_dirNames
private

Definition at line 52 of file ThemeHandler.h.

◆ m_pbLoadTheme

QPushButton* ThemeHandler::m_pbLoadTheme
private

Definition at line 57 of file ThemeHandler.h.

Referenced by setCurrentTheme(), showPanel(), and ThemeHandler().

◆ m_themeList

QStringList ThemeHandler::m_themeList
private

Definition at line 53 of file ThemeHandler.h.

Referenced by ThemeHandler().


The documentation for this class was generated from the following files: