logo

Class layout

logo

Introduction
Screenshots
License/Download
Installation
Userinterface
Function Index
Macro Programming
Links
Community

mouse left
no help

layout Class Reference

main widget class more...

Public Member Functions

voidchoose()
file open
voidchooseImport()
file import
voiddeleteActuellCell()
delete
intexecuteMacro(string filename)
execute macro
doublegetDouble(string caption,string lable)
get double
intgetInteger(string caption,string lable)
get integer
stringgetText(string caption,string lable)
get text
voidgroup()
group selected elements
voidnewCell()
new cell
voidprint()
print
voidsave()
file save
voidsaveAs()
file save as
voidsaveScreenshot(string filename)
screenshot
voidscreenshot()
screenshot
voidsetCell()
set cell
voidsetCellname()
set cellname
boolsetShortcut(string function,string key)
set shortcut
voidshowMessage(string caption,string label)
show message
voidshowStatus(string lable)
show message in statusbar

Public Attributes

booleanHandler*booleanTool
boolean tool
static booldebug
debug mode
drawingField*drawing
head class of the drawing
drc*drcTool
design rule checker tool
stringfilename
filename
netListModule*netlistTool
netlist tool

Detailed Description

This class is the main widget of the windows from which the macro was executed. It is directly accessible via the classname "layout".

layout->filename="/var/layouts/samples1.gds";
layout->newCell();

Most methods of this call require a user dialog. A direct access of the drawing is possible via the member drawing. drawingField

Member Documentation

netListModule* layout::netlistTool

    netlist tool

    The netlist utilities are accessible via this class.

    booleanHandler* layout::booleanTool

      boolean tool

      The boolean utilities are accessible via this class. booleanHandler

      drc* layout::drcTool

        design rule checker tool

        The design rule checker is accessible via this class. drc

        drawingField* layout::drawing

          head class of the drawing

          This class is the main class of the drawing. It holds all relevant information. drawingField

          string layout::filename

            filename

            This string hold the current filename.

            void layout::showMessage(string caption,string label)

              show message

              A message will be displayed.

              Parameters:

              captionthe title of the window.
              labelthis string will be displayed inside the window.

              int layout::executeMacro(string filename)

                execute macro

                Another macro is executed. The execution of this macro stopped until the termination of the new started macro.

                Parameters:

                filenamefilename of the macro.

                void layout::choose()

                  file open

                  It opened a file dialog. The selected file will be loaded.

                  void layout::chooseImport()

                    file import

                    It opened a file dialog. The selected file will be imported.(= add to the existing file)

                    void layout::setCellname()

                      set cellname

                      You will be prompted to enter a name for the current displayed cell.

                      void layout::save()

                        file save

                        The actual file will be saved. If filename is empty, you will be prompted to enter a filename.

                        void layout::saveAs()

                          file save as

                          You will be prompted to enter a filename. The actuell file will be saved.

                          void layout::print()

                            print

                            A printer dialog will be opened.

                            bool layout::setShortcut(string function,string key)

                              set shortcut

                              Use this function to modify any existing shortcut. It returns true, if the modification was successful.

                              string layout::getText(string caption,string lable)

                                get text

                                The user will be prompted to enter a text.

                                Parameters:

                                captionthe title of the window.
                                lablethis string will be displayed inside the window.

                                Returns:

                                returns the text set by the user.

                                int layout::getInteger(string caption,string lable)

                                  get integer

                                  The user will be prompted to enter a integer.

                                  Parameters:

                                  captionthe title of the window.
                                  lablethis string will be displayed inside the window.

                                  Returns:

                                  returns the integer set by the user.

                                  double layout::getDouble(string caption,string lable)

                                    get double

                                    The user will be prompted to enter a double.

                                    Parameters:

                                    captionthe title of the window.
                                    lablethis string will be displayed inside the window.

                                    Returns:

                                    returns the double set by the user.

                                    void layout::showStatus(string lable)

                                      show message in statusbar

                                      A message will be displayed in the statusbar for 2 seconds.

                                      Parameters:

                                      lablethis string will be displayed in the statusbar.

                                      void layout::setCell()

                                        set cell

                                        You will be prompted to select a cell. The cell will be displayed.

                                        void layout::screenshot()

                                          screenshot

                                          The screen will be saved. You will be prompted to enter a filename.

                                          void layout::saveScreenshot(string filename)

                                            screenshot

                                            The screen will be saved in the file with the name filename. The type is selected by the extension.

                                            void layout::group()

                                              group selected elements

                                              All selected elements are moved to a new cell. A correlating cellref will be added.

                                              void layout::deleteActuellCell()

                                                delete

                                                After a confirmation the current display cell will be deleted. If there are no more cell in the drawing, a new empty cell will be created.

                                                void layout::newCell()

                                                  new cell

                                                  A new empty cell will be added.

                                                  static bool layout::debug

                                                    debug mode

                                                    True if the debug mode is on.

                                                    SourceForge.net LogoThis page may be outdated. Visit the new LayoutEditor homepage for the newest infomations!