Update of /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5200
Modified Files:
PlanAvailableCompiler.cpp PlanDefineBatch.cpp
PlanDefineBatch.h
Log Message:
New messages to get compiler's informations (from Application).
Index: PlanDefineBatch.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan/PlanDefineBatch.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PlanDefineBatch.cpp 21 May 2007 16:36:01 -0000 1.4
--- PlanDefineBatch.cpp 21 May 2007 17:17:08 -0000 1.5
***************
*** 34,37 ****
--- 34,40 ----
if (item->type()==PICompiler) {
+ addAction(QIcon(":/icons/tip.png"), tr("Informations"),
+ this, SLOT(doCompilerInfo()));
+
addAction(QIcon(":/icons/remove.png"), tr("Remove compiler"),
this, SLOT(doCompilerRemove()));
***************
*** 55,58 ****
--- 58,66 ----
}
+ void PlanDefineBatchContextMenu::doCompilerInfo(void)
+ {
+ App->compilerInfo(item->Compiler());
+ }
+
void PlanDefineBatchContextMenu::doCompilerRemove(void)
{
Index: PlanDefineBatch.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan/PlanDefineBatch.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PlanDefineBatch.h 21 May 2007 16:36:01 -0000 1.4
--- PlanDefineBatch.h 21 May 2007 17:17:08 -0000 1.5
***************
*** 36,40 ****
void doBatchRegister(void);
void doBatchUnregister(void);
!
void doCompilerRemove(void);
--- 36,40 ----
void doBatchRegister(void);
void doBatchUnregister(void);
! void doCompilerInfo(void);
void doCompilerRemove(void);
Index: PlanAvailableCompiler.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Plan/PlanAvailableCompiler.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PlanAvailableCompiler.cpp 21 May 2007 17:05:45 -0000 1.3
--- PlanAvailableCompiler.cpp 21 May 2007 17:17:08 -0000 1.4
***************
*** 1,3 ****
- #include <Compiler/CompilerInfo.h>
#include <main.h>
--- 1,2 ----
***************
*** 29,40 ****
void PlanAvailableCompilerContextMenu::doCompilerInfo(void)
{
! QWidget *W = new CompilerInfo(compiler);
! std::string title;
!
! title="Informations about ";
! title+=compiler->Binary();
! W->setWindowTitle(title.c_str());
! W->setWindowIcon(QIcon(":/icons/tip.png"));
! W->show();
}
--- 28,32 ----
void PlanAvailableCompilerContextMenu::doCompilerInfo(void)
{
! emit App->compilerInfo(compiler);
}
|