* All tools:
- Change: Correction to suppress all g++ warnings. Except thoses comming from bad Python system includes...
This commit is contained in:
parent
d25bea005d
commit
b8883968be
|
@ -283,7 +283,7 @@ extern "C" {
|
||||||
|
|
||||||
PyObject* arg0;
|
PyObject* arg0;
|
||||||
PyObject* arg1;
|
PyObject* arg1;
|
||||||
DbU::Unit result;
|
DbU::Unit result = 0;
|
||||||
|
|
||||||
HTRY
|
HTRY
|
||||||
__cs.init ( "DbU.getOnPhysicalGrid" );
|
__cs.init ( "DbU.getOnPhysicalGrid" );
|
||||||
|
|
|
@ -1286,7 +1286,7 @@ namespace Hurricane {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CellWidget::changeDbuMode ( int mode, DbU::UnitPower p )
|
void CellWidget::changeDbuMode ( unsigned int mode, DbU::UnitPower p )
|
||||||
{
|
{
|
||||||
if ( (_state->getDbuMode() != mode) or (_state->getUnitPower() != p) ) {
|
if ( (_state->getDbuMode() != mode) or (_state->getUnitPower() != p) ) {
|
||||||
_state->setDbuMode ( mode );
|
_state->setDbuMode ( mode );
|
||||||
|
@ -1670,7 +1670,7 @@ namespace Hurricane {
|
||||||
|
|
||||||
QFontMetrics metrics = QFontMetrics(font);
|
QFontMetrics metrics = QFontMetrics(font);
|
||||||
int width = metrics.width ( text );
|
int width = metrics.width ( text );
|
||||||
int height = metrics.height ();
|
//int height = metrics.height ();
|
||||||
int angle = 0;
|
int angle = 0;
|
||||||
|
|
||||||
if ( (width > box.width()) and (box.height() > 2*box.width()) )
|
if ( (width > box.width()) and (box.height() > 2*box.width()) )
|
||||||
|
|
|
@ -236,6 +236,7 @@ namespace Hurricane {
|
||||||
case DbU::Physical:
|
case DbU::Physical:
|
||||||
switch ( _cellWidget->getUnitPower() ) {
|
switch ( _cellWidget->getUnitPower() ) {
|
||||||
case DbU::Nano: _nanoMode ->setChecked(true); break;
|
case DbU::Nano: _nanoMode ->setChecked(true); break;
|
||||||
|
default:
|
||||||
case DbU::Micro: _microMode->setChecked(true); break;
|
case DbU::Micro: _microMode->setChecked(true); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -39,8 +39,8 @@ namespace Hurricane {
|
||||||
|
|
||||||
ExceptionWidget::ExceptionWidget ( QWidget* parent )
|
ExceptionWidget::ExceptionWidget ( QWidget* parent )
|
||||||
: QDialog (parent)
|
: QDialog (parent)
|
||||||
, _message(new QLabel())
|
|
||||||
, _header (new QLabel())
|
, _header (new QLabel())
|
||||||
|
, _message(new QLabel())
|
||||||
{
|
{
|
||||||
setAttribute ( Qt::WA_DeleteOnClose );
|
setAttribute ( Qt::WA_DeleteOnClose );
|
||||||
setModal ( true );
|
setModal ( true );
|
||||||
|
|
|
@ -141,7 +141,7 @@ namespace Hurricane {
|
||||||
if ( mode == DbU::Physical ) {
|
if ( mode == DbU::Physical ) {
|
||||||
switch ( p ) {
|
switch ( p ) {
|
||||||
case DbU::Nano: mode = Nanometer; break;
|
case DbU::Nano: mode = Nanometer; break;
|
||||||
defult:
|
default:
|
||||||
case DbU::Micro: mode = Micrometer; break;
|
case DbU::Micro: mode = Micrometer; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,9 +94,9 @@ namespace Hurricane {
|
||||||
|
|
||||||
void InspectorWidget::History::goTo ( int depth )
|
void InspectorWidget::History::goTo ( int depth )
|
||||||
{
|
{
|
||||||
if ( ( depth < 0 ) || ( depth >= (int)_slots.size() ) ) return;
|
if ( ( depth < 0 ) or ( (size_t)depth >= _slots.size() ) ) return;
|
||||||
if ( depth != _depth ) {
|
if ( (size_t)depth != _depth ) {
|
||||||
_depth = depth;
|
_depth = (size_t)depth;
|
||||||
_comboBox->setCurrentIndex ( _depth );
|
_comboBox->setCurrentIndex ( _depth );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace {
|
||||||
inline int GridBuffer::getRow () const { return _row; }
|
inline int GridBuffer::getRow () const { return _row; }
|
||||||
inline int GridBuffer::getColumn () const { return _column; }
|
inline int GridBuffer::getColumn () const { return _column; }
|
||||||
inline int GridBuffer::getCurrentRow () const { return _widgets.size() + _row; }
|
inline int GridBuffer::getCurrentRow () const { return _widgets.size() + _row; }
|
||||||
inline bool GridBuffer::columnOverload () const { return getCurrentRow() > _rowMax; }
|
inline bool GridBuffer::columnOverload () const { return getCurrentRow() > (int)_rowMax; }
|
||||||
|
|
||||||
|
|
||||||
void GridBuffer::flushWidgets ()
|
void GridBuffer::flushWidgets ()
|
||||||
|
|
|
@ -285,7 +285,7 @@ namespace Hurricane {
|
||||||
inline void clearRulers ();
|
inline void clearRulers ();
|
||||||
void changeQueryFilter ();
|
void changeQueryFilter ();
|
||||||
void rubberChange ();
|
void rubberChange ();
|
||||||
void changeDbuMode ( int mode, DbU::UnitPower );
|
void changeDbuMode ( unsigned int mode, DbU::UnitPower );
|
||||||
void setStyle ( int id );
|
void setStyle ( int id );
|
||||||
void updatePalette ();
|
void updatePalette ();
|
||||||
void cellPreModificate ();
|
void cellPreModificate ();
|
||||||
|
|
|
@ -196,7 +196,6 @@ namespace Hurricane {
|
||||||
string windowTitle = "Netlist" + getString(cell);
|
string windowTitle = "Netlist" + getString(cell);
|
||||||
setWindowTitle ( tr(windowTitle.c_str()) );
|
setWindowTitle ( tr(windowTitle.c_str()) );
|
||||||
|
|
||||||
int rows = _sortModel->rowCount ();
|
|
||||||
_view->selectRow ( 0 );
|
_view->selectRow ( 0 );
|
||||||
_view->resizeColumnToContents ( 0 );
|
_view->resizeColumnToContents ( 0 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ int main() {
|
||||||
////
|
////
|
||||||
|
|
||||||
//Net net1 External and IN of Model1 creation
|
//Net net1 External and IN of Model1 creation
|
||||||
Net* net1 = Net::create(model1, Name("net1"));
|
//Net* net1 = Net::create(model1, Name("net1"));
|
||||||
cout << "Testing net1 presence in cell model1" << endl;
|
cout << "Testing net1 presence in cell model1" << endl;
|
||||||
/////
|
/////
|
||||||
//set net1 as External
|
//set net1 as External
|
||||||
|
|
Loading…
Reference in New Issue