NDEVR
API Documentation
WidgetFactoryBuilder.h
1#pragma once
2#include "BoilerMaker.h"
3#include <NDEVR/String.h>
4#include <NDEVR/File.h>
5#include <NDEVR/InfoPipe.h>
6#include <NDEVR/LogMessage.h>
7namespace NDEVR
8{
53}
Reads a boilerplate copyright/license header template and applies file-specific substitutions,...
Definition BoilerMaker.h:11
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
The core String class for the NDEVR API.
Definition String.h:95
Generates boilerplate header, source, and UI files for a new Qt widget class.
File ui_directory
The directory for generated .ui files.
void createModuleSource(File &file) const
Creates the widget source file on disk.
String className() const
Returns the computed class name for the widget.
String project_name
The module project that owns the widget.
File source_directory
The directory where generated source files are placed.
bool generate_ui
Whether to also generate a .ui file.
String headerPath() const
Returns the relative header path for the widget class.
String uiName() const
Returns the UI file name for the widget.
void createModuleUI(File &file) const
Creates the widget .ui file on disk.
String widgetUIString() const
Generates the .ui XML file content as a string.
String widgetHeaderString() const
Generates the widget header file content as a string.
String widget_name
The human-readable widget name.
String widgetSourceString() const
Generates the widget source file content as a string.
String class_name
The derived class name (computed lazily).
BoilerMaker boiler_maker
Boilerplate template generator.
bool createWidget() const
Generates all widget files (header, source, and optionally UI).
void createModuleHeader(File &file) const
Creates the widget header file on disk.
LogPtr log
Log for status messages.
The primary namespace for the NDEVR SDK.
@ file
The source file path associated with this object.