Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
bf17fe5d
Commit
bf17fe5d
authored
Dec 10, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added close project menu item
parent
d989f231
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
src/GUI/MainWindow.cpp
src/GUI/MainWindow.cpp
+5
-0
src/GUI/MainWindow.h
src/GUI/MainWindow.h
+1
-0
src/GUI/ui/MainWindow.ui
src/GUI/ui/MainWindow.ui
+7
-1
No files found.
src/GUI/MainWindow.cpp
View file @
bf17fe5d
...
...
@@ -458,6 +458,11 @@ void MainWindow::projectChanged( const QString& projectName, bool savedStatus
setWindowTitle
(
title
);
}
void
MainWindow
::
on_actionClose_Project_triggered
()
{
ProjectManager
::
getInstance
()
->
closeProject
();
}
#define INIT_SHORTCUT( instName, shortcutName, actionInstance ) \
const SettingValue* instName = SettingsManager::getInstance()->getValue( "keyboard_shortcut", shortcutName );\
KeyboardShortcutHelper* helper##instName = new KeyboardShortcutHelper( shortcutName, this, true ); \
...
...
src/GUI/MainWindow.h
View file @
bf17fe5d
...
...
@@ -94,6 +94,7 @@ private slots:
void
on_actionImport_triggered
();
void
on_actionHelp_triggered
();
void
on_actionProject_Preferences_triggered
();
void
on_actionClose_Project_triggered
();
void
toolButtonClicked
(
int
id
);
void
projectChanged
(
const
QString
&
projectName
,
bool
savedStatus
);
void
keyboardShortcutChanged
(
const
QString
&
,
const
QString
&
);
...
...
src/GUI/ui/MainWindow.ui
View file @
bf17fe5d
...
...
@@ -27,7 +27,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
800
</width>
<height>
2
4
</height>
<height>
2
2
</height>
</rect>
</property>
<widget
class=
"QMenu"
name=
"menuFile"
>
...
...
@@ -36,6 +36,7 @@
</property>
<addaction
name=
"actionNew_Project"
/>
<addaction
name=
"actionLoad_Project"
/>
<addaction
name=
"actionClose_Project"
/>
<addaction
name=
"actionSave"
/>
<addaction
name=
"actionSave_As"
/>
<addaction
name=
"actionImport"
/>
...
...
@@ -203,6 +204,11 @@
<string>
Save As
</string>
</property>
</action>
<action
name=
"actionClose_Project"
>
<property
name=
"text"
>
<string>
Close Project
</string>
</property>
</action>
</widget>
<resources>
<include
location=
"../../../ressources.qrc"
/>
...
...
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