Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
csettings.cpp File Reference
#include "csettings.h"
#include "mainwindow.h"
#include "mdichild.h"
#include "qfiledialog.h"
#include "qmessagebox.h"
#include "string.h"
#include <QTemporaryFile>
#include <QtWidgets>
#include <cassert>
#include <cgraph/rdr.h>
#include <cstdint>
#include <qfile.h>
#include <string>
#include <vector>
#include <unistd.h>
Include dependency graph for csettings.cpp:

Go to the source code of this file.

Macros

#define WIDGET(t, f)   ((t *)findChild<t *>(QStringLiteral(#f)))
 

Functions

int errorPipe (char *errMsg)
 
static std::string readln (const std::string &path)
 readlink-alike but dynamically allocates
 
static std::string find_me (void)
 find an absolute path to the current executable
 
static std::string find_share (void)
 find an absolute path to where Smyrna auxiliary files are stored
 
bool loadAttrs (const QString &fileName, QComboBox *cbNameG, QComboBox *cbNameN, QComboBox *cbNameE)
 
QString stripFileExtension (const QString &fileName)
 
static QString buildTempFile ()
 

Macro Definition Documentation

◆ WIDGET

#define WIDGET (   t,
 
)    ((t *)findChild<t *>(QStringLiteral(#f)))

Definition at line 43 of file csettings.cpp.

Function Documentation

◆ buildTempFile()

static QString buildTempFile ( )
static

Definition at line 453 of file csettings.cpp.

◆ errorPipe()

int errorPipe ( char *  errMsg)
extern

Definition at line 23 of file mainwindow.cpp.

References globTextEdit.

◆ find_me()

static std::string find_me ( void  )
static

Definition at line 75 of file csettings.cpp.

References path::data, errout, NULL, and readln().

Referenced by find_share().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_share()

static std::string find_share ( void  )
static

Definition at line 170 of file csettings.cpp.

References errout, and find_me().

Referenced by CFrmSettings::CFrmSettings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadAttrs()

bool loadAttrs ( const QString &  fileName,
QComboBox *  cbNameG,
QComboBox *  cbNameN,
QComboBox *  cbNameE 
)

Definition at line 207 of file csettings.cpp.

References errout, fileName(), and id.

Referenced by CFrmSettings::CFrmSettings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readln()

static std::string readln ( const std::string &  path)
static

Definition at line 47 of file csettings.cpp.

References path::data.

Referenced by find_me().

Here is the caller graph for this function:

◆ stripFileExtension()

QString stripFileExtension ( const QString &  fileName)

Definition at line 243 of file csettings.cpp.

References fileName().

Here is the call graph for this function: