Back to index

unity  6.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
unity::QuicklistManager Class Reference

#include <QuicklistManager.h>

Inheritance diagram for unity::QuicklistManager:
Inheritance graph
[legend]
Collaboration diagram for unity::QuicklistManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~QuicklistManager ()
QuicklistViewCurrent ()
void RegisterQuicklist (QuicklistView *quicklist)
void ShowQuicklist (QuicklistView *quicklist, int tip_x, int tip_y, bool hide_existing_if_open=true)
void HideQuicklist (QuicklistView *quicklist)
void RecvShowQuicklist (nux::BaseWindow *window)
void RecvHideQuicklist (nux::BaseWindow *window)

Static Public Member Functions

static QuicklistManagerDefault ()
static void Destroy ()

Public Attributes

sigc::signal< void,
QuicklistView * > 
quicklist_opened
sigc::signal< void,
QuicklistView * > 
quicklist_closed

Private Member Functions

 QuicklistManager ()

Private Attributes

std::list< QuicklistView * > _quicklist_list
QuicklistView_current_quicklist

Static Private Attributes

static QuicklistManager_default = 0

Detailed Description

Definition at line 25 of file QuicklistManager.h.


Constructor & Destructor Documentation

Definition at line 55 of file QuicklistManager.cpp.

{
}

Definition at line 50 of file QuicklistManager.cpp.

Here is the caller graph for this function:


Member Function Documentation

Definition at line 59 of file QuicklistManager.cpp.

{
  return _current_quicklist;
}

Here is the caller graph for this function:

Definition at line 37 of file QuicklistManager.cpp.

{
  if (!_default)
    _default = new QuicklistManager();
  return _default;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 44 of file QuicklistManager.cpp.

{
  delete _default;
  _default = 0;
}

Here is the caller graph for this function:

Definition at line 100 of file QuicklistManager.cpp.

{
  quicklist->Hide();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::QuicklistManager::RecvHideQuicklist ( nux::BaseWindow *  window)

Definition at line 116 of file QuicklistManager.cpp.

{
  QuicklistView* quicklist = (QuicklistView*) window;

  if (_current_quicklist == quicklist)
  {
    _current_quicklist = 0;
  }

  quicklist_closed.emit(quicklist);
}

Here is the caller graph for this function:

void unity::QuicklistManager::RecvShowQuicklist ( nux::BaseWindow *  window)

Definition at line 105 of file QuicklistManager.cpp.

{
  QuicklistView* quicklist = (QuicklistView*) window;

  _current_quicklist = quicklist;

  quicklist_opened.emit(quicklist);
  UBusServer* ubus = ubus_server_get_default();
  ubus_server_send_message(ubus, UBUS_QUICKLIST_SHOWN, NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 64 of file QuicklistManager.cpp.

{
  std::list<QuicklistView*>::iterator it;

  if (std::find(_quicklist_list.begin(), _quicklist_list.end(), quicklist) != _quicklist_list.end())
  {
    // quicklist has already been registered
    g_warning("Attempted to register a quicklist that was previously registered");
    return;
  }

  _quicklist_list.push_back(quicklist);

  quicklist->sigVisible.connect(sigc::mem_fun(this, &QuicklistManager::RecvShowQuicklist));
  quicklist->sigHidden.connect(sigc::mem_fun(this, &QuicklistManager::RecvHideQuicklist));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::QuicklistManager::ShowQuicklist ( QuicklistView quicklist,
int  tip_x,
int  tip_y,
bool  hide_existing_if_open = true 
)

Definition at line 81 of file QuicklistManager.cpp.

{
  if (_current_quicklist == quicklist)
  {
    // this quicklist is already active
    // do we want to still redraw in case the position has changed?
    return;
  }

  if (hide_existing_if_open && _current_quicklist)
  {
    HideQuicklist(_current_quicklist);
  }

  quicklist->ShowQuicklistWithTipAt(tip_x, tip_y);
  nux::GetWindowCompositor().SetKeyFocusArea(quicklist);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 50 of file QuicklistManager.h.

Definition at line 47 of file QuicklistManager.h.

Definition at line 49 of file QuicklistManager.h.

Definition at line 43 of file QuicklistManager.h.

Definition at line 42 of file QuicklistManager.h.


The documentation for this class was generated from the following files: