this->gvc = gvContext();
Ui_Dialog tempDia;
tempDia.setupUi(this);
- graph = NULL;
- activeWindow = NULL;
+ graph = nullptr;
+ activeWindow = nullptr;
QString path;
#ifndef _WIN32
char *s = getenv("GVEDIT_PATH");
{
if (graph) {
agclose(graph);
- graph = NULL;
+ graph = nullptr;
}
graphData.clear();
graphData.append(m->toPlainText());
return false;
if (agerrors()) {
agclose(graph);
- graph = NULL;
+ graph = nullptr;
return false;
}
Agraph_t *G = this->graph;
if (getActiveWindow()->previewFrm != nullptr) {
getActiveWindow()->parentFrm->mdiArea->
removeSubWindow(getActiveWindow()->previewFrm->subWindowRef);
- getActiveWindow()->previewFrm = NULL;
+ getActiveWindow()->previewFrm = nullptr;
}
if ((fileName.isNull()) || !(getActiveWindow()->loadPreview(fileName))) { //create preview
const char *more[], const char *prefer)
{
int count;
- char **lp = gvPluginList(gvc, kind, &count, NULL);
+ char **lp = gvPluginList(gvc, kind, &count, nullptr);
int idx = -1;
cb->clear();
void CMainWindow::createConsole()
{
- QDockWidget *dock = new QDockWidget(tr("Output Console"), NULL);
+ QDockWidget *dock = new QDockWidget(tr("Output Console"), nullptr);
QTextEdit *textEdit = new QTextEdit(dock);
dock->
static const char *xtra[] = {
"NONE",
- (const char *) NULL
+ nullptr
};
CMainWindow::CMainWindow(char*** Files)
verticalLayout_2->addLayout(verticalLayout);
setCentralWidget(centralwidget);
centralwidget->layout()->setContentsMargins(1, 1, 1, 1);
- prevChild = NULL;
+ prevChild = nullptr;
createConsole();
setUnifiedTitleAndToolBarOnMac(true);
QComboBox *cb =
(QComboBox *) frmSettings->findChild < QComboBox * >("cbLayout");
- dfltLayoutIdx = LoadPlugins(cb, frmSettings->gvc, "layout", NULL, "dot");
+ dfltLayoutIdx = LoadPlugins(cb, frmSettings->gvc, "layout", nullptr, "dot");
cb = (QComboBox *) frmSettings->findChild <
QComboBox * >("cbExtension");
dfltRenderIdx =
Q_OBJECT
public:
- CMainWindow(char*** Files=NULL);
+ CMainWindow(char*** Files = nullptr);
QMdiArea *mdiArea;
void addFile (QString fileName);
std::vector <QString> initFiles;
private slots:
void slotSettings();
- void slotRun(MdiChild * m=NULL);
+ void slotRun(MdiChild* m = nullptr);
void slotNew();
void slotOpen();
void slotSave();