Chris PeBenito
42c2bbd606
Move data in as package data.
...
Closes #136 .
2016-11-12 11:13:21 -05:00
Chris PeBenito
ddca4536ee
apol: Tabs raise exceptions if trying to save while there are errors.
...
Closes #97
Closes #98
2016-07-09 13:22:09 -04:00
Chris PeBenito
5fd724b300
apol: Convert tabs to use error methods from the base class.
2016-07-09 13:14:31 -04:00
Chris PeBenito
c4556ae85f
apol: Implement analysis tab base class.
...
Add methods for clearing and setting UI error states. Disable apply button
if there are errors in the tab.
2016-07-09 12:35:11 -04:00
Chris PeBenito
5367f1a288
apol: Whitespace fixes in tab save/load functions.
2016-06-22 14:23:55 -04:00
Chris PeBenito
7c540405ea
TERuleQueryTab: Implement save/load tab settings functions.
...
Related to #97 and #98 .
2016-06-01 12:55:50 -04:00
Chris PeBenito
6502bae091
apol: revise match all vs. equal options
...
Where subset is available, keep "match all" option since that is more
likely to be used. Otherwise, change GUI to "Equal" for correctness.
2016-04-05 15:26:49 -04:00
Chris PeBenito
b416862554
apol: rename models to make it clear they are tables
2016-04-01 14:03:41 -04:00
Chris PeBenito
f1f9c3186d
Create new base class for table models.
...
Break up rule models into three files since RuleListModel doesn't make
sense any longer.
2016-04-01 09:00:17 -04:00
Chris PeBenito
807efb1e10
ApolMainWindow: handle closing the policy
...
* Close all tabs when closing the policy
* Close the policy if using the "open policy" action and policy load
succeeds.
* Warn the user the above actions will close analysis tabs
(if any tabs are open)
* Set analysis widgets to delete on close since widgets are not deleted
by QTabWidget.clear() or .removeTab()
2016-03-31 11:34:27 -04:00
Chris PeBenito
c281b9410a
apol: explicitly set initial result table sort orders.
2016-03-30 10:49:34 -04:00
Chris PeBenito
945a6548e0
apol: move queries to common updater thread class
...
Move logger to main tab class and have the result class send the result
count back on the finished signal.
2016-03-30 10:26:38 -04:00
Chris PeBenito
8e2c8ca372
Implement extended permission rule support in TERuleQueryTab.
...
Related to #73
2016-03-28 09:33:24 -04:00
Chris PeBenito
fcabb2f0e6
Move generic GUI classes up to the setoolsgui package.
2016-03-14 15:25:07 -04:00
Chris PeBenito
3434618aef
LogHandlerToSignal: set default formatter and INFO level in __init__.
2016-03-11 09:00:20 -05:00
Chris PeBenito
6c2acc3fdd
Rename LogToSignalHandler to LogHandlerToSignal.
2016-03-07 13:40:37 -05:00
Chris PeBenito
d268e7e7f7
apol: more logging for the status bar
2016-03-07 13:21:36 -05:00
Chris PeBenito
3f4630c6f9
apol: use INFO logs to update status displays
...
Connect all setools and setoolsgui INFO+ messages and display them on
the statusbar.
Use each tab's analysis/query INFO+ messages and display them on the
"busy" status dialog box.
2016-03-07 12:04:08 -05:00
Chris PeBenito
c017bd7cfa
Apply logging best practices.
...
* Use __name__ for the logger name
* Add top-level library NullHandlers
2016-03-04 13:49:03 -05:00
Chris PeBenito
7e8fcba695
apol: switch tabs to (more discoverable) check boxes for hiding UI elements
...
Also drop the results expander.
2016-02-29 10:51:24 -05:00
Chris PeBenito
5c39a1fd8c
apol: reset busy dialog in setupUI()
...
For some reason, on Fedora the dialog will show before an explicit show()
is issued.
2016-02-26 08:58:09 -05:00
Chris PeBenito
2482fc5d10
apol: fix threading
...
The isInterruptionRequested flag on a QThread only resets after the thread
finishes. The original implementation never had the thread finish until
the tab was closed, so if a user canceled an operation, each successive
time an analysis ran on that tab, it would immediately have a request
to interrupt.
2015-07-07 14:15:10 -04:00
Chris PeBenito
afab62934e
TERuleQueryTab: Make the QProgressDialog more informative.
...
Also more agressively check cancelation, so processing will end sooner.
Force repaints to try to ensure the dialog text is updated, as for large
results, the GUI becomes unresponsive when resizing the table.
2015-07-07 11:38:35 -04:00
Chris PeBenito
ee8a6a94c4
TERuleQueryTab ResultsUpdater: fix counter to use enumerate()
2015-06-30 11:19:08 -04:00
Chris PeBenito
c8e168cd3e
TERuleQueryTab ResultsUpdater: yield every 10 rules.
...
Give the main thread a chance to catch up if there happens to only be
a single CPU core available.
2015-06-30 11:09:50 -04:00
Chris PeBenito
d8f69d912f
InfoFlowAnalysisTab: initial implementation
...
Does not yet include graphical results.
2015-06-30 11:06:59 -04:00
Chris PeBenito
6cbce7a503
TERuleQueryTab: add warning for overly broad queries.
...
Allow a way out if no criteria is set.
2015-06-26 09:02:37 -04:00
Chris PeBenito
9ef218abea
TERuleQueryTab: add threading and "busy" dialog
2015-06-26 09:02:01 -04:00
Chris PeBenito
80e47d7bf6
TERuleQueryTab: implement invert class/perms functions
2015-06-23 09:59:38 -04:00
Chris PeBenito
25168b11ff
TERuleQueryTab: the parent is not the tab
...
The parent is a top-level widget (from the tab's perspective) which has
no parent.
2015-06-17 08:40:35 -04:00
Chris PeBenito
124cdd32df
TERuleQueryTab: change result table column to resize only once
...
Only resize columns to content once, when results are generated. This will
generally provide a reasonable column width, while still allowing the user
to resize the columns, such as when the permission list is very long.
2015-06-17 08:37:58 -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
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
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
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