#include <validators.h>
Inherits Singleton< Validators >.
Inheritance diagram for Validators:


Public Member Functions | |
| Validators () | |
| ~Validators () | |
| bool | isAlwaysPossible () |
| bool | validateUnhookClient () |
| bool | validateHookClient () |
| bool | validateCycleFrame () |
| bool | validateEndRecord () |
| bool | validateCancelRecord () |
| bool | validateBeginRecord () |
| bool | isWorkspaceFocused () |
| bool | existMonitors () |
| bool | existWorkspaces () |
| bool | isEmptyWorkspaceFocused () |
| bool | validateDestroyWorkspace () |
| bool | validateDestroyFrame () |
| bool | validateDestroyAction () |
| bool | validateResizeLeft () |
| bool | validateResizeRight () |
| bool | validateResizeUp () |
| bool | validateResizeDown () |
| bool | existsFrameLeft () |
| bool | existsFrameRight () |
| bool | existsFrameUp () |
| bool | existsFrameDown () |
| bool | isFrameFocused () |
| bool | isFrameOrClientFrameFocused () |
| bool | existFrames () |
| bool | validateToggleMode () |
| bool | isClientFrameFocused () |
| bool | isClientFocused () |
| bool | isFloatingClientFocused () |
| bool | existClients () |
| bool | existClientsWithinFrame () |
| bool | existsDetachedClient () |
| bool | existDetachedClients () |
| bool | validateInputMode () |
| bool | validateSelectClient () |
Definition at line 19 of file validators.h.
| Validators::Validators | ( | ) |
Definition at line 21 of file validators.cpp.
| Validators::~Validators | ( | ) |
Definition at line 24 of file validators.cpp.
| bool Validators::isAlwaysPossible | ( | ) |
Definition at line 61 of file validators.cpp.
Referenced by Kernel::endChainRecording(), Kernel::initActionBindings(), Actions::initInternActions(), and Kernel::start().
| bool Validators::validateUnhookClient | ( | ) |
Return true if a client can be unhooked.
Definition at line 353 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Client::hooked(), KERNEL, and Workspace::topClient().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateHookClient | ( | ) |
Return true if a client can be unhooked.
Definition at line 340 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), isClientFocused(), and KERNEL.
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateCycleFrame | ( | ) |
Returns true if a frame is focussed and there're more frames.
Definition at line 48 of file validators.cpp.
References existFrames(), and isFrameFocused().
Here is the call graph for this function:

| bool Validators::validateEndRecord | ( | ) |
Returns true if the ncwm kernel has recorded actions.
Definition at line 320 of file validators.cpp.
References KERNEL.
Referenced by Actions::initInternActions().
| bool Validators::validateCancelRecord | ( | ) |
Returns true if the ncwm is recording actions.
Definition at line 316 of file validators.cpp.
References KERNEL.
Referenced by Actions::initInternActions().
| bool Validators::validateBeginRecord | ( | ) |
Returns true if the ncwm kernel is not recording actions.
Definition at line 324 of file validators.cpp.
References KERNEL.
Referenced by Actions::initInternActions().
| bool Validators::isWorkspaceFocused | ( | ) |
Returns true if a workspace exists.
Definition at line 66 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), and KERNEL.
Referenced by Actions::createAction(), existDetachedClients(), existsDetachedClient(), Kernel::initActionBindings(), and Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existMonitors | ( | ) |
Returns true if at least two workspaces exist.
Definition at line 73 of file validators.cpp.
References KERNEL.
Referenced by Actions::initInternActions().
| bool Validators::existWorkspaces | ( | ) |
Returns true if at least two workspaces exist.
Definition at line 77 of file validators.cpp.
References KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by Actions::initInternActions(), and validateDestroyWorkspace().
Here is the call graph for this function:

| bool Validators::isEmptyWorkspaceFocused | ( | ) |
Definition at line 84 of file validators.cpp.
References Workspace::floatingClients(), Container< P, LT, LTI, T >::focused(), Workspace::focusedFrame(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by validateDestroyWorkspace().
Here is the call graph for this function:

| bool Validators::validateDestroyWorkspace | ( | ) |
Definition at line 112 of file validators.cpp.
References existWorkspaces(), and isEmptyWorkspaceFocused().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateDestroyFrame | ( | ) |
Definition at line 371 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedFrame(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateDestroyAction | ( | ) |
Definition at line 98 of file validators.cpp.
References Action::INTERN, and KERNEL.
Referenced by Actions::initInternActions().
| bool Validators::validateResizeLeft | ( | ) |
Validates directional grow/shrink actions.
Definition at line 174 of file validators.cpp.
References existsFrameLeft(), and isClientFrameFocused().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateResizeRight | ( | ) |
Definition at line 179 of file validators.cpp.
References existsFrameRight(), and isClientFrameFocused().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateResizeUp | ( | ) |
Definition at line 184 of file validators.cpp.
References existsFrameUp(), and isClientFrameFocused().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateResizeDown | ( | ) |
Definition at line 189 of file validators.cpp.
References existsFrameDown(), and isClientFrameFocused().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existsFrameLeft | ( | ) |
Returns true if a frame into direction exist.
Definition at line 117 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), KERNEL, LEFT, and Workspace::neighborTree().
Referenced by Actions::initInternActions(), and validateResizeLeft().
Here is the call graph for this function:

| bool Validators::existsFrameRight | ( | ) |
Definition at line 125 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), KERNEL, Workspace::neighborTree(), and RIGHT.
Referenced by Actions::initInternActions(), and validateResizeRight().
Here is the call graph for this function:

| bool Validators::existsFrameUp | ( | ) |
Definition at line 133 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), KERNEL, Workspace::neighborTree(), and UP.
Referenced by Actions::initInternActions(), and validateResizeUp().
Here is the call graph for this function:

| bool Validators::existsFrameDown | ( | ) |
Definition at line 141 of file validators.cpp.
References DOWN, Container< P, LT, LTI, T >::focused(), KERNEL, and Workspace::neighborTree().
Referenced by Actions::initInternActions(), and validateResizeDown().
Here is the call graph for this function:

| bool Validators::isFrameFocused | ( | ) |
Returns true if a frame is focused.
Definition at line 213 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedFrame(), Workspace::isFrameMode(), and KERNEL.
Referenced by validateCycleFrame().
Here is the call graph for this function:

| bool Validators::isFrameOrClientFrameFocused | ( | ) |
Returns true if a frame or client exist.
Definition at line 194 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedThing(), Thing::hasDecoration(), and KERNEL.
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existFrames | ( | ) |
Returns true if at least two frames exist.
Definition at line 162 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::frames(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by validateCycleFrame().
Here is the call graph for this function:

| bool Validators::validateToggleMode | ( | ) |
Returns true if toggleMode is valid.
Definition at line 149 of file validators.cpp.
References Workspace::floatingClients(), Container< P, LT, LTI, T >::focused(), Workspace::frames(), Workspace::isFrameMode(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by ClientBar::handleButtonRelease(), and Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::isClientFrameFocused | ( | ) |
Returns true if a client frame exists.
Definition at line 225 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Client::frame(), KERNEL, and Workspace::topClient().
Referenced by Actions::initInternActions(), validateResizeDown(), validateResizeLeft(), validateResizeRight(), and validateResizeUp().
Here is the call graph for this function:

| bool Validators::isClientFocused | ( | ) |
Returns true if a client exists.
Definition at line 261 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedThing(), and KERNEL.
Referenced by Actions::initInternActions(), and validateHookClient().
Here is the call graph for this function:

| bool Validators::isFloatingClientFocused | ( | ) |
Returns true if a floating client exists.
Definition at line 243 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedThing(), Thing::FRAME, KERNEL, and Thing::type().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existClients | ( | ) |
Returns true if at least two clients exists.
Definition at line 286 of file validators.cpp.
References Workspace::floatingClients(), Container< P, LT, LTI, T >::focused(), Workspace::focusedFrame(), Workspace::isFrameMode(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existClientsWithinFrame | ( | ) |
Returns true if at least two clients exists.
Definition at line 270 of file validators.cpp.
References Container< P, LT, LTI, T >::focused(), Workspace::focusedThing(), Thing::FRAME, KERNEL, Container< P, LT, LTI, T >::size(), and Thing::type().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existsDetachedClient | ( | ) |
Definition at line 308 of file validators.cpp.
References Monitor::detachedClients(), isWorkspaceFocused(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::existDetachedClients | ( | ) |
Definition at line 300 of file validators.cpp.
References Monitor::detachedClients(), isWorkspaceFocused(), KERNEL, and Container< P, LT, LTI, T >::size().
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateInputMode | ( | ) |
Returns true if input mode is not active.
Definition at line 54 of file validators.cpp.
References Monitor::inputBar(), Widget::isVisible(), and KERNEL.
Referenced by Actions::initInternActions().
Here is the call graph for this function:

| bool Validators::validateSelectClient | ( | ) |
Returns true if any client exists on the focused monitor.
Definition at line 27 of file validators.cpp.
References Container< P, LT, LTI, T >::begin(), Container< P, LT, LTI, T >::end(), and KERNEL.
Referenced by Actions::initInternActions().
Here is the call graph for this function:

1.5.1