Example #1
0
void Contexts::setContext(eContexts context)
    {
    enum ePageIndices { PI_Module, PI_Zone, PI_Class, PI_Include, PI_Seq, PI_Journal };
    ePageIndices page = PI_Module;

    mCurrentContext = context;
    switch(context)
        {
        case C_BinaryComponent:
            clearSelectedComponent();;
            mJournal.displayComponents();
            updateJournalList();
            page = PI_Module;
            break;

        case C_Include:
            if(mProject.isAnalysisReady())
                {
                page = PI_Include;
                displayIncludeDiagram();
                updateJournalList();
                }
            break;

        case C_Zone:
            if(mProject.isAnalysisReady())
                {
                mJournal.displayWorldZone();
                updateJournalList();
                page = PI_Zone;
                }
            break;

        case C_Class:
            displaySelectedClassDiagram();
            page = PI_Class;
            break;

        case C_Portion:
            displaySelectedClassDiagram();
            page = PI_Class;
            break;

        // Operation is always related to class, so it must be initialized
        // to first operation of class.
        case C_Operation:
            displayOperationsDiagram();
            page = PI_Seq;
            break;

        case C_Journal:
            displayJournal();
            page = PI_Journal;
            break;
        }
    GtkNotebook *notebook = GTK_NOTEBOOK(Builder::getBuilder()->getWidget("ListNotebook"));
    gtk_notebook_set_current_page(notebook, page);
    }
Example #2
0
void uiAcceuil::on_journal_clicked()
{

    emit displayJournal();

}