--- /dev/null
+<html><head><meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /></head><body style="font-size:8pt;font-family:Arial">
+<p align="center"><span style="font-size:28pt;font-weight:600">Bienvenue sur MedinTux</span> <img src=DMD-Logo-03.png ><p/><hr/><p align="center"><span style="font-size:9pt;font-weight:600"></span><span style="font-style:italic;font-size:9pt">Ce programme est fourni « EN L'ÉTAT », SANS GARANTIE D'AUCUNE SORTE, <br />INCLUANT, SANS S'Y LIMITER, LES GARANTIES D'ABSENCE DE DÉFAUT, <br />DE QUALITÉ MARCHANDE, D'ADÉQUATION À UN USAGE PARTICULIER. </span><span style="font-size:9pt;font-weight:600"><br /></span><span style="font-family:DejaVu Sans;font-size:9pt;font-weight:600">Solution open source libre de gestion du dossier médical.</span><span style="font-family:DejaVu Sans;font-size:9pt"><br /></span><span style="font-family:DejaVu Sans;font-size:9pt;font-weight:600;text-decoration:underline">Copyright 2000-2012-2013-2014 et pour l'éternité par Data Medical Design</span><span style="font-family:DejaVu Sans;font-size:9pt;font-weight:600"> </span></p>
+<p><span style="font-size:9pt;font-weight:600"><hr/></span>
+<span style="font-size:9pt"><img src=bulletcyan01.png > </span><span style="font-size:14pt;font-weight:600;text-decoration:underline">Démarrer avec Medintux</span><span style="font-size:9pt"><br /><br /></span>
+<a href="exec:../../Manager/bin/Manager"><span style="font-size:10pt;font-weight:600">Lancer Manager</span></a><span style="font-size:10pt;font-weight:600"> Gestion de la liste des patients et lancement des dossiers.<br /></span>
+<a href="exec:../../gest_user/bin/gest_user"><span style="font-size:10pt;font-weight:600">Lancer Gest User</span></a><span style="font-size:10pt;font-weight:600"> Gestion des profils utilisateurs bandeaux et pieds de pages des documents<br /></span>
+<a href="exec:../../set_bases/bin/set_bases"><span style="font-size:10pt;font-weight:600">Lancer Set Bases</span></a><span style="font-size:10pt;font-weight:600"> Gestion des bases, compilation des modules, connexion aux serveurs de données<br /></span>
+<a href="exec:../../personnes/bin/personnes"><span style="font-size:10pt;font-weight:600">Lancer l'Annuaire</span></a><span style="font-size:10pt;font-weight:600"> Gestion des contacts pouvant être liés au patient.<br /></span>
+<a href="exec:../../ccamview/bin/ccamview"><span style="font-size:10pt;font-weight:600">Lancer la CCAM</span></a><span style="font-size:10pt;font-weight:600"> Gestion des codes CCAM et assistant de codage</span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../QLightPad/bin/QLightPad"><span style="font-size:10pt;font-weight:600">Lancer QLigthPad</span></a><span style="font-size:10pt;font-weight:600"> Edition de petits textes compatibles avec les documents de MedinTux</span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../medicatux/bin/medicatux"><span style="font-size:10pt;font-weight:600">Lancer medicatux</span></a><span style="font-size:10pt;font-weight:600"> Consulter les bases médicamenteuses</span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../apitux/bin/apitux"><span style="font-size:10pt;font-weight:600">Lancer apitux</span></a><span style="font-size:10pt;font-weight:600"> Récupérer et classer les résultats HPRIM</span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../qgetdatasemp/bin/qgetdatasemp"><span style="font-size:10pt;font-weight:600">Lancer qgetdatasemp</span></a><span style="font-size:10pt;font-weight:600"> Mettre à jour le Vidal Datasemp (abonnés uniquement) </span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../comptabilite/bin/comptabilite"><span style="font-size:10pt;font-weight:600">Lancer la comptabilite</span></a><span style="font-size:10pt;font-weight:600"> Faire sa comptabilité </span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../med_stat/bin/med_stat"><span style="font-size:10pt;font-weight:600">Lancer med_stat</span></a><span style="font-size:10pt;font-weight:600"> Elaborer des statistiques.</span><span style="font-size:9pt;font-weight:600"><br />
+<a href="exec:../../synoptux/bin/synoptux"><span style="font-size:10pt;font-weight:600">Lancer synoptux</span></a><span style="font-size:10pt;font-weight:600"> Gestion des tâches.</span><span style="font-size:9pt;font-weight:600"><br />
+
+<br /><span style="font-size:9pt"><img src=bulletcyan01.png > </span><span style="font-size:14pt;font-weight:600;text-decoration:underline">Documentation et manuel utilisateur <a href="../index.html"> Cliquez ici</span></a></span><hr></p>
+</body></html>
--- /dev/null
+#!/bin/bash
+if test -f ../../APropos/bin/APropos.app/Contents/MacOS/APropos; then
+ ../../APropos/bin/APropos.app/Contents/MacOS/APropos BrowserOnly ../../Doc/Start_MedinTux/start_medintux.html
+fi
+if test -f ../../APropos/bin/APropos; then
+ ../../APropos/bin/APropos BrowserOnly ../../Doc/Start_MedinTux/start_medintux.html
+fi
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'Liberation Sans'; font-size:12pt; font-weight:400; font-style:normal;">
+</style></head><body style=" font-family:'Liberation Sans [unknown]'; font-size:12pt; font-weight:400; font-style:normal;">
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
<tr>
<td style="border: none;">
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'courier'; font-size:9pt;">====================================== Données du poste de travail =======================================<br /></span><span style=" font-family:'Sans Serif'; font-size:9pt;">Adresse IP</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">:</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">192.168.100.212</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'courier'; font-size:9pt;">====================================== Données du poste de travail =======================================<br /></span><span style=" font-family:'Sans Serif'; font-size:9pt;">Adresse IP</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">:</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">192.168.0.7</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">Adresse mac</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">:</span><span style=" font-family:'courier'; font-size:9pt;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt;">00:0C:29:34:94:1B</span></p>
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt; color:#000000;">Adresse du fichier de configuration</span><span style=" font-family:'courier'; font-size:9pt; color:#000000;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt; color:#000000;">: /mnt/hgfs/Documents/medintux/Programmes/IndirectConfig/IpAdr/192.168.100.212/Manager.ini</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt; color:#000000;">Adresse du fichier de configuration</span><span style=" font-family:'courier'; font-size:9pt; color:#000000;"> </span><span style=" font-family:'Sans Serif'; font-size:9pt; color:#000000;">: /mnt/hgfs/Documents/medintux/Programmes/IndirectConfig/IpAdr/192.168.0.7/Manager.ini</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'courier'; font-size:9pt;">========================================================================================================== <br />Modif RS Manager du 31-11-2013 Version 2.16.001</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'courier'; font-size:9pt;">- </span><span style=" font-family:'courier'; font-size:9pt; text-decoration: underline;">FONCTIONNALITES</span><span style=" font-family:'courier'; font-size:9pt;"> : </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'courier'; font-size:9pt;"> ° système de contrôle de l'intégrité des fichiers .ini.</span></p>
}
else
{ CGestIni::Param_UpdateFromDisk(path, param);
- CGestIni::Param_ReadParam (param, "Connexion_Patient_Base" , "Parametres" , &driverName , &baseName);
- CGestIni::Param_WriteParam(¶m, "Connexion_Patient_Base" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
- CGestIni::Param_ReadParam (param, "Connexion_Theriaque" , "Parametres" , &driverName , &baseName);
- CGestIni::Param_WriteParam(¶m, "Connexion_Theriaque" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
- CGestIni::Param_ReadParam (param, "Connexion_Datasemp" , "Parametres" , &driverName , &baseName);
- CGestIni::Param_WriteParam(¶m, "Connexion_Datasemp" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
+ CGestIni::Param_ReadParam (param, "Connexion_C_BDM_GenericPlugin" , "Parametres" , &driverName , &baseName);
+ CGestIni::Param_WriteParam(¶m, "Connexion_C_BDM_GenericPlugin" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
+ CGestIni::Param_ReadParam (param, "Connexion_Patient_Base" , "Parametres" , &driverName , &baseName);
+ CGestIni::Param_WriteParam(¶m, "Connexion_Patient_Base" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
+ CGestIni::Param_ReadParam (param, "Connexion_Theriaque" , "Parametres" , &driverName , &baseName);
+ CGestIni::Param_WriteParam(¶m, "Connexion_Theriaque" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
+ CGestIni::Param_ReadParam (param, "Connexion_Datasemp" , "Parametres" , &driverName , &baseName);
+ CGestIni::Param_WriteParam(¶m, "Connexion_Datasemp" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
CGestIni::Param_UpdateToDisk(path, param);
}
#include <QByteArray>\r
#include <QPrintDialog>\r
#include <QPrinter>\r
+#include <QTimer>\r
#include <QDir>\r
#include <QMessageBox>\r
#include <QDataStream>\r
setWindowTitle(title);\r
setPageHelp(m_PathPageHelp);\r
ui->pushButtonClose->setFocus();\r
- setWindowState(windowState() & ~Qt::WindowMinimized);\r
- show();\r
- activateWindow();\r
- raise();\r
+ QTimer::singleShot(500, this, SLOT(Slot_ActivateMainWindow())); // pour avoir la fenetre en avant plan sur ubuntu unity\r
+ //setWindowState(windowState() & ~Qt::WindowMinimized);\r
+ //show();\r
+ //activateWindow();\r
+ //raise();\r
//QStringList argList = QCoreApplication::arguments () ;\r
//QString argum = "";\r
//for (int i=0; i<argList.count();++i)\r
//ui->textBrowser_Changements->setText(argum);\r
\r
}\r
-\r
+//--------------------------------------- Slot_ActivateMainWindow ---------------------------------------------------\r
+void C_DlgApropos::Slot_ActivateMainWindow()\r
+{ //if (G_pCApp->getDroits().length()) setWindowFlags(Qt::WindowStaysOnTopHint);\r
+ show();\r
+ setWindowState(windowState() & ~Qt::WindowMinimized);\r
+ activateWindow();\r
+ raise();\r
+}\r
//----------------------------------------------------- ~C_DlgApropos -------------------------------------------\r
C_DlgApropos::~C_DlgApropos()\r
{ QFile::remove(m_PathAppli+"Ressources/~A_propos.html");\r
QString m_PathPageHelp;\r
\r
private slots:\r
+ void Slot_ActivateMainWindow(); // pour avoir la fenetre en avant plan sur ubuntu unity\r
void Slot_On_webView_Help_statusBarMessage (const QString &text);\r
void Slot_On_webView_Help_loadStarted();\r
void Slot_On_webView_Help_loadProgress(int progress);\r
QString dragGetListDrugsName();
void set_DropedXmlDatas(const QString &xmlDatas) {m_XmlDatas=xmlDatas;}
void clear_DropedXmlDatas() {m_XmlDatas="";}
+ QWidget *alertView() {return m_infoTexEdit;}
private:
C_BDM_Api *m_pC_BDM_Api; /*!< pointeur sur C_BDM_Api api des la base de donnees medicamenteuse */
#include <QtCore/QTime>
#if defined(Q_OS_WIN)
-#include <QtCore/QLibrary>
-#include <QtCore/qt_windows.h>
-typedef BOOL(WINAPI*PProcessIdToSessionId)(DWORD,DWORD*);
-static PProcessIdToSessionId pProcessIdToSessionId = 0;
+ #include <QtCore/QLibrary>
+ #include <QtCore/qt_windows.h>
+ typedef BOOL(WINAPI*PProcessIdToSessionId)(DWORD,DWORD*);
+ static PProcessIdToSessionId pProcessIdToSessionId = 0;
#endif
#if defined(Q_OS_UNIX)
-#include <time.h>
+ #include <time.h>
+#endif
+
+// Check windows
+#if _WIN32 || _WIN64
+ #if _WIN64
+ #define ENV64BIT
+ #else
+ #define ENV32BIT
+ #endif
+#endif
+
+// Check GCC
+#if __GNUC__
+ #if __x86_64__ || __ppc64__
+ #define ENV64BIT
+ #else
+ #define ENV32BIT
+ #endif
#endif
namespace QtLP_Private {
#include "qtlockedfile.cpp"
#if defined(Q_OS_WIN)
-#include "qtlockedfile_win.cpp"
+ #include "qtlockedfile_win.cpp"
#else
-#include "qtlockedfile_unix.cpp"
-
+ #include "qtlockedfile_unix.cpp"
#endif
}
socketName += QLatin1Char('-') + QString::number(sessionId, 16);
}
#else
- #if QT_VERSION >= 0x040790 // Qt 4.1.2, the QT_VERSION macro will expand to 0x040102.
+ #if defined(ENV64BIT) // #if QT_VERSION >= 0x040790 // Qt 4.1.2, the QT_VERSION macro will expand to 0x040102.
socketName += QLatin1Char('-') + QString::number(QtLP_Private::getuid(), 16);
#else
socketName += QLatin1Char('-') + QString::number(::getuid(), 16);
textEditNote->setText(m_PosoIn.m_MEDICA_POSO_DIVERS);
}
//..................... positionner ajustement de la dose .................................................................
- slider_VarPoso->setValue ( abs (m_PosoIn.m_PosoAdjust)-1 ); // m_PosoAdjust 1 à 100 slider_VarPoso 0 à 99
+ slider_VarPoso->setValue ( (m_PosoIn.m_PosoAdjust<0?-m_PosoIn.m_PosoAdjust:m_PosoIn.m_PosoAdjust)-1 ); // m_PosoAdjust 1 à 100 slider_VarPoso 0 à 99
//..................... Poso ajustée au slider ou DE à DE affiché .........................................................
- if (cPosologieIn.m_PosoAdjust < 0) // il faut tester cPosologieIn car m_PosoIn a été mal positionné lors d'une onnexion
+ if (cPosologieIn.m_PosoAdjust < 0) // il faut tester cPosologieIn car m_PosoIn a été mal positionné lors d'une connexion
{slider_VarPoso->setEnabled(FALSE);
pushButton_A->toggle ();
}
#elif defined(Q_WS_MAC)
if (QFile::exists("/Utilisateurs/ro/Documents/MedinTuxRo.txt")) m_debug = 1;
#endif
+
+ setIcon( QPixmap (GlobalPathAppli + "QLightPadSys/QLightPad.png"));
}
//------------------------------------------------------- QLightPad -------------------------------------
QLightPad::~QLightPad()
{
qWarning() << __FILE__ << QString::number(__LINE__) << "unable to connect sigUsersCombo to setUsersCombo" ;
}
- show(); // le show() doit se faire ici pour que setWindowState(); activateWindow(); raise(); fonctionnent
- setWindowState(windowState() & ~Qt::WindowMinimized);
- activateWindow();
- raise();
-
-}//constructeur
+ QTimer::singleShot(500, this, SLOT(Slot_ActivateMainWindow())); // pour avoir la fenetre en avant plan sur ubuntu unity
+}
+//--------------------------------------- Slot_ActivateMainWindow ---------------------------------------------------
+void apidialog::Slot_ActivateMainWindow()
+{ show();
+ setWindowState(windowState() & ~Qt::WindowMinimized);
+ activateWindow();
+ raise();
+}
+//------------------------ apidialog -----------------------------------------
apidialog::~apidialog(){
m_compteur = 0 ;
m_texteblob = "";
argList <<""; // 7 apropos (on met une chaine vide pour qu'il prenne celui par d?faut)
argList <<""; // 8 numero de version de la base de donnee
if (m_Apropos_Proc==0)
- { //bool ws = isMinimized();
- //showMinimized ();
+ {
m_Apropos_Proc = new QProcess(this);
if (m_Apropos_Proc)
- {//QProcess::finished ( int exitCode, QProcess::ExitStatus exitStatus ) [signal]
- connect( m_Apropos_Proc, SIGNAL(finished ( int, QProcess::ExitStatus)), this, SLOT(Slot_Apropos_Proc_finished (int, QProcess::ExitStatus)) );
+ {connect( m_Apropos_Proc, SIGNAL(finished ( int, QProcess::ExitStatus)), this, SLOT(Slot_Apropos_Proc_finished (int, QProcess::ExitStatus)) );
m_Apropos_Proc->start(pathExeAPropos, argList);
m_Apropos_Proc->waitForStarted (4000);
- //m_Apropos_Proc->waitForFinished (-1);
- //delete m_Apropos_Proc;
- //m_Apropos_Proc = 0;
- //QFile::remove(pathBinRessources+"~A_propos.html");
}
- //if ( !ws) showNormal();
}
}
////////////////////////////////////////////////////////////////////////////////
public slots:
void setUsersCombo();
protected slots:
+ void Slot_ActivateMainWindow();
bool dansdocuments();
void configdialog();
void changeLabel();
connect( m_pGUI->treeWidget_Indications, SIGNAL(itemClicked ( QTreeWidgetItem * , int )), this, SLOT(Slot_treeWidget_Indications_itemClicked ( QTreeWidgetItem * , int )) );
connect( m_pGUI->treeWidget_Composition, SIGNAL(itemClicked ( QTreeWidgetItem * , int )), this, SLOT(Slot_treeWidget_Composition_itemClicked ( QTreeWidgetItem * , int )) );
- connect( m_pGUI->treeWidget_ATC, SIGNAL(itemClicked ( QTreeWidgetItem * , int )), this, SLOT(Slot_treeWidget_ATC_itemClicked ( QTreeWidgetItem * , int )) );
+ connect( m_pGUI->treeWidget_ATC, SIGNAL(itemClicked ( QTreeWidgetItem * , int )), this, SLOT(Slot_treeWidget_ATC_itemClicked ( QTreeWidgetItem * , int )) );
//......................................... WEB VIEW ....................................................................
connect( m_pGUI->lineEdit_url, SIGNAL(returnPressed()), this, SLOT(Slot_LocationEdit_returnPressed()));
connect( m_pGUI->lineEdit_find, SIGNAL(returnPressed()), this, SLOT(Slot_WebFindEdit_returnPressed()));
connect( m_webView_Mono, SIGNAL(linkClicked ( const QUrl & )), this, SLOT(Slot_webView_Mono_linkClicked ( const QUrl & ))); // marche po
// connect( m_webView_Info, SIGNAL(urlChanged ( const QUrl & )), this, SLOT(Slot_webView_Info_urlChanged ( const QUrl & )));
- connect( m_webView_Info, SIGNAL(linkClicked ( const QUrl & )), this, SLOT(Slot_webView_Info_linkClicked ( const QUrl & ))); // marche po
+ connect( m_webView_Info, SIGNAL(linkClicked ( const QUrl & )), this, SLOT(Slot_webView_Info_linkClicked ( const QUrl & ))); // marche po
connect( m_pGUI->pushButton_Home, SIGNAL(clicked ( bool )), this, SLOT(Slot_actionWebHome (bool)) );
connect( m_pGUI->pushButton_Print, SIGNAL(clicked ( bool )), this, SLOT(Slot_actionWebPrint (bool)) );
connect( m_pGUI->toolBox_classifications, SIGNAL(currentChanged ( int )), this, SLOT(Slot_toolBox_classifications_currentChanged(int)) );
connect( m_pGUI->toolBox_ListesProduits, SIGNAL(currentChanged ( int )), this, SLOT(Slot_toolBox_ListesProduits_currentChanged(int)) );
-
init_comboBox_BiblioURL();
// CGestIni::parseAPI_oracle( CApp::pCApp()->pathAppli()+"oracle.sql", CApp::pCApp()->pathAppli()+"Mysql.sql",CApp::pCApp()->pathAppli()+"OCI_Template.h");
fillCustomDrugListCombo("BDM");
setPositionsFromIniFile();
- //setWindowFlags(Qt::WindowStaysOnTopHint);
- //............ ne surtout pas changer les sequences ....................
+ //......... on active les fenetres avec QTimer (ubuntu unity oblige) .........
+ // setWindowFlags(Qt::WindowStaysOnTopHint);
+ // setWindowState(windowState() & ~Qt::WindowMinimized);
+ // show();
+ // activateWindow();
+ // raise();
+ QTimer::singleShot(5, this, SLOT(Slot_ActivateInfoWindow())); // pour avoir la fenetre en avant plan sur ubuntu unity
+}
+//--------------------------------------- Slot_ActivateMainWindow ---------------------------------------------------
+void C_MW_Prescription::Slot_ActivateMainWindow()
+{ //............ ne surtout pas changer les sequences ....................
// suivantes (seules a mettre les fenetres en avant plan sur Mac)
setWindowState(windowState() & ~Qt::WindowMinimized);
show();
activateWindow();
raise();
}
+//--------------------------------------- Slot_ActivateMainWindow ---------------------------------------------------
+void C_MW_Prescription::Slot_ActivateInfoWindow()
+{if ( m_pC_Frm_Prescription !=0 )
+ { if( m_pC_Frm_Prescription->alertView() !=0 )
+ { m_pC_Frm_Prescription->alertView()->setWindowState(windowState() & ~Qt::WindowMinimized);
+ m_pC_Frm_Prescription->alertView()->show();
+ m_pC_Frm_Prescription->alertView()->activateWindow();
+ m_pC_Frm_Prescription->alertView()->raise();
+ }
+ }
+ QTimer::singleShot(5, this, SLOT(Slot_ActivateMainWindow())); // pour avoir la fenetre en avant plan sur ubuntu unity
+}
//--------------------------------- getInputGrammarList -----------------------------------------------------------------------
QStringList C_MW_Prescription::getInputGrammarList()
{ QStringList grammarList;
void C_MW_Prescription::Slot_lineEdit_AccessoiresSearch_textChanged (const QString &text)
{Datasemp_fill_treeWidget_Accessoires(m_pGUI->treeWidget_Accessoires, m_pGUI->comboBox_FamillesProduits->currentIndex()+2, text);
}
-//--------------------------------------- Slot_treeWidget_CustomDrugsList_itemClicked -------------------------------------------------------
+//--------------------------------------- Slot_lineEdit_AccessoiresSearch_keyPressEvent -------------------------------------------------------
void C_MW_Prescription::Slot_lineEdit_AccessoiresSearch_keyPressEvent(QKeyEvent *event, int &callStandardEvent)
{lineEdit_searchProducts_keyPressEvent(m_pGUI->treeWidget_Accessoires, event, callStandardEvent);
}
}
//------------------------ can_use_API ---------------------------------------
bool C_MW_Prescription::can_use_API( QTreeWidgetItem * pQTreeWidgetItem )
-{return pQTreeWidgetItem->text(COL_ID_TYP)=="CIP";
+{if (m_pC_BDM_Api==0) return false;
+ if (m_pC_BDM_Api->drugsList_Size()<=0) return false;
+ return ( pQTreeWidgetItem->text(COL_ID_TYP)=="CIP" ) ;
}
//------------------------ Slot_child_LeaveLastEditZone ---------------------------------------
void Slot_onQuit();
private slots:
+ void Slot_ActivateMainWindow();
+ void Slot_ActivateInfoWindow();
//..................... le bandeau de prescription ..........................................
void Slot_m_action_APropos ();
void Slot_toolButton_zoomUpReleased();
#include <qsqlcursor.h>
#include <qcursor.h>
#include <qtimer.h>
+// #include <qdebug.h>
#include "CApp.h"
#include "../../MedinTuxTools/CGestIni.h"
m_DisplayFilePosLabel = 0;
m_QProgressBar = 0;
m_bufferSize = 15000000;
+ if (argc>1 && QString(argv[1]) == "BASE_INSTALL") m_justInstallBase = 1;
+ else m_justInstallBase = 0;
+ // qDebug(QString("argc : %1 'arv[0]' : %2 m_justInstallBase : %3").arg(QString::number(argc),argv[0],QString::number(m_justInstallBase)));
+ // qDebug(QString("argc : %1 'arv[1]' : %2 m_justInstallBase : %3").arg(QString::number(argc),argv[1],QString::number(m_justInstallBase)));
//.................. recuperer parametres sesam-vitale ...............................................
CGestIni::Param_UpdateFromDisk(m_ParamPath, m_ParamData);
m_bufferSize = CGestIni::Param_ReadUniqueParam(m_ParamData, "Parametres", "sql_buffer").toLong();
QString m_ParamPath;
QString m_ParamData;
QSqlDatabase *m_MySQL_DataBase;
-
+ int m_justInstallBase;
public slots:
//--------------------------------------------- quit -------------------------------------------------------------------
/*! \brief surcharge du Slot quit afin d'envoyer le message Sign_QuitterRequired permettant a ceux qui s'y connectent de sauver les meubles \
QLabel *m_DisplayFilePosLabel;
QProgressBar *m_QProgressBar;
QDateTime m_startTime;
+
signals:
void Sign_QuitterRequired();
};
tabWidget_Nomadisme->removePage(m_pTabQWidgetReverse);
setIcon( Theme::getIcon( "32x32/set_bases.png") );
+#ifdef Q_WS_X11
+ if ( G_pCApp->m_justInstallBase )
+ { pushButton_SetBases->show();
+ tabWidget_Instal->setTabEnabled ( m_pTabQWidgetBases, TRUE );
+ tabWidget_Instal->setCurrentPage(tabWidget_Instal->indexOf(m_pTabQWidgetBases));
+ QTimer::singleShot( 100, this, SLOT(Slot_TimedSetBase()) );
+ }
+#endif
+
#ifdef Q_OS_MACX //../../../../.MedinTuxLogoFondBleu.png
//............... si on demarre d'un .dmg d'installation max .......................................
if (QFile::exists(G_pCApp->m_PathAppli+"../../../../.MedinTuxLogoFondBleu.png"))
CGestIni::Param_UpdateFromDisk(path, param);
CGestIni::Param_ReadParam ( param, "Connexion" , "Parametres" , &driverName , &baseName);
CGestIni::Param_WriteParam( ¶m, "Connexion" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
- CGestIni::Param_ReadParam ( param, "ConnexionBase" , "Parametres" , &driverName , &baseName);
- CGestIni::Param_WriteParam( ¶m, "ConnexionBase" , "Parametres" , driverName , baseName, userName , passWord , hostName, port);
- CGestIni::Param_ReadParam( param, "DrTuxTest", "Master", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "DrTuxTest", "Master", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "DrTuxTest", "Nomade", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "DrTuxTest", "Nomade", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam ( param, "Connexion" , "Reverse" , &driverName , &baseName);
- CGestIni::Param_WriteParam( ¶m, "Connexion" , "Reverse" , driverName , baseName, userName_3 , passWord_3 , hostName_3, port_3);
- CGestIni::Param_ReadParam( param, "DrTuxTest", "Parametres", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "DrTuxTest", "Parametres", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "MedicaTuxTest", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "MedicaTuxTest", "Connexion", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "BaseGetTest", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "BaseGetTest", "Connexion", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "CIM10Test", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "CIM10Test", "Connexion", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "CCAMTest", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "CCAMTest", "Connexion", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "Datasemp", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "Datasemp", "Connexion", driverName, baseName, userName, passWord, hostName, port);
- CGestIni::Param_ReadParam( param, "qlaboftp", "Connexion", &driverName, &baseName);
- CGestIni::Param_WriteParam( ¶m, "qlaboftp", "Connexion", driverName, baseName, userName, passWord, hostName, port);
CGestIni::Param_UpdateToDisk(path, param);
G_pCApp->Datasemp_OutMessage(textEdit_Message,param);
}