/*! hierarchical menu in windows events */ void event_whier(void) { if(buf[7] == WINDMENU) { switch(buf[6]) { case MWH_ICN0 : buf[6] = MWH_ICN0; icone(); break; case MWH_ICN1 : buf[6] = MWH_ICN1; icone(); break; } } else if(buf[7] == WINDACC) { if(buf[6] == MH_HISTO) { cree_histo(); menu_tnormal(win[WINDACC].w_bar, T_FENETRES + 3, TRUE); } } } /* end of event_whier */
/** * Constructeur par défaut. */ F_Principale::F_Principale(QWidget *parent) : QMainWindow(parent), ui(new Ui::F_Principale), oMonArduino(new Arduino), oMonChoixSonde(NULL), oMaListeCalibrage(new F_ListeCalibrage), nDonneesLues(0),//à enlever quand f_sonde sera terminée pxmIconeVert(":/new/prefix1/images/icones/led_verte_red.ico"), pxmIconeRouge(":/new/prefix1/images/icones/led_rouge_red.ico"), bEstDetecte(false), bEtatPrecedent(false) { this->ui->setupUi(this); //Ajout de l'icone de l'application QIcon icone(":/new/prefix1/images/icones/icone_g_key.ico"); QWidget::setWindowIcon(icone); //Définition des icones et texte pour la détection de l'Arduino this->pLblIcon = new QLabel; this->pLblTexte = new QLabel; this->oMonArduino = new Arduino; this->oMaListeCalibrage = new F_ListeCalibrage; //Création de la fenêtre permettant la configuration de la maquette this->oMonChoixSonde = new F_ChoisirSonde(this->oMonArduino) ; this->setEnabled(false); this->pTimer = new QTimer; this->pTimer2 = new QTimer; this->pTimer->setInterval(1000); this->pTimer2->setInterval(1000); this->pTimer->start(); connect(pTimer,SIGNAL(timeout()),this,SLOT(on_DetecterArduino())); connect(pTimer2,SIGNAL(timeout()),this,SLOT(on_MiseAJourQList())); }