Skip to content

Virtual modes with scale and panning. Brightness control #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,38 @@ cmake_minimum_required(VERSION 2.8.6)
# Qt
find_package(Qt4 REQUIRED QtCore QtGui)


# glib using pkg-config
find_package(PkgConfig)
pkg_check_modules(GLIB REQUIRED
glib-2.0
)

pkg_check_modules(X11 REQUIRED
x11
)

pkg_check_modules(XRANDR REQUIRED
xrandr
)

# set visibility to hidden to hide symbols, unlesss they're exporeted manually in the code
set(CMAKE_CXX_FLAGS "-DQT_NO_KEYWORDS -fno-exceptions")

include_directories(
${QT_INCLUDES}
${GLIB_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${XRANDR_INCLUDE_DIRS}
${X11_INCLUDE_DIRS}
)

set(CMAKE_AUTOMOC TRUE)

set(lxrandr-qt_SRCS
lxrandr-qt.cpp
monitorsettingsdialog.cpp
randr.cpp
)

set(lxrandr-qt_UIS
Expand All @@ -45,6 +57,8 @@ target_link_libraries(lxrandr-qt
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${GLIB_LIBRARIES}
${XRANDR_LIBRARIES}
${X11_LIBRARIES}
)

install(TARGETS lxrandr-qt RUNTIME DESTINATION bin)
Expand Down
30 changes: 27 additions & 3 deletions monitor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>197</width>
<height>92</height>
<width>312</width>
<height>175</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -34,7 +34,7 @@
<item row="2" column="1">
<widget class="QComboBox" name="rate"/>
</item>
<item row="3" column="0" colspan="2">
<item row="5" column="0" colspan="2">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
Expand All @@ -48,6 +48,30 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="panning">
<property name="text">
<string>Panning</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSlider" name="brightness">
<property name="maximum">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Brightness:</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
Expand Down
Loading