klayout/src/laybasic/laybasic/layNetExportDialog.h

90 lines
1.9 KiB
C++

/*
KLayout Layout Viewer
Copyright (C) 2006-2020 Matthias Koefferlein
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef HDR_layNetExportDialog
#define HDR_layNetExportDialog
#include "ui_NetExportDialog.h"
#include "dbLayoutToNetlist.h"
#include "tlObjectCollection.h"
#include <QDialog>
namespace Ui
{
class NetExportDialog;
}
namespace lay
{
class Dispatcher;
/**
* @brief A dialog showing the details of a net
*/
class NetExportDialog
: public QDialog
{
Q_OBJECT
public:
NetExportDialog (QWidget *parent);
~NetExportDialog ();
void set_net_prefix (const std::string &net_prefix);
std::string net_prefix ();
void set_net_propname (const tl::Variant &net_propname);
tl::Variant net_propname ();
void set_produce_circuit_cells (bool f);
bool produce_circuit_cells ();
void set_circuit_cell_prefix (const std::string &net_prefix);
std::string circuit_cell_prefix ();
void set_produce_device_cells (bool f);
bool produce_device_cells ();
void set_device_cell_prefix (const std::string &net_prefix);
std::string device_cell_prefix ();
void set_start_layer_number (int ln);
int start_layer_number ();
int exec_dialog (lay::Dispatcher *mp_plugin_root);
protected:
void accept ();
private:
Ui::NetExportDialog *ui;
};
}
#endif