2020-04-05 18:22:45 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
KLayout Layout Viewer
|
2022-01-04 21:20:04 +01:00
|
|
|
Copyright (C) 2006-2022 Matthias Koefferlein
|
2020-04-05 18:22:45 +02:00
|
|
|
|
|
|
|
|
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_layD25View
|
|
|
|
|
#define HDR_layD25View
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
#include "tlObject.h"
|
2021-09-21 22:52:13 +02:00
|
|
|
#include "layBrowser.h"
|
2020-04-05 18:22:45 +02:00
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
|
{
|
|
|
|
|
class D25View;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace lay
|
|
|
|
|
{
|
|
|
|
|
class LayoutView;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace lay
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
class D25View
|
2021-09-21 22:52:13 +02:00
|
|
|
: public lay::Browser
|
2020-04-05 18:22:45 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2021-09-21 22:52:13 +02:00
|
|
|
D25View (lay::Dispatcher *root, lay::LayoutView *view);
|
2020-04-05 18:22:45 +02:00
|
|
|
~D25View ();
|
|
|
|
|
|
2021-09-21 22:52:13 +02:00
|
|
|
virtual void menu_activated (const std::string &symbol);
|
|
|
|
|
virtual void deactivated ();
|
|
|
|
|
virtual void activated ();
|
2020-04-05 18:22:45 +02:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void accept ();
|
2021-08-31 19:05:30 +02:00
|
|
|
void reject ();
|
2020-04-05 18:22:45 +02:00
|
|
|
|
2020-04-16 23:14:22 +02:00
|
|
|
private slots:
|
|
|
|
|
void fit_button_clicked ();
|
2020-04-17 00:25:21 +02:00
|
|
|
void scale_factor_changed (double f);
|
|
|
|
|
void scale_slider_changed (int value);
|
2021-08-31 10:43:02 +02:00
|
|
|
void scale_value_edited ();
|
2021-08-30 16:01:35 +02:00
|
|
|
void vscale_factor_changed (double f);
|
|
|
|
|
void vscale_slider_changed (int value);
|
2021-08-31 10:43:02 +02:00
|
|
|
void vscale_value_edited ();
|
2020-12-28 00:09:27 +01:00
|
|
|
void init_failed ();
|
2020-04-16 23:14:22 +02:00
|
|
|
|
2020-04-05 18:22:45 +02:00
|
|
|
private:
|
|
|
|
|
Ui::D25View *mp_ui;
|
2021-09-22 23:29:58 +02:00
|
|
|
|
|
|
|
|
void cellviews_changed ();
|
|
|
|
|
void layer_properties_changed (int);
|
2020-04-05 18:22:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|