CopperSpice Overview
UIC

CopperSpice Designer is an application developers can use to graphically create or edit User Interface files. The .UI files are listed in your build files and will be compiled into your program. Using the Designer program is an efficient and convenient way to layout complex graphical screens which often contain numerous windows, dialogs, and widgets.

The User Interface Compiler (UIC) is a CopperSpice executable which is used to compile a .UI file during the build process of your application. Each *.ui file is compiled into a ui_*.h header file.

Your project files will need to include commands which instruct CMake to compile the .UI files. This is implemented by calling a built in CopperSpice CMake macro. Refer to our Sample CMake File and review the lines which reference lunch.ui.

Using UIC

uic [options] <uifile>

UIC accepts the following command line options.

Option Description
-o <file> Write output to <file> instead of standard output
-tr <func> Use <func> for translating strings instead of tr()
-p Do not generate guards against multiple #include commands
-v Display version number
-h Display usage information