Example #1
0
XYZ_TREE_ARAMA::XYZ_TREE_ARAMA(QWidget *parent) : TREE_ARAMA_KERNEL(parent),ui(new Ui::XYZ_TREE_ARAMA)
{
    ui->setupUi(this);

    SET_PAGE_TITLE     ( tr("XYZ SEÇİMİ") );
    SET_HELP_PAGE      ( tr("XYZ_TREE_ARAMA.html") );
    SET_COLUMN_HEADERS ( QStringList() << tr("Grup Kodu") << tr("Grup İsmi") );

    // Asagida ki fonksiyonla right align yapmak istedigimiz columnlari right align yapabiliriz.
    // Tek yapmamiz gereken gerekli columnlarin numarasini SET_RIGHT_ALIGN_COLUMNS fonksiyonunan gondermek

    QList<int> right_aligned_columns;

    right_aligned_columns << 2 << 3;

    SET_RIGHT_ALIGN_COLUMNS ( right_aligned_columns );

    REGISTER_BUTTON_WIDGET(ui->search_buttons_widget);

    INIT_KERNEL (ui->tree_view, this, DB );

    SET_SETTING_NAME    ( "XYZ_TREE_ARAMA" );

    //Tum lineeditlerin ve limitedtexteditlerin uzunlugu INIT_KERNEL dan sonra setlenmeli.Cunku bu widgetlarin default degeri 1 characterdir.
    //Ayrica eger bu widgetlara setlenmesi gereken degerler varsa bunu da uzunluklar setlendikten sonra yapmaliyiz.
    m_ui->line_edit_xyz->setMaxLength(25);
}
Example #2
0
DMR_GRUP_TREE_SECIMI::DMR_GRUP_TREE_SECIMI ( QWidget * parent ) : TREE_SECIM_KERNEL (parent)
{
    SET_HELP_PAGE       ( "sabit-kiymetler-demirbaslar_rapor-islem-gruplari" );

    SET_SETTING_NAME    ( "DMR_GRUP_TREE_SECIMI" );

    SET_WINDOW_SIZE    (200,500);

    SET_COLUMN_HEADERS ( QStringList()<<tr("grup_id")<<("Grup Kodu")<<tr("Grup İsmi")<<("Alt Grup Sayısı")<<("Gruptaki Kayıt Sayısı") );

    SET_PAGE_TITLE( tr("DMR - DEMİRBAŞ GRUP SEÇİMİ") );


    INIT_KERNEL ( this, DB );

    m_tree_widget = GET_TREE_VIEW();

    HIDE_COLUMN(0);

    m_tree_widget->setColumnWidth( 1, 80  );
    m_tree_widget->setColumnWidth( 2, 300 );
    m_tree_widget->setColumnWidth( 3, 100 );
    m_tree_widget->setColumnWidth( 4, 100 );

}
Example #3
0
GRUP_KERNEL::GRUP_KERNEL (int program_id , int module_id , QString p_win_title, QString p_help_page, ADAK_SQL * db, QWidget * parent) : TREE_KERNEL ( parent ) , BASE_GRUP_KERNEL(), m_ui ( new Ui::GRUP_KERNEL )
{
    m_ui->setupUi     ( this );

    REGISTER_TREE_WIDGET   ( m_ui->tree_widget              );
    REGISTER_ADD_BUTTON    ( m_ui->push_button_add_alt_grup );
    REGISTER_ADD_BUTTON    ( m_ui->push_button_add_ana_grup );
    REGISTER_DELETE_BUTTON ( m_ui->push_button_grubu_sil    );
    REGISTER_HELP_BUTTON   ( m_ui->toolButton_help_button   );

    SET_FIRST_FOCUS_WIDGET( m_ui->push_button_add_ana_grup );
    m_grubu_parentine_aktar = false;

    SET_RIGHT_ALIGN_COLUMNS ( QList<int>() << 2 << 3 << 4);

    SET_COLUMN_HEADERS ( QStringList()<<tr ( "Group Code")           <<tr ( "Group Name" )
                         <<tr ( "Number of Sub Group ")     <<tr ( "Number of Record in Group")
                         <<tr ( "group_id")             <<tr ( "group_parent_id" )
                         <<tr ( "is_group_last_level ") <<tr ( "Full_group_code" ) );

    m_grp_kodu_column              = 0;
    m_grp_isim_column              = 1;
    m_grp_alt_grup_sayisi_column   = 2;
    m_grp_kayit_sayisi_column      = 3;
    m_grp_id_column                = 4;
    m_grp_parent_id_column         = 5;
    m_grp_son_seviye_mi_column     = 6;
    m_grp_tam_grup_kodu_column     = 7;

    GRP_SET_VISIBLE_PROG_MODULE(program_id,module_id);
    SET_DELIMETER ( " " );

    if ( p_win_title.isEmpty() EQ false  ) {
        SET_PAGE_TITLE( p_win_title );
    }
    else {
        SET_PAGE_TITLE(tr("GROUPs"));
    }

    if( p_help_page.isEmpty() EQ true ) {
        SET_HELP_PAGE( tr("groups") );
    }
    else {
        SET_HELP_PAGE( p_help_page );
    }
    SET_SETTING_NAME    ( tr("GROUPS") );

    INIT_GRUP_KERNEL( this , db );
}