From: Joel Holdsworth Date: Tue, 7 Aug 2012 22:07:20 +0000 (+0100) Subject: Renamed sigrok-qt2 to PulseView X-Git-Tag: pulseview-0.1.0~314 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a8d3fb2df629023bb80b60cefb35c90b859206f8;p=pulseview.git Renamed sigrok-qt2 to PulseView --- diff --git a/.gitignore b/.gitignore index 9daf758c..6520b8f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -sigrok-qt2 -sigrok-qt2-test +pulseview +pulseview-test # CMake cruft CMakeCache.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d62dfcb..eda85202 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) include(FindPkgConfig) -project(sigrok-qt2) +project(pulseview) find_package(PkgConfig) pkg_check_modules(PKGDEPS REQUIRED @@ -14,7 +14,7 @@ find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) set(VERSION 0.1.0) -set(sigrok-qt2_SOURCES +set(pulseview_SOURCES about.cpp datasnapshot.cpp logicdata.cpp @@ -29,7 +29,7 @@ set(sigrok-qt2_SOURCES sigview.cpp ) -set(sigrok-qt2_HEADERS +set(pulseview_HEADERS about.h mainwindow.h samplingbar.h @@ -37,15 +37,15 @@ set(sigrok-qt2_HEADERS sigview.h ) -set(sigrok-qt2_FORMS +set(pulseview_FORMS about.ui ) -set(sigrok-qt2_RESOURCES - sigrok-qt2.qrc +set(pulseview_RESOURCES + pulseview.qrc ) -set(sigrok-qt2_TEST_SOURCES +set(pulseview_TEST_SOURCES test/logicdatasnapshot.cpp test/test.cpp datasnapshot.cpp @@ -54,9 +54,9 @@ set(sigrok-qt2_TEST_SOURCES set(QT_USE_QTOPENGL TRUE) -qt4_wrap_cpp(sigrok-qt2_HEADERS_MOC ${sigrok-qt2_HEADERS}) -qt4_wrap_ui(sigrok-qt2_FORMS_HEADERS ${sigrok-qt2_FORMS}) -qt4_add_resources(sigrok-qt2_RESOURCES_RCC ${sigrok-qt2_RESOURCES}) +qt4_wrap_cpp(pulseview_HEADERS_MOC ${pulseview_HEADERS}) +qt4_wrap_ui(pulseview_FORMS_HEADERS ${pulseview_FORMS}) +qt4_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES}) include(${QT_USE_FILE}) @@ -74,14 +74,14 @@ link_directories( ${PKGDEPS_LIBRARY_DIRS} ) -add_executable(sigrok-qt2 - ${sigrok-qt2_SOURCES} - ${sigrok-qt2_HEADERS_MOC} - ${sigrok-qt2_FORMS_HEADERS} - ${sigrok-qt2_RESOURCES_RCC} +add_executable(pulseview + ${pulseview_SOURCES} + ${pulseview_HEADERS_MOC} + ${pulseview_FORMS_HEADERS} + ${pulseview_RESOURCES_RCC} ) -target_link_libraries(sigrok-qt2 +target_link_libraries(pulseview ${Boost_LIBRARIES} ${PKGDEPS_LIBRARIES} ${QT_LIBRARIES} @@ -89,15 +89,15 @@ target_link_libraries(sigrok-qt2 add_definitions(-DBOOST_TEST_DYN_LINK) -add_executable(sigrok-qt2-test - ${sigrok-qt2_TEST_SOURCES} +add_executable(pulseview-test + ${pulseview_TEST_SOURCES} ) -target_link_libraries(sigrok-qt2-test +target_link_libraries(pulseview-test ${Boost_LIBRARIES} ${PKGDEPS_LIBRARIES} ${QT_LIBRARIES} ) enable_testing() -add_test(test ${CMAKE_CURRENT_BINARY_DIR}/sigrok-qt2-test) +add_test(test ${CMAKE_CURRENT_BINARY_DIR}/pulseview-test) diff --git a/about.ui b/about.ui index 7fa9f9b4..10163f9a 100644 --- a/about.ui +++ b/about.ui @@ -28,7 +28,7 @@ - :/icons/sigrok-logo-notext.png + :/icons/sigrok-logo-notext.png @@ -57,7 +57,7 @@ - + diff --git a/mainwindow.cpp b/mainwindow.cpp index 5ecc14d1..54cc39ec 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -126,7 +126,9 @@ void MainWindow::setup_ui() _status_bar = new QStatusBar(this); setStatusBar(_status_bar); - setWindowTitle(QApplication::translate("MainWindow", "sigrok-qt2", 0, QApplication::UnicodeUTF8)); + setWindowTitle(QApplication::translate("MainWindow", "PulseView", 0, + QApplication::UnicodeUTF8)); + _action_open->setText(QApplication::translate("MainWindow", "&Open...", 0, QApplication::UnicodeUTF8)); _action_view_zoom_in->setText(QApplication::translate("MainWindow", "Zoom &In", 0, QApplication::UnicodeUTF8)); _action_view_zoom_out->setText(QApplication::translate("MainWindow", "Zoom &Out", 0, QApplication::UnicodeUTF8)); diff --git a/pulseview.qrc b/pulseview.qrc new file mode 100644 index 00000000..c94ab737 --- /dev/null +++ b/pulseview.qrc @@ -0,0 +1,5 @@ + + + icons/sigrok-logo-notext.png + + diff --git a/sigrok-qt2.qrc b/sigrok-qt2.qrc deleted file mode 100644 index c94ab737..00000000 --- a/sigrok-qt2.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - icons/sigrok-logo-notext.png - -