Commit Graph

17 Commits

Author SHA1 Message Date
Chris PeBenito
72530ff531 ApolMainWindow: Implement renamable tabs.
Tab renaming methods:
* double click the tab
* context menu on tab bar

Also:
* change initial tab name to include a number based on the total number
of tabs that have been opened.
* add tool tip to tab of the analysis type.
* add explicit close tab function to ensure analysis widgets are deleted.
2015-06-16 16:02:11 -04:00
Chris PeBenito
f3617938a7 Change loading retry to work on Python 2 consistently
In Python 2, ENOENT was an IOError exception.  In Python 3, IOError was
merged into OSError.
2015-06-15 14:14:26 -04:00
Chris PeBenito
ccf2646963 TERuleQueryTab: connect ruletype clear and "select all" buttons 2015-06-10 10:57:05 -04:00
Chris PeBenito
308ce26872 TERuleQueryTab: switch expanders to use toggled signals
Directly connect expander toggled signal to relevant setVisible slots in
the .ui.
2015-06-10 10:22:24 -04:00
Chris PeBenito
c6eacfc781 TERuleQueryTab: fix QCompleter for default to only complete types.
Attributes are not valid for the default type.
2015-06-09 08:50:40 -04:00
Chris PeBenito
9df420ad70 ApolMainWindow: misc enhancements
1. add icons for opening policy and new analysis
2. add shortcuts for copy, cut, paste
3. add filename to apol main window title
4. fix file chooser bug for selecting a policy.
5. improved handling where new analysis is started w/o open policy
2015-06-08 10:58:12 -04:00
Chris PeBenito
ce70c48c28 SEToolsWidget: change ui path to use sys.prefix. 2015-06-07 10:02:53 -04:00
Chris PeBenito
911e44d5d8 TERuleQueryTab: remove unnecessary outer widget
Make the scroll area the top level widget for the tab.
2015-06-06 11:36:49 -04:00
Chris PeBenito
d26101d041 Squeeze margins so the tab widgets have more room.
The tabs have deeply nested container widgets, so a lot of room is lost
on margins.
2015-06-05 15:05:18 -04:00
Chris PeBenito
ee6a619113 TERuleQueryTab: move clear button connections into the .ui 2015-06-05 10:51:00 -04:00
Chris PeBenito
b1b721aea1 TERuleQueryTab: connect radio buttons 2015-06-05 10:40:14 -04:00
Chris PeBenito
5476535659 ChooseAnalysis: simplify exception handler on input 2015-06-05 09:00:38 -04:00
Chris PeBenito
c8419393fb TERuleQueryTab: add default type and boolean criteria 2015-06-05 08:59:29 -04:00
Chris PeBenito
765039621e TERuleQueryTab: change tooltip setting on setupUi
Make sure the normal tooltip is consistent after an error.
2015-06-05 08:54:55 -04:00
Chris PeBenito
ff5c2dfde1 TERuleQueryTab: only set column sizing once (on setupUi) 2015-06-04 12:50:55 -04:00
Chris PeBenito
7af8c276cf Create collapsible sections in TERuleQueryTab.
Source icons from Koloria Icon Set,
http://www.graphicrating.com/2012/06/14/koloria-free-icons-set/
2015-06-04 12:46:41 -04:00
Chris PeBenito
b619166ba0 Initial apol commit. 2015-06-03 13:33:11 -04:00