Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED sorting of entity-list by path and file name
ADDED some code for a entity filter dialog. Very much work in progress.
- Loading branch information
Showing
7 changed files
with
536 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<interface> | ||
<requires lib="gtk+" version="2.24"/> | ||
<!-- interface-naming-policy project-wide --> | ||
<object class="GtkDialog" id="filter-dialog"> | ||
<property name="width_request">320</property> | ||
<property name="height_request">600</property> | ||
<property name="can_focus">False</property> | ||
<property name="border_width">5</property> | ||
<property name="title" translatable="yes">Entity Filter</property> | ||
<property name="default_width">320</property> | ||
<property name="default_height">796</property> | ||
<property name="type_hint">utility</property> | ||
<property name="skip_taskbar_hint">True</property> | ||
<property name="skip_pager_hint">True</property> | ||
<child internal-child="vbox"> | ||
<object class="GtkVBox" id="dialog-vbox1"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<child> | ||
<object class="GtkRadioButton" id="rb_filter_off"> | ||
<property name="label" translatable="yes">Show All</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">False</property> | ||
<property name="use_action_appearance">False</property> | ||
<property name="yalign">0.44999998807907104</property> | ||
<property name="active">True</property> | ||
<property name="draw_indicator">True</property> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child internal-child="action_area"> | ||
<object class="GtkHButtonBox" id="dialog-action_area1"> | ||
<property name="height_request">0</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="layout_style">start</property> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="pack_type">end</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkRadioButton" id="rb_filter_tag"> | ||
<property name="label" translatable="yes">Show Tagged</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">False</property> | ||
<property name="use_action_appearance">False</property> | ||
<property name="active">True</property> | ||
<property name="draw_indicator">True</property> | ||
<property name="group">rb_filter_off</property> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">2</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkAlignment" id="alignment1"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="left_padding">20</property> | ||
<child> | ||
<object class="GtkScrolledWindow" id="scrolledwindow1"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="hscrollbar_policy">never</property> | ||
<property name="vscrollbar_policy">automatic</property> | ||
<property name="shadow_type">in</property> | ||
<child> | ||
<object class="GtkTreeView" id="filter_view"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="model">filter_model</property> | ||
<property name="enable_search">False</property> | ||
<property name="fixed_height_mode">True</property> | ||
<property name="show_expanders">False</property> | ||
<child> | ||
<object class="GtkTreeViewColumn" id="filter_column"> | ||
<property name="sizing">fixed</property> | ||
<property name="fixed_width">32</property> | ||
<child> | ||
<object class="GtkCellRendererToggle" id="filter_renderer"> | ||
<property name="width">32</property> | ||
</object> | ||
<attributes> | ||
<attribute name="active">0</attribute> | ||
</attributes> | ||
</child> | ||
</object> | ||
</child> | ||
<child> | ||
<object class="GtkTreeViewColumn" id="tag_column"> | ||
<property name="sizing">fixed</property> | ||
<property name="title" translatable="yes">Tag</property> | ||
<property name="expand">True</property> | ||
<property name="clickable">True</property> | ||
<property name="sort_column_id">1</property> | ||
<child> | ||
<object class="GtkCellRendererText" id="cellrenderertext1"/> | ||
<attributes> | ||
<attribute name="text">1</attribute> | ||
</attributes> | ||
</child> | ||
</object> | ||
</child> | ||
<child> | ||
<object class="GtkTreeViewColumn" id="column_count"> | ||
<property name="sizing">fixed</property> | ||
<property name="fixed_width">64</property> | ||
<property name="title" translatable="yes">Count</property> | ||
<property name="clickable">True</property> | ||
<property name="sort_indicator">True</property> | ||
<property name="sort_order">descending</property> | ||
<property name="sort_column_id">2</property> | ||
<child> | ||
<object class="GtkCellRendererText" id="cellrenderertext2"> | ||
<property name="width">64</property> | ||
<property name="xalign">1</property> | ||
<property name="alignment">right</property> | ||
</object> | ||
<attributes> | ||
<attribute name="text">2</attribute> | ||
</attributes> | ||
</child> | ||
</object> | ||
</child> | ||
</object> | ||
</child> | ||
</object> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">3</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkRadioButton" id="rb_filter_matching"> | ||
<property name="label" translatable="yes">Show Matching </property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">False</property> | ||
<property name="use_action_appearance">False</property> | ||
<property name="relief">none</property> | ||
<property name="active">True</property> | ||
<property name="draw_indicator">True</property> | ||
<property name="group">rb_filter_off</property> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">4</property> | ||
</packing> | ||
</child> | ||
</object> | ||
</child> | ||
</object> | ||
<object class="GtkListStore" id="filter_model"> | ||
<columns> | ||
<!-- column-name filter --> | ||
<column type="gboolean"/> | ||
<!-- column-name tag --> | ||
<column type="gchararray"/> | ||
<!-- column-name count --> | ||
<column type="guint"/> | ||
</columns> | ||
<data> | ||
<row> | ||
<col id="0">True</col> | ||
<col id="1" translatable="yes">Test</col> | ||
<col id="2">45</col> | ||
</row> | ||
</data> | ||
</object> | ||
</interface> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.