Small adjustements.
This commit is contained in:
parent
dfdb2ec2d5
commit
d42cf11ec6
|
@ -80,6 +80,7 @@ namespace Hurricane {
|
||||||
, _refreshAction(NULL)
|
, _refreshAction(NULL)
|
||||||
, _fitToContentsAction(NULL)
|
, _fitToContentsAction(NULL)
|
||||||
, _showSelectionAction(NULL)
|
, _showSelectionAction(NULL)
|
||||||
|
, _showPaletteAction(NULL)
|
||||||
, _runInspectorOnDataBase(NULL)
|
, _runInspectorOnDataBase(NULL)
|
||||||
, _runInspectorOnCell(NULL)
|
, _runInspectorOnCell(NULL)
|
||||||
, _browseNetlist(NULL)
|
, _browseNetlist(NULL)
|
||||||
|
@ -152,6 +153,12 @@ namespace Hurricane {
|
||||||
_showSelectionAction->setShortcut ( Qt::Key_S );
|
_showSelectionAction->setShortcut ( Qt::Key_S );
|
||||||
_showSelectionAction->setCheckable ( true );
|
_showSelectionAction->setCheckable ( true );
|
||||||
|
|
||||||
|
_showPaletteAction = new QAction ( tr("Show &Palette"), this );
|
||||||
|
_showPaletteAction->setObjectName ( "viewer.view.showPalette" );
|
||||||
|
_showPaletteAction->setStatusTip ( tr("Hide/Show the Palette sub-window") );
|
||||||
|
_showPaletteAction->setCheckable ( true );
|
||||||
|
_showPaletteAction->setChecked ( true );
|
||||||
|
|
||||||
_runInspectorOnDataBase= new QAction ( tr("Inspect &DataBase"), this );
|
_runInspectorOnDataBase= new QAction ( tr("Inspect &DataBase"), this );
|
||||||
_runInspectorOnDataBase->setObjectName ( "viewer.tool.inspectDb" );
|
_runInspectorOnDataBase->setObjectName ( "viewer.tool.inspectDb" );
|
||||||
_runInspectorOnDataBase->setStatusTip ( tr("Run Inspector on Hurricane DataBase") );
|
_runInspectorOnDataBase->setStatusTip ( tr("Run Inspector on Hurricane DataBase") );
|
||||||
|
@ -189,6 +196,7 @@ namespace Hurricane {
|
||||||
_viewMenu->addAction ( _refreshAction );
|
_viewMenu->addAction ( _refreshAction );
|
||||||
_viewMenu->addAction ( _fitToContentsAction );
|
_viewMenu->addAction ( _fitToContentsAction );
|
||||||
_viewMenu->addAction ( _showSelectionAction );
|
_viewMenu->addAction ( _showSelectionAction );
|
||||||
|
_viewMenu->addAction ( _showPaletteAction );
|
||||||
|
|
||||||
_toolsMenu = menuBar()->addMenu ( tr("Tool") );
|
_toolsMenu = menuBar()->addMenu ( tr("Tool") );
|
||||||
_toolsMenu->setObjectName ( "viewer.tool" );
|
_toolsMenu->setObjectName ( "viewer.tool" );
|
||||||
|
@ -228,7 +236,7 @@ namespace Hurricane {
|
||||||
| QDockWidget::DockWidgetMovable
|
| QDockWidget::DockWidgetMovable
|
||||||
| QDockWidget::DockWidgetFloatable
|
| QDockWidget::DockWidgetFloatable
|
||||||
);
|
);
|
||||||
layerMapDock->setObjectName ( "HPalette" );
|
layerMapDock->setObjectName ( "viewer.dock.paletteWindow" );
|
||||||
layerMapDock->setWidget ( _palette );
|
layerMapDock->setWidget ( _palette );
|
||||||
layerMapDock->setAllowedAreas ( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
|
layerMapDock->setAllowedAreas ( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
|
||||||
addDockWidget ( Qt::RightDockWidgetArea, layerMapDock );
|
addDockWidget ( Qt::RightDockWidgetArea, layerMapDock );
|
||||||
|
@ -238,6 +246,7 @@ namespace Hurricane {
|
||||||
connect ( _refreshAction , SIGNAL(triggered()) , _cellWidget, SLOT(redraw ()));
|
connect ( _refreshAction , SIGNAL(triggered()) , _cellWidget, SLOT(redraw ()));
|
||||||
connect ( _fitToContentsAction , SIGNAL(triggered()) , _cellWidget, SLOT(fitToContents ()));
|
connect ( _fitToContentsAction , SIGNAL(triggered()) , _cellWidget, SLOT(fitToContents ()));
|
||||||
connect ( _showSelectionAction , SIGNAL(toggled(bool)), _cellWidget, SLOT(setShowSelection (bool)));
|
connect ( _showSelectionAction , SIGNAL(toggled(bool)), _cellWidget, SLOT(setShowSelection (bool)));
|
||||||
|
connect ( _showPaletteAction , SIGNAL(toggled(bool)), this , SLOT(setShowPalette (bool)));
|
||||||
connect ( _runInspectorOnDataBase, SIGNAL(triggered()) , this , SLOT(runInspectorOnDataBase()));
|
connect ( _runInspectorOnDataBase, SIGNAL(triggered()) , this , SLOT(runInspectorOnDataBase()));
|
||||||
connect ( _runInspectorOnCell , SIGNAL(triggered()) , this , SLOT(runInspectorOnCell ()));
|
connect ( _runInspectorOnCell , SIGNAL(triggered()) , this , SLOT(runInspectorOnCell ()));
|
||||||
connect ( _browseNetlist , SIGNAL(triggered()) , this , SLOT(browseNetlist ()));
|
connect ( _browseNetlist , SIGNAL(triggered()) , this , SLOT(browseNetlist ()));
|
||||||
|
@ -312,6 +321,23 @@ namespace Hurricane {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CellViewer::setShowPalette ( bool show )
|
||||||
|
{
|
||||||
|
QDockWidget* paletteWindow = findChild<QDockWidget*>("viewer.dock.paletteWindow");
|
||||||
|
|
||||||
|
if ( !paletteWindow ) {
|
||||||
|
cerr << "paletteWindow not found." << endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( show ) paletteWindow->show ();
|
||||||
|
else paletteWindow->hide ();
|
||||||
|
|
||||||
|
// if ( show ) _palette->show ();
|
||||||
|
// else _palette->hide ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CellViewer::openHistoryCell ()
|
void CellViewer::openHistoryCell ()
|
||||||
{
|
{
|
||||||
QAction* historyAction = qobject_cast<QAction*> ( sender() );
|
QAction* historyAction = qobject_cast<QAction*> ( sender() );
|
||||||
|
|
|
@ -96,6 +96,7 @@ namespace Hurricane {
|
||||||
void unselect ( Occurrence& occurence );
|
void unselect ( Occurrence& occurence );
|
||||||
void unselectAll ();
|
void unselectAll ();
|
||||||
public slots:
|
public slots:
|
||||||
|
void setShowPalette ( bool show );
|
||||||
void openHistoryCell ();
|
void openHistoryCell ();
|
||||||
void runInspectorOnDataBase ();
|
void runInspectorOnDataBase ();
|
||||||
void runInspectorOnCell ();
|
void runInspectorOnCell ();
|
||||||
|
@ -113,6 +114,7 @@ namespace Hurricane {
|
||||||
QAction* _refreshAction;
|
QAction* _refreshAction;
|
||||||
QAction* _fitToContentsAction;
|
QAction* _fitToContentsAction;
|
||||||
QAction* _showSelectionAction;
|
QAction* _showSelectionAction;
|
||||||
|
QAction* _showPaletteAction;
|
||||||
QAction* _runInspectorOnDataBase;
|
QAction* _runInspectorOnDataBase;
|
||||||
QAction* _runInspectorOnCell;
|
QAction* _runInspectorOnCell;
|
||||||
QAction* _browseNetlist;
|
QAction* _browseNetlist;
|
||||||
|
|
Loading…
Reference in New Issue