Permalink
Browse files

tab对话框快捷键,截图功能

  • Loading branch information...
1 parent 31fc112 commit 29f2234b7112b34d36802a2437484212c5db3f66 @zhanlangsir committed Feb 21, 2013
View
@@ -3,8 +3,12 @@ cmake_minimum_required(VERSION 2.6)
project(Qtqq)
set(version 0.8.1-alpha)
+INCLUDE(FindX11)
find_package(Qt4 REQUIRED)
+set(HAVE_X11_EXTENSIONS_SHAPE_H ${X11_Xshape_FOUND})
+set(HAVE_X11_EXTENSIONS_XFIXES_H ${X11_Xfixes_FOUND})
+
# uninstall target
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
@@ -47,6 +51,7 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(PLUGIN_LIBRARY_OUTPUT_PATH ${LIBRARY_OUTPUT_PATH}/plugins)
configure_file(${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
+configure_file(${PROJECT_SOURCE_DIR}/config-ksnapshot.h.cmake ${PROJECT_BINARY_DIR}/config-ksnapshot.h)
include_directories(${PROJECT_BINARY_DIR})
View
@@ -0,0 +1,5 @@
+/* Define to 1 if you have the <X11/extensions/shape.h> header file. */
+#cmakedefine HAVE_X11_EXTENSIONS_SHAPE_H 1
+
+/* Define to 1 if you have the <X11/extensions/Xfixes.h> header file. */
+#cmakedefine HAVE_X11_EXTENSIONS_XFIXES_H 1
View
@@ -95,6 +95,17 @@ set(CORE_HEADERS
skinengine/qqskinengine.h
skinengine/msgstyle_manager.h
+ #snapshot
+ snapshot/freeregiongrabber.h
+ snapshot/freeregiongrabber.h
+ snapshot/ksnapshot.h
+ snapshot/ksnapshotobject.h
+ snapshot/ksnapshotpreview.h
+ snapshot/regiongrabber.h
+ snapshot/snapshottimer.h
+ snapshot/windowgrabber.h
+
+
#sound player
soundplayer/soundplayer.h
@@ -208,6 +219,17 @@ set(CORE_SOURCES
skinengine/qqskinengine.cpp
skinengine/msgstyle_manager.cpp
+ #snapshot
+ snapshot/expblur.cpp
+ snapshot/freeregiongrabber.cpp
+ snapshot/freeregiongrabber.cpp
+ snapshot/ksnapshot.cpp
+ snapshot/ksnapshotobject.cpp
+ snapshot/ksnapshotpreview.cpp
+ snapshot/regiongrabber.cpp
+ snapshot/snapshottimer.cpp
+ snapshot/windowgrabber.cpp
+
#sound player
soundplayer/soundplayer.cpp
@@ -273,6 +295,7 @@ set(UI_FILES
ui/pluginmanagedlg.ui
ui/fileaskdlg.ui
ui/filetransferdlg.ui
+ ui/ksnapshotwidget.ui
)
QT4_WRAP_UI(UI_FILES_HEADERS ${UI_FILES})
@@ -322,6 +345,10 @@ add_executable(qtqq
${QM_FILES}
)
+if (X11_Xfixes_FOUND)
+ target_link_libraries(qtqq ${X11_Xfixes_LIB})
+endif (X11_Xfixes_FOUND)
+
target_link_libraries(qtqq
log4qt
qxtglobalshortcut
@@ -198,3 +198,8 @@ void ChatDlgManager::clean()
opening_chatdlg_.clear();
}
+
+QQChatDlg *ChatDlgManager::currentChatdlg() const
+{
+ return tab_win_->currentChatdlg();
+}
@@ -32,6 +32,7 @@ class ChatDlgManager : public QObject
QQChatDlg* chatDlgById(QString id) const;
void setMainWin(MainWindow *main_win);
+ QQChatDlg *currentChatdlg() const;
public slots:
void openFriendChatDlg(const QString &id);
Oops, something went wrong.

0 comments on commit 29f2234

Please sign in to comment.