Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
vite
Commits
2ef87135
Commit
2ef87135
authored
Mar 09, 2009
by
Jule Marcoueille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout du multifenêtrage.
parent
4da11064
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
14 deletions
+26
-14
src/interface/interface_console.cpp
src/interface/interface_console.cpp
+5
-1
src/interface/interface_console.hpp
src/interface/interface_console.hpp
+11
-1
src/interface/interface_graphic.cpp
src/interface/interface_graphic.cpp
+10
-12
No files found.
src/interface/interface_console.cpp
View file @
2ef87135
...
...
@@ -26,7 +26,7 @@ Interface_console::Interface_console(int argc, char ** argv){
int
state
;
bool
useGUI
;
/* if window interface can be displayed */
_prog_path
=
argv
[
0
];
Message
::
set_interface_instance
(
this
);
/* define which interface will receive messages */
...
...
@@ -360,3 +360,7 @@ void Interface_console::information(const string s) const{
const
string
Interface_console
::
get_filename
()
const
{
return
_file_opened
;
}
const
char
*
Interface_console
::
get_progpath
()
const
{
return
_prog_path
;
}
src/interface/interface_console.hpp
View file @
2ef87135
...
...
@@ -96,13 +96,17 @@ protected:
*\brief A state which corresponds to an export of file.
*/
static
const
int
_STATE_EXPORT_FILE_IN_INTERVAL
=
5
;
/*!
*\brief This attributes contains the relative user program path.
*/
char
*
_prog_path
;
/*!
*\brief If a file must be opened, this attributes contains its path.
*/
char
*
_file_opened
;
/*!
*\brief If a file must be exported, this attributes contains its path.
*/
...
...
@@ -219,6 +223,12 @@ protected:
*
*/
const
std
::
string
get_filename
()
const
;
/*!
* \brief Get the first argument of the program, that is to say the relative user program path.
*
*/
const
char
*
get_progpath
()
const
;
/***********************************
...
...
src/interface/interface_graphic.cpp
View file @
2ef87135
...
...
@@ -210,18 +210,16 @@ void Interface_graphic::on_open_triggered(){
if
(
!
filename
.
isEmpty
()){
if
(
_is_rendering_trace
==
true
){
/* Realease the previous trace */
warning
(
"Cannot opening an other file"
);
/* QString program = QString(get_current_dir_name())+QString("/vite");
cerr << get_current_dir_name() << endl;
QStringList arguments;
arguments << filename.toStdString().c_str();
QProcess *myProcess = new QProcess(NULL);
myProcess->start(program, arguments); */
}
QStringList
arguments
=
(
QStringList
()
<<
filename
);
QString
program
=
QString
(
get_current_dir_name
())
+
QString
(
_core
->
get_progpath
()
+
sizeof
(
char
));
QProcess
*
new_process
=
new
QProcess
();
new_process
->
startDetached
(
program
,
arguments
);
cerr
<<
program
.
toStdString
()
<<
" "
<<
filename
.
toStdString
()
<<
endl
;
}
else
{
opening_file
(
filename
.
toStdString
());
...
...
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