more drag and drop testing
This commit is contained in:
parent
2c123b1a2a
commit
d22865b38b
|
@ -82,7 +82,7 @@ TestWindow :: TestWindow (void) throw ()
|
||||||
mainWindow->signal_delete_event().connect(sigc::mem_fun(*this,
|
mainWindow->signal_delete_event().connect(sigc::mem_fun(*this,
|
||||||
&TestWindow::onDeleteEvent));
|
&TestWindow::onDeleteEvent));
|
||||||
|
|
||||||
glade->get_widget_derived("comboBox1", comboBox);
|
glade->get_widget_derived("combobox1", comboBox);
|
||||||
comboBox->append_text(*getResourceUstring("firstOption"));
|
comboBox->append_text(*getResourceUstring("firstOption"));
|
||||||
comboBox->append_text(*getResourceUstring("secondOption"));
|
comboBox->append_text(*getResourceUstring("secondOption"));
|
||||||
comboBox->append_text(*getResourceUstring("thirdOption"));
|
comboBox->append_text(*getResourceUstring("thirdOption"));
|
||||||
|
@ -90,22 +90,32 @@ TestWindow :: TestWindow (void) throw ()
|
||||||
comboBox->signal_changed().connect(sigc::mem_fun(*this,
|
comboBox->signal_changed().connect(sigc::mem_fun(*this,
|
||||||
&TestWindow::onComboBoxSelectionChanged));
|
&TestWindow::onComboBoxSelectionChanged));
|
||||||
|
|
||||||
treeModel = Gtk::ListStore::create(modelColumns);
|
leftTreeModel = Gtk::ListStore::create(modelColumns);
|
||||||
|
glade->get_widget_derived("treeview1", leftTreeView);
|
||||||
glade->get_widget_derived("treeView1", treeView);
|
leftTreeView->set_model(leftTreeModel);
|
||||||
treeView->set_model(treeModel);
|
leftTreeView->connectModelSignals(leftTreeModel);
|
||||||
treeView->connectModelSignals(treeModel);
|
leftTreeView->appendColumn(*getResourceUstring("pixbufColumnTitle"),
|
||||||
treeView->appendColumn(*getResourceUstring("pixbufColumnTitle"),
|
|
||||||
modelColumns.pixbufColumn);
|
modelColumns.pixbufColumn);
|
||||||
treeView->appendColumn(*getResourceUstring("textColumnTitle"),
|
leftTreeView->appendColumn(*getResourceUstring("textColumnTitle"),
|
||||||
modelColumns.textColumn);
|
modelColumns.textColumn);
|
||||||
fillTreeModel();
|
fillLeftTreeModel();
|
||||||
|
|
||||||
|
rightTreeModel = Gtk::ListStore::create(modelColumns);
|
||||||
|
glade->get_widget_derived("treeview2", rightTreeView);
|
||||||
|
rightTreeView->set_model(rightTreeModel);
|
||||||
|
rightTreeView->connectModelSignals(rightTreeModel);
|
||||||
|
rightTreeView->appendColumn(*getResourceUstring("pixbufColumnTitle"),
|
||||||
|
modelColumns.pixbufColumn);
|
||||||
|
rightTreeView->appendColumn(*getResourceUstring("textColumnTitle"),
|
||||||
|
modelColumns.textColumn);
|
||||||
|
fillRightTreeModel();
|
||||||
|
|
||||||
glade->get_widget("label1", label);
|
glade->get_widget("label1", label);
|
||||||
label->set_label(*getResourceUstring("dropHereText"));
|
label->set_label(*getResourceUstring("dropHereText"));
|
||||||
|
|
||||||
setupDndCallbacks();
|
setupDndCallbacks();
|
||||||
|
|
||||||
glade->connect_clicked("okButton1", sigc::mem_fun(*this,
|
glade->connect_clicked("button1", sigc::mem_fun(*this,
|
||||||
&TestWindow::onOkButtonClicked));
|
&TestWindow::onOkButtonClicked));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,10 +151,10 @@ TestWindow :: configureBundle (void) throw ()
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Fill the tree model.
|
* Fill the left tree model.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
TestWindow :: fillTreeModel (void) throw ()
|
TestWindow :: fillLeftTreeModel (void) throw ()
|
||||||
{
|
{
|
||||||
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
||||||
Glib::RefPtr<Gdk::Pixbuf> pixbuf = wf->getPixbuf(
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf = wf->getPixbuf(
|
||||||
|
@ -165,26 +175,55 @@ TestWindow :: fillTreeModel (void) throw ()
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
treeModel->clear();
|
leftTreeModel->clear();
|
||||||
Gtk::TreeModel::Row row = *treeModel->append();
|
Gtk::TreeModel::Row row = *leftTreeModel->append();
|
||||||
row[modelColumns.pixbufColumn] = pixbuf;
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
row[modelColumns.textColumn] = text;
|
row[modelColumns.textColumn] = text;
|
||||||
|
|
||||||
row = *treeModel->append();
|
row = *leftTreeModel->append();
|
||||||
row[modelColumns.pixbufColumn] = pixbuf;
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
row[modelColumns.textColumn] = "1";
|
row[modelColumns.textColumn] = "1111111111";
|
||||||
|
|
||||||
row = *treeModel->append();
|
row = *leftTreeModel->append();
|
||||||
row[modelColumns.pixbufColumn] = pixbuf;
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
row[modelColumns.textColumn] = "2";
|
row[modelColumns.textColumn] = "2222222222";
|
||||||
|
|
||||||
row = *treeModel->append();
|
row = *leftTreeModel->append();
|
||||||
row[modelColumns.pixbufColumn] = pixbuf;
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
row[modelColumns.textColumn] = "3";
|
row[modelColumns.textColumn] = "3333333333";
|
||||||
|
|
||||||
row = *treeModel->append();
|
row = *leftTreeModel->append();
|
||||||
row[modelColumns.pixbufColumn] = pixbuf;
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
row[modelColumns.textColumn] = "4";
|
row[modelColumns.textColumn] = "4444444444";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Fill the right tree model.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
void
|
||||||
|
TestWindow :: fillRightTreeModel (void) throw ()
|
||||||
|
{
|
||||||
|
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
||||||
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf = wf->getPixbuf(
|
||||||
|
WidgetConstants::audioClipIconImage);
|
||||||
|
|
||||||
|
rightTreeModel->clear();
|
||||||
|
Gtk::TreeModel::Row row = *rightTreeModel->append();
|
||||||
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
|
row[modelColumns.textColumn] = "AAAAAAAAAA";
|
||||||
|
|
||||||
|
row = *rightTreeModel->append();
|
||||||
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
|
row[modelColumns.textColumn] = "BBBBBBBBBB";
|
||||||
|
|
||||||
|
row = *rightTreeModel->append();
|
||||||
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
|
row[modelColumns.textColumn] = "CCCCCCCCCC";
|
||||||
|
|
||||||
|
row = *rightTreeModel->append();
|
||||||
|
row[modelColumns.pixbufColumn] = pixbuf;
|
||||||
|
row[modelColumns.textColumn] = "DDDDDDDDDDD";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -197,12 +236,20 @@ TestWindow :: setupDndCallbacks (void) throw ()
|
||||||
std::list<Gtk::TargetEntry> targets;
|
std::list<Gtk::TargetEntry> targets;
|
||||||
targets.push_back(Gtk::TargetEntry("STRING"));
|
targets.push_back(Gtk::TargetEntry("STRING"));
|
||||||
|
|
||||||
treeView->drag_source_set(targets);
|
leftTreeView->drag_source_set(targets);
|
||||||
treeView->signal_drag_data_get().connect(sigc::mem_fun(*this,
|
leftTreeView->signal_drag_data_get().connect(sigc::mem_fun(*this,
|
||||||
&TestWindow::onTreeViewDragDataGet));
|
&TestWindow::onLeftTreeViewDragDataGet));
|
||||||
treeView->drag_dest_set(targets);
|
leftTreeView->drag_dest_set(targets);
|
||||||
treeView->signal_drag_data_received().connect(sigc::mem_fun(*this,
|
leftTreeView->signal_drag_data_received().connect(sigc::mem_fun(*this,
|
||||||
&TestWindow::onTreeViewDragDataReceived));
|
&TestWindow::onLeftTreeViewDragDataReceived));
|
||||||
|
|
||||||
|
rightTreeView->drag_source_set(targets);
|
||||||
|
rightTreeView->signal_drag_data_get().connect(sigc::mem_fun(*this,
|
||||||
|
&TestWindow::onRightTreeViewDragDataGet));
|
||||||
|
rightTreeView->drag_dest_set(targets);
|
||||||
|
rightTreeView->signal_drag_data_received().connect(sigc::mem_fun(*this,
|
||||||
|
&TestWindow::onRightTreeViewDragDataReceived));
|
||||||
|
|
||||||
label->drag_dest_set(targets);
|
label->drag_dest_set(targets);
|
||||||
label->signal_drag_data_received().connect(sigc::mem_fun(*this,
|
label->signal_drag_data_received().connect(sigc::mem_fun(*this,
|
||||||
&TestWindow::onLabelDragDataReceived));
|
&TestWindow::onLabelDragDataReceived));
|
||||||
|
@ -215,7 +262,7 @@ TestWindow :: setupDndCallbacks (void) throw ()
|
||||||
void
|
void
|
||||||
TestWindow :: onComboBoxSelectionChanged (void) throw ()
|
TestWindow :: onComboBoxSelectionChanged (void) throw ()
|
||||||
{
|
{
|
||||||
fillTreeModel();
|
fillLeftTreeModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -256,7 +303,7 @@ TestWindow :: run (void) throw ()
|
||||||
* The callback for the start of the drag.
|
* The callback for the start of the drag.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
TestWindow :: onTreeViewDragDataGet(
|
TestWindow :: onLeftTreeViewDragDataGet(
|
||||||
const Glib::RefPtr<Gdk::DragContext> & context,
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
Gtk::SelectionData & selectionData,
|
Gtk::SelectionData & selectionData,
|
||||||
guint info,
|
guint info,
|
||||||
|
@ -264,7 +311,7 @@ TestWindow :: onTreeViewDragDataGet(
|
||||||
throw ()
|
throw ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<Gtk::TreeView::Selection> selection
|
Glib::RefPtr<Gtk::TreeView::Selection> selection
|
||||||
= treeView->get_selection();
|
= leftTreeView->get_selection();
|
||||||
Gtk::TreeModel::Row row = *selection->get_selected();
|
Gtk::TreeModel::Row row = *selection->get_selected();
|
||||||
Glib::ustring dropString = row[modelColumns.textColumn];
|
Glib::ustring dropString = row[modelColumns.textColumn];
|
||||||
|
|
||||||
|
@ -279,7 +326,7 @@ TestWindow :: onTreeViewDragDataGet(
|
||||||
* The callback for the end of the drag.
|
* The callback for the end of the drag.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
TestWindow :: onTreeViewDragDataReceived(
|
TestWindow :: onLeftTreeViewDragDataReceived(
|
||||||
const Glib::RefPtr<Gdk::DragContext> & context,
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
|
@ -290,11 +337,59 @@ TestWindow :: onTreeViewDragDataReceived(
|
||||||
{
|
{
|
||||||
if (selectionData.get_length() >= 0 && selectionData.get_format() == 8) {
|
if (selectionData.get_length() >= 0 && selectionData.get_format() == 8) {
|
||||||
Glib::ustring data = selectionData.get_data_as_string();
|
Glib::ustring data = selectionData.get_data_as_string();
|
||||||
std::cerr << "string '" << data << "' dropped on tree view\n";
|
std::cerr << "string '" << data << "' dropped on LEFT tree view\n";
|
||||||
context->drag_finish(true, false, time);
|
context->drag_finish(true, false, time);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "unknown type of data dropped on tree view\n";
|
std::cerr << "unknown type of data dropped on LEFT tree view\n";
|
||||||
|
context->drag_finish(false, false, time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* The callback for the start of the drag.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
void
|
||||||
|
TestWindow :: onRightTreeViewDragDataGet(
|
||||||
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
|
Gtk::SelectionData & selectionData,
|
||||||
|
guint info,
|
||||||
|
guint time)
|
||||||
|
throw ()
|
||||||
|
{
|
||||||
|
Glib::RefPtr<Gtk::TreeView::Selection> selection
|
||||||
|
= rightTreeView->get_selection();
|
||||||
|
Gtk::TreeModel::Row row = *selection->get_selected();
|
||||||
|
Glib::ustring dropString = row[modelColumns.textColumn];
|
||||||
|
|
||||||
|
selectionData.set(selectionData.get_target(),
|
||||||
|
8 /* 8 bits format*/,
|
||||||
|
(const guchar *) dropString.c_str(),
|
||||||
|
dropString.bytes());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* The callback for the end of the drag.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
void
|
||||||
|
TestWindow :: onRightTreeViewDragDataReceived(
|
||||||
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
const Gtk::SelectionData & selectionData,
|
||||||
|
guint info,
|
||||||
|
guint time)
|
||||||
|
throw ()
|
||||||
|
{
|
||||||
|
if (selectionData.get_length() >= 0 && selectionData.get_format() == 8) {
|
||||||
|
Glib::ustring data = selectionData.get_data_as_string();
|
||||||
|
std::cerr << "string '" << data << "' dropped on RIGHT tree view\n";
|
||||||
|
context->drag_finish(true, false, time);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
std::cerr << "unknown type of data dropped on RIGHT tree view\n";
|
||||||
context->drag_finish(false, false, time);
|
context->drag_finish(false, false, time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,10 +81,16 @@ class TestWindow : public LocalizedObject
|
||||||
configureBundle (void) throw ();
|
configureBundle (void) throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fill the tree model.
|
* Fill the left tree model.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
fillTreeModel (void) throw ();
|
fillLeftTreeModel (void) throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fill the right tree model.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
fillRightTreeModel (void) throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up the D'n'D callbacks.
|
* Set up the D'n'D callbacks.
|
||||||
|
@ -106,9 +112,14 @@ class TestWindow : public LocalizedObject
|
||||||
ComboBoxText * comboBox;
|
ComboBoxText * comboBox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tree view.
|
* The left tree view.
|
||||||
*/
|
*/
|
||||||
ZebraTreeView * treeView;
|
ZebraTreeView * leftTreeView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The right tree view.
|
||||||
|
*/
|
||||||
|
ZebraTreeView * rightTreeView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The drop target label.
|
* The drop target label.
|
||||||
|
@ -154,9 +165,14 @@ class TestWindow : public LocalizedObject
|
||||||
ModelColumns modelColumns;
|
ModelColumns modelColumns;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tree model, as a GTK reference.
|
* The left tree model, as a GTK reference.
|
||||||
*/
|
*/
|
||||||
Glib::RefPtr<Gtk::ListStore> treeModel;
|
Glib::RefPtr<Gtk::ListStore> leftTreeModel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The right tree model, as a GTK reference.
|
||||||
|
*/
|
||||||
|
Glib::RefPtr<Gtk::ListStore> rightTreeModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event handler for selection change in the combo box.
|
* Event handler for selection change in the combo box.
|
||||||
|
@ -180,7 +196,7 @@ class TestWindow : public LocalizedObject
|
||||||
* The callback for the start of the drag.
|
* The callback for the start of the drag.
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
onTreeViewDragDataGet(
|
onLeftTreeViewDragDataGet(
|
||||||
const Glib::RefPtr<Gdk::DragContext> & context,
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
Gtk::SelectionData & selectionData,
|
Gtk::SelectionData & selectionData,
|
||||||
guint info,
|
guint info,
|
||||||
|
@ -191,7 +207,31 @@ class TestWindow : public LocalizedObject
|
||||||
* The callback for the end of the drag.
|
* The callback for the end of the drag.
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
onTreeViewDragDataReceived(
|
onLeftTreeViewDragDataReceived(
|
||||||
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
const Gtk::SelectionData & selectionData,
|
||||||
|
guint info,
|
||||||
|
guint time)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback for the start of the drag.
|
||||||
|
*/
|
||||||
|
virtual void
|
||||||
|
onRightTreeViewDragDataGet(
|
||||||
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
|
Gtk::SelectionData & selectionData,
|
||||||
|
guint info,
|
||||||
|
guint time)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback for the end of the drag.
|
||||||
|
*/
|
||||||
|
virtual void
|
||||||
|
onRightTreeViewDragDataReceived(
|
||||||
const Glib::RefPtr<Gdk::DragContext> & context,
|
const Glib::RefPtr<Gdk::DragContext> & context,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||||
<!--Generated with glade3 3.2.0 on Tue Aug 21 15:45:29 2007 by fgerlits@desktop-->
|
<!--Generated with glade3 3.2.0 on Fri Aug 24 13:23:29 2007 by fgerlits@fgerlits-laptop-->
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkWindow" id="mainWindow1">
|
<widget class="GtkWindow" id="mainWindow1">
|
||||||
<property name="width_request">300</property>
|
<property name="width_request">500</property>
|
||||||
<property name="height_request">300</property>
|
<property name="height_request">300</property>
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
<child>
|
<child>
|
||||||
|
@ -18,7 +18,17 @@
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
<property name="spacing">8</property>
|
<property name="spacing">8</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkComboBox" id="comboBox1">
|
<widget class="GtkVBox" id="vbox2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
|
<property name="spacing">8</property>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkHBox" id="hbox2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
|
<property name="spacing">8</property>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkComboBox" id="combobox1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -30,7 +40,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkTreeView" id="treeView1">
|
<widget class="GtkTreeView" id="treeview1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="has_focus">True</property>
|
<property name="has_focus">True</property>
|
||||||
|
@ -44,6 +54,29 @@
|
||||||
<property name="position">1</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkVBox" id="vbox3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkTreeView" id="treeview2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
|
<property name="headers_clickable">True</property>
|
||||||
|
<property name="reorderable">True</property>
|
||||||
|
<property name="rules_hint">True</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="label1">
|
<widget class="GtkLabel" id="label1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -53,7 +86,7 @@
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">False</property>
|
||||||
<property name="position">2</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -62,7 +95,7 @@
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkButton" id="okButton1">
|
<widget class="GtkButton" id="button1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
|
@ -76,7 +109,7 @@
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">False</property>
|
||||||
<property name="position">3</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue