diff --git a/doc/ChangeLog b/doc/ChangeLog index e5dcd541d..b23bf8a35 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-12-29 + + * SSHUnx.cpp (SSHUnx::stateMachine): using signal proper for qt4 + (bytesWritten(quint64) instead of wroteToStdin) + 2007-12-19 vadim * v2.1.16 release diff --git a/src/gui/FWBMainWindow_q.ui b/src/gui/FWBMainWindow_q.ui index ed96e57da..9ea1fc911 100644 --- a/src/gui/FWBMainWindow_q.ui +++ b/src/gui/FWBMainWindow_q.ui @@ -13,9 +13,7 @@ - - 7 - 5 + 0 0 @@ -26,6 +24,13 @@ 0 + + + Sans Serif + 11 + PreferDefault + + Firewall Builder @@ -34,18 +39,28 @@ - + 0 - + + 0 + + + 0 + + + 0 + + + 0 + + 0 - - 3 - 5 + 0 0 @@ -57,18 +72,25 @@ QFrame::Sunken - + 0 - + + 0 + + + 0 + + + 0 + + 0 - - 5 - 5 + 0 0 @@ -102,10 +124,22 @@ QFrame::Plain - + 0 - + + 0 + + + 0 + + + 0 + + + 0 + + 0 @@ -117,18 +151,28 @@ QFrame::Raised - + 2 - + + 2 + + + 2 + + + 2 + + + 0 + + 0 - - 0 - 0 + 0 0 @@ -185,9 +229,7 @@ - - 7 - 7 + 0 0 @@ -203,9 +245,7 @@ - - 7 - 7 + 0 0 @@ -219,9 +259,7 @@ - - 7 - 7 + 0 0 @@ -239,9 +277,7 @@ - - 3 - 5 + 0 0 @@ -259,26 +295,45 @@ QFrame::Plain - + 0 - + + 0 + + + 0 + + + 0 + + + 0 + + 0 - + 0 - + + 0 + + + 0 + + + 0 + + 0 - - 7 - 5 + 0 0 @@ -319,9 +374,7 @@ - - 1 - 5 + 0 0 @@ -337,9 +390,7 @@ - - 0 - 0 + 0 0 @@ -360,9 +411,7 @@ - - 5 - 7 + 0 0 @@ -377,9 +426,7 @@ - - 5 - 0 + 0 0 @@ -403,21 +450,28 @@ QFrame::Plain - - 11 - 0 + + 11 + + + 11 + + + 11 + + + 11 + - - 5 - 5 + 0 0 @@ -429,18 +483,28 @@ QFrame::Plain - + 0 - + + 0 + + + 0 + + + 0 + + + 0 + + 0 - - 5 - 0 + 0 0 @@ -456,12 +520,21 @@ - - 0 - 10 + + 0 + + + 0 + + + 0 + + + 0 + @@ -481,9 +554,7 @@ - - 0 - 0 + 0 0 @@ -502,9 +573,7 @@ - - 0 - 0 + 0 0 @@ -565,7 +634,10 @@ Qt::Horizontal - 4 + TopToolBarArea + + + false @@ -581,7 +653,7 @@ 0 0 741 - 32 + 24 diff --git a/src/gui/FWWindow.cpp b/src/gui/FWWindow.cpp index 9f3e0a067..54b360731 100644 --- a/src/gui/FWWindow.cpp +++ b/src/gui/FWWindow.cpp @@ -158,6 +158,8 @@ FWWindow::FWWindow() if (fwbdebug) qDebug("FWWindow constructor"); + setUnifiedTitleAndToolBarOnMac(true); + m_mainWindow = new Ui::FWBMainWindow_q(); m_mainWindow->setupUi(dynamic_cast(this)); diff --git a/src/gui/SSHUnx.cpp b/src/gui/SSHUnx.cpp index 2cb23dab8..493d9cc88 100644 --- a/src/gui/SSHUnx.cpp +++ b/src/gui/SSHUnx.cpp @@ -223,7 +223,7 @@ void SSHUnx::stateMachine() { if (fwbdebug) qDebug("SSHUnx::stateMachine - sending a file"); emit updateProgressBar_sign(input.size(),true); - connect(proc,SIGNAL(wroteToStdin()),this,SLOT(readyToSend())); + connect(proc,SIGNAL(bytesWritten(qint64)),this,SLOT(readyToSend())); sendLine(); break; } diff --git a/src/gui/instDialog.cpp b/src/gui/instDialog.cpp index 1069b8e6f..e5fa894a2 100644 --- a/src/gui/instDialog.cpp +++ b/src/gui/instDialog.cpp @@ -1813,7 +1813,7 @@ void instDialog::addToLog(const QString &line) // currentLog->insert( line ); currentLog->append( line ); - if (words.first().indexOf("rule")>=0) + if (words.first().indexOf("rule")>=0) { currentProgressBar->setValue(++processedRules); } else @@ -2305,6 +2305,7 @@ void instDialog::fillInstallOpList() } } } + void instDialog::initInstall() { if (fwbdebug) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 48e5aa97e..1f9000a0f 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -48,8 +48,9 @@ #include #include #include -//Added by qt3to4: + #include +#include /* #ifdef _WIN32 @@ -350,8 +351,6 @@ int main( int argc, char ** argv ) fwbdebug=0; safemode=false; - bool desktopaware = true; - /* * I am using njamd a lot, but gtkmm and probably some other libs * generate trap in their global static initialization code. Therefore @@ -573,10 +572,6 @@ int main( int argc, char ** argv ) cout << VERSION << endl; exit(0); - case 'x': - desktopaware=!desktopaware; - break; - case 's': safemode = true; break; @@ -600,8 +595,12 @@ int main( int argc, char ** argv ) if (fwbdebug) qDebug("creating app ..."); - QApplication::setDesktopSettingsAware(desktopaware); + //QApplication::setDesktopSettingsAware(desktopaware); app = new QApplication( argc, argv ); + app->setOrganizationName(QLatin1String("NetCitadel LLC")); + app->setApplicationName(QLatin1String("Firewall Builder")); + + Q_INIT_RESOURCE(MainRes); if (fwbdebug) qDebug("reading settings ..."); @@ -648,9 +647,20 @@ int main( int argc, char ** argv ) QString local = QLocale::system().name(); QTranslator translator(0); - translator.load(QString("fwbuilder_")+QString(local),localepath.c_str()); + translator.load(QLatin1String("fwbuilder_") + + QString(local), localepath.c_str()); app->installTranslator (&translator); + QString qt_resource_dir = + QLibraryInfo::location(QLibraryInfo::TranslationsPath); + + + QTranslator qt_translator(0); + qt_translator.load(QLatin1String("qt_") + QLocale::system().name(), + qt_resource_dir); + app->installTranslator (&qt_translator); + + /* must build list of available libraries _after_ creation of * FWObjectDatabase and settings */