Хранилища Subversion OpenInventory

Сравнить редакции

Не учитывать пробелы Редакция 82 → Редакция 83

/trunk/ClassEditor/classeditor.ui
106,54 → 106,68
<string>Удалить выделенные поля</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBox">
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>10</x>
<y>240</y>
<width>131</width>
<height>20</height>
<x>779</x>
<y>209</y>
<width>181</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Идентификатор</string>
<string>Удалить все поля</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_2">
<widget class="QTableView" name="tableView_3">
<property name="geometry">
<rect>
<x>150</x>
<y>240</y>
<width>101</width>
<height>20</height>
<x>10</x>
<y>490</y>
<width>961</width>
<height>192</height>
</rect>
</property>
<property name="text">
<string>Псевдоним</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_5">
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>779</x>
<y>209</y>
<width>181</width>
<x>10</x>
<y>240</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Удалить все поля</string>
<string>Поля класса</string>
</property>
</widget>
<widget class="QTableView" name="tableView_3">
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>490</y>
<width>961</width>
<height>192</height>
<y>460</y>
<width>271</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Указатели на классы-контейнеры</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
201,8 → 215,32
<addaction name="separator"/>
<addaction name="menu_4"/>
</widget>
<widget class="QMenu" name="menu_5">
<property name="title">
<string>Указатель</string>
</property>
<widget class="QMenu" name="menu_7">
<property name="title">
<string>Удалить указатели</string>
</property>
<addaction name="action_6"/>
<addaction name="separator"/>
<addaction name="action_5"/>
</widget>
<addaction name="action"/>
<addaction name="separator"/>
<addaction name="menu_7"/>
</widget>
<widget class="QMenu" name="menu_6">
<property name="title">
<string>Инструменты</string>
</property>
<addaction name="action_2"/>
</widget>
<addaction name="menu"/>
<addaction name="menu_2"/>
<addaction name="menu_5"/>
<addaction name="menu_6"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
267,6 → 305,41
<string>Показывать хранилища объектов</string>
</property>
</action>
<action name="action">
<property name="text">
<string>Новый указатель</string>
</property>
</action>
<action name="action_3">
<property name="text">
<string>Удалить все указатели</string>
</property>
</action>
<action name="action_4">
<property name="text">
<string>Удалить выделенные указатели</string>
</property>
</action>
<action name="action_6">
<property name="text">
<string>Удалить все указатели</string>
</property>
</action>
<action name="action_7">
<property name="text">
<string>Удалить выделенные указатели</string>
</property>
</action>
<action name="action_5">
<property name="text">
<string>Удалить выделенные указатели</string>
</property>
</action>
<action name="action_2">
<property name="text">
<string>Проверить таблицу-контейнер </string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
/trunk/ClassEditor/classeditor.cpp
275,6 → 275,7
modelForDescription->setInctance(class_instance); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
//class_instance.append(tr("_inctance"));
str_fltr.append(class_indx);
str_fltr.append(tr(" AND FieldType <> \"pointer\""));
 
model->setTable(class_instance);
//model->setTable(tr("memory"));
289,11 → 290,19
modelForDescription->select();
ui->tableView_2->resizeColumnsToContents();
 
// str_fltr.clear();
 
str_fltr = tr("ClassIdentifer = ");
modelForPointers->setInctance(class_instance); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
str_fltr.append(class_indx);
str_fltr.append(tr(" AND FieldType = \"pointer\""));
// str_fltr.append( tr(" FieldType = pointer "));
modelForPointers->setFilter(tr(" FieldType = \"pointer\" "));
 
 
 
modelForPointers->setFilter(str_fltr);
modelForPointers->select();
ui->tableView_3->setModel(modelForPointers);
ui->tableView_3->resizeColumnsToContents();
 
//connect(ui->tableView, SIGNAL(clicked(const QModelIndex)), this, SLOT(on_tableView_clicked(const QModelIndex)));
connect(mymodel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(on_myModel_dataChanged(QModelIndex,QModelIndex)));
509,10 → 518,10
tmp_str = ui->tableView->model()->data(index_tmp).toString();
instance_str = ui->tableView->model()->data(index_instance).toString();
modelForDescription->setInctance(instance_str); // ïåðåäàåì â ìîäåëü ïîëåé èìÿ òåêóùåé òàáëèöû-õðàíèëèùà
modelForPointers->setInctance(instance_str);
 
 
 
 
// instance_str.append(tr("_inctance"));
/*
Inctance_model.clear();
542,9 → 551,21
// ui->label->setText(QVariant(currIndexOfClassesTable.row()).toString());
filter_str = tr("ClassIdentifer = ");
filter_str.append(tmp_str);
filter_str.append(tr(" AND FieldType <> \"pointer\""));
modelForDescription->setFilter(filter_str);
modelForDescription->select();
ui->tableView_2->resizeColumnsToContents();
 
filter_str = tr("ClassIdentifer = ");
filter_str.append(tmp_str);
filter_str.append(tr(" AND FieldType = \"pointer\""));
modelForPointers->setFilter(filter_str);
modelForPointers->select();
ui->tableView_3->resizeColumnsToContents();
 
 
 
 
i++;
}