Пример #1
0
void BATCH_KERNEL::START_BATCH_KERNEL(QObject *parent, ADAK_SQL *database)
{
    SET_ADAK_WINDOW_DEFAULTS ( parent );
    SET_DB_CONN               ( database );
    //SET_EVENTS_AND_SIGNALS    ( parent,ADAK_BATCH_KERNEL );

    CLOSE_ALL_EVENTS          ();
    SETUP_FORM                ();
    OPEN_ALL_EVENTS           ();

    SET_EVENTS_AND_SIGNALS    ( parent,ADAK_BATCH_KERNEL );

    INIT_KERNEL               ();
}
Пример #2
0
void TREE_ARAMA_KERNEL::INIT_KERNEL ( QTreeWidget * tree_widget ,QObject * parent,ADAK_SQL * database )
{
    Q_UNUSED  ( parent );

    m_tree_widget = tree_widget;

    m_tree_widget->setHeaderLabels(m_headers);

    SET_ADAK_WINDOW_DEFAULTS ( parent );
    SET_EVENTS_AND_SIGNALS ( parent, ADAK_BATCH_KERNEL );
    SET_DB_CONN ( database );

    m_tree_widget->setEditTriggers ( QTreeView::NoEditTriggers );

    SET_TREE_WIDGET_DEFAULTS();

    FOCUS_FIRST_WIDGET();

    connect(m_tree_widget   , SIGNAL ( clicked ( QModelIndex))      ,this, SLOT ( SLOT_ROW_CLICKED() ) );
    connect(m_tree_widget   , SIGNAL ( doubleClicked ( QModelIndex)),this, SLOT ( FIND_SELECTED_ROW() ) );
    connect(m_tree_widget   , SIGNAL ( activated ( QModelIndex))    ,this, SLOT ( FIND_SELECTED_ROW() ) );
}