Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
luyikei
VLMC
Commits
37c73dc5
Commit
37c73dc5
authored
Jan 25, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define WITH_CRASHHANDLER using config.h
parent
d8ee3e89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
cmake/config.h.cmake
cmake/config.h.cmake
+3
-0
src/CMakeLists.txt
src/CMakeLists.txt
+0
-4
src/Gui/MainWindow.cpp
src/Gui/MainWindow.cpp
+3
-2
src/Gui/MainWindow.h
src/Gui/MainWindow.h
+2
-1
No files found.
cmake/config.h.cmake
View file @
37c73dc5
#ifndef CONFIG_H
#define CONFIG_H
/* With crash handler */
#cmakedefine WITH_CRASHHANDLER
/* Absolute path to plugins */
#cmakedefine VLMC_EFFECTS_DIR "@VLMC_EFFECTS_DIR@"
...
...
src/CMakeLists.txt
View file @
37c73dc5
...
...
@@ -252,10 +252,6 @@ QT4_WRAP_UI(VLMC_UIS_H ${VLMC_UIS})
QT4_ADD_RESOURCES
(
VLMC_RCC_SRCS
${
VLMC_RCC
}
)
QT4_WRAP_CPP
(
VLMC_MOC_SRCS
${
VLMC_HDRS
}
)
IF
(
WITH_CRASHHANDLER
)
ADD_DEFINITIONS
(
-DDEBUG_CRASHHANDLER
)
ENDIF
(
WITH_CRASHHANDLER
)
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/cmake/config.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
ADD_EXECUTABLE
(
vlmc
${
VLMC_SRCS
}
${
VLMC_MOC_SRCS
}
${
VLMC_UIS_H
}
${
VLMC_RCC_SRCS
}
)
...
...
src/Gui/MainWindow.cpp
View file @
37c73dc5
...
...
@@ -31,6 +31,7 @@
#include <QSettings>
#include "MainWindow.h"
#include "config.h"
#include "Library.h"
#include "About.h"
#include "ProjectManager.h"
...
...
@@ -90,7 +91,7 @@ MainWindow::MainWindow( QWidget *parent ) :
createGlobalPreferences
();
createProjectPreferences
();
initializeMenuKeyboardShortcut
();
#ifdef
DEBUG
_CRASHHANDLER
#ifdef
WITH
_CRASHHANDLER
setupCrashTester
();
#endif
...
...
@@ -595,7 +596,7 @@ void MainWindow::canRedoChanged( bool canRedo )
m_ui
.
actionRedo
->
setEnabled
(
canRedo
);
}
#ifdef
DEBUG
_CRASHHANDLER
#ifdef
WITH
_CRASHHANDLER
void
MainWindow
::
setupCrashTester
()
{
QAction
*
actionCrash
=
new
QAction
(
this
);
...
...
src/Gui/MainWindow.h
View file @
37c73dc5
...
...
@@ -29,6 +29,7 @@
#include <QButtonGroup>
#include "vlmc.h"
#include "config.h"
#include "ui_MainWindow.h"
class
Timeline
;
...
...
@@ -65,7 +66,7 @@ private:
void
createGlobalPreferences
();
void
createProjectPreferences
();
void
initializeMenuKeyboardShortcut
();
#ifdef
DEBUG
_CRASHHANDLER
#ifdef
WITH
_CRASHHANDLER
void
setupCrashTester
();
#endif
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment