• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/aui/

Lines Matching defs:pane

312 // the dock and pane info.  wxAuiDockInfo's usually contain pointers
314 // reconstruct that relationship in the new dock info and pane info arrays
358 wxAuiPaneInfo& pane = panes.Item(i);
359 if (pane.dock_direction == direction &&
360 pane.dock_layer == layer &&
361 pane.dock_row > max_row)
362 max_row = pane.dock_row;
378 wxAuiPaneInfo& pane = panes.Item(i);
379 if (!pane.IsFloating() &&
380 pane.dock_direction == dock_direction &&
381 pane.dock_layer >= dock_layer)
382 pane.dock_layer++;
396 wxAuiPaneInfo& pane = panes.Item(i);
397 if (!pane.IsFloating() &&
398 pane.dock_direction == dock_direction &&
399 pane.dock_layer == dock_layer &&
400 pane.dock_row >= dock_row)
401 pane.dock_row++;
406 // another dock pane by incrementing all existing dock row values by one
416 wxAuiPaneInfo& pane = panes.Item(i);
417 if (!pane.IsFloating() &&
418 pane.dock_direction == dock_direction &&
419 pane.dock_layer == dock_layer &&
420 pane.dock_row == dock_row &&
421 pane.dock_pos >= dock_pos)
422 pane.dock_pos++;
492 // RemovePaneFromDocks() removes a pane window from all docks
495 wxAuiPaneInfo& pane,
504 wxAuiPaneInfo* pi = FindPaneInDock(d, pane.window);
532 // SetActivePane() sets the active pane, as well as cycles through
533 // every other pane and makes sure that all others' active flags
540 wxAuiPaneInfo& pane = panes.Item(i);
541 pane.state &= ~wxAuiPaneInfo::optionActive;
542 if (pane.window == active_pane)
543 pane.state |= wxAuiPaneInfo::optionActive;
627 // The pane info's structure may then be modified. Once a pane's
643 // this version of GetPane() looks up a pane based on a
644 // 'pane name', see above comment for more info
657 // GetAllPanes() returns a reference to all the pane info structures
683 // interested in a pane hit. If, however, we don't already have
684 // a hit, returning a pane hit is necessary for some operations
861 // center pane
944 // check if the pane has a valid window
952 // check if the pane name already exists, this could reveal a
957 wxFAIL_MSG(wxT("A pane with that name already exists in the manager!"));
961 // if the new pane is docked then we should undo maximize
969 // set the pane window
973 // if the pane's name identifier is blank, create a random string
1087 wxAuiPaneInfo& pane = GetPane(window);
1089 DoDrop(m_docks, m_panes, pane, drop_pos, wxPoint(0,0));
1141 // if the new pane is docked then we should undo maximize
1155 // DetachPane() removes a pane from the frame manager. This
1178 // reparent to m_frame and destroy the pane
1190 // make sure there are no references to this pane in our uiparts,
1198 if (part.pane == &p)
1214 // ClosePane() destroys or hides the pane depending on its flags
1242 // now we need to either destroy or hide the pane
1274 // hide the pane, because only the newly
1275 // maximized pane should show
1352 wxString wxAuiManager::SavePaneInfo(wxAuiPaneInfo& pane)
1355 result += EscapeDelimiters(pane.name);
1359 result += EscapeDelimiters(pane.caption);
1362 result += wxString::Format(wxT("state=%u;"), pane.state);
1363 result += wxString::Format(wxT("dir=%d;"), pane.dock_direction);
1364 result += wxString::Format(wxT("layer=%d;"), pane.dock_layer);
1365 result += wxString::Format(wxT("row=%d;"), pane.dock_row);
1366 result += wxString::Format(wxT("pos=%d;"), pane.dock_pos);
1367 result += wxString::Format(wxT("prop=%d;"), pane.dock_proportion);
1368 result += wxString::Format(wxT("bestw=%d;"), pane.best_size.x);
1369 result += wxString::Format(wxT("besth=%d;"), pane.best_size.y);
1370 result += wxString::Format(wxT("minw=%d;"), pane.min_size.x);
1371 result += wxString::Format(wxT("minh=%d;"), pane.min_size.y);
1372 result += wxString::Format(wxT("maxw=%d;"), pane.max_size.x);
1373 result += wxString::Format(wxT("maxh=%d;"), pane.max_size.y);
1374 result += wxString::Format(wxT("floatx=%d;"), pane.floating_pos.x);
1375 result += wxString::Format(wxT("floaty=%d;"), pane.floating_pos.y);
1376 result += wxString::Format(wxT("floatw=%d;"), pane.floating_size.x);
1377 result += wxString::Format(wxT("floath=%d"), pane.floating_size.y);
1382 // Load a "pane" with the pane infor settings in pane_part
1383 void wxAuiManager::LoadPaneInfo(wxString pane_part, wxAuiPaneInfo &pane)
1406 pane.name = value;
1408 pane.caption = value;
1410 pane.state = (unsigned int)wxAtoi(value.c_str());
1412 pane.dock_direction = wxAtoi(value.c_str());
1414 pane.dock_layer = wxAtoi(value.c_str());
1416 pane.dock_row = wxAtoi(value.c_str());
1418 pane.dock_pos = wxAtoi(value.c_str());
1420 pane.dock_proportion = wxAtoi(value.c_str());
1422 pane.best_size.x = wxAtoi(value.c_str());
1424 pane.best_size.y = wxAtoi(value.c_str());
1426 pane.min_size.x = wxAtoi(value.c_str());
1428 pane.min_size.y = wxAtoi(value.c_str());
1430 pane.max_size.x = wxAtoi(value.c_str());
1432 pane.max_size.y = wxAtoi(value.c_str());
1434 pane.floating_pos.x = wxAtoi(value.c_str());
1436 pane.floating_pos.y = wxAtoi(value.c_str());
1438 pane.floating_size.x = wxAtoi(value.c_str());
1440 pane.floating_size.y = wxAtoi(value.c_str());
1448 pane.name.Replace(wxT("\a"), wxT("|"));
1449 pane.name.Replace(wxT("\b"), wxT(";"));
1450 pane.caption.Replace(wxT("\a"), wxT("|"));
1451 pane.caption.Replace(wxT("\b"), wxT(";"));
1459 // SavePerspective() saves all pane information as a single string.
1461 // all pane settings. This save and load mechanism allows an
1462 // exact pane configuration to be saved and restored at a later time
1473 wxAuiPaneInfo& pane = m_panes.Item(pane_i);
1474 result += SavePaneInfo(pane)+wxT("|");
1523 wxAuiPaneInfo pane;
1561 LoadPaneInfo(pane_part, pane);
1563 wxAuiPaneInfo& p = GetPane(pane.name);
1566 // the pane window couldn't be found
1571 p.SafeSet(pane);
1594 // find the pane marked as our action pane
1597 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1599 if (pane.state & wxAuiPaneInfo::actionPane)
1608 // on the dock's orientation) of each pane
1611 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1612 positions.Add(pane.dock_pos);
1615 if (pane.HasBorder())
1620 if (pane.HasGripper() && !pane.HasGripperTop())
1622 size += pane.best_size.x;
1626 if (pane.HasGripper() && pane.HasGripperTop())
1629 if (pane.HasCaption())
1631 size += pane.best_size.y;
1637 // if there is no action pane, just return the default
1638 // positions (as specified in pane.pane_pos)
1673 wxAuiPaneInfo& pane,
1694 // value that the pane will receive
1695 int pane_proportion = pane.dock_proportion;
1700 if (pane.HasGripper())
1702 if (pane.HasGripperTop())
1709 part.pane = &pane;
1717 if (pane.HasCaption())
1726 part.pane = &pane;
1734 // add pane buttons to the caption
1736 for (i = 0, button_count = pane.buttons.GetCount();
1739 wxAuiPaneButton& button = pane.buttons.Item(i);
1747 part.pane = &pane;
1768 // add the pane window itself
1775 sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND);
1776 // Don't do this because it breaks the pane size in floating windows
1778 // an mdi client window as the center pane.
1779 vert_pane_sizer->SetItemMinSize(pane.window, 1, 1);
1784 part.pane = &pane;
1792 // determine if the pane should have a minimum size; if the pane is
1794 // if the pane.min_size is set, we must use that value as well
1796 wxSize min_size = pane.min_size;
1797 if (pane.IsFixed())
1801 min_size = pane.best_size;
1814 // add the verticle sizer (caption, pane window) to the
1818 // finally, add the pane sizer to the dock sizer
1820 if (pane.HasBorder())
1822 // allowing space for the pane's border
1828 part.pane = &pane;
1861 part.pane = NULL;
1871 // add each pane to the dock
1879 // figure out the real pane positions we will
1880 // use, without modifying the each pane's pane_pos member
1886 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1889 if (pane.IsMaximized())
1903 part.pane = NULL;
1913 LayoutAddPane(dock_sizer, dock, pane, uiparts, spacer_only);
1923 part.pane = NULL;
1934 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1936 if (pane.IsMaximized())
1939 // if this is not the first pane being added,
1940 // we need to add a pane sizer
1947 part.pane = dock.panes.Item(pane_i-1);
1955 LayoutAddPane(dock_sizer, dock, pane, uiparts, spacer_only);
1966 part.pane = NULL;
1988 part.pane = NULL;
2029 // pane does not exist in the dock, add it
2035 // dock row as the pane we are working on
2059 // remove the pane from any existing docks except this one
2062 // pane needs to be added to the dock,
2069 // remove the pane from any existing docks
2088 // sort the dock pane array by the pane's
2099 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2100 wxSize pane_size = pane.best_size;
2102 pane_size = pane.min_size;
2104 pane_size = pane.window->GetSize();
2113 // if at least one pane inside the dock has a pane border
2123 // if pane is on the top or bottom, add the caption height,
2124 // but only if at least one pane inside the dock has a caption
2163 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2164 if (pane.min_size != wxDefaultSize)
2166 if (pane.HasBorder())
2168 if (pane.HasCaption())
2172 if (pane.min_size.y > dock_min_size)
2173 dock_min_size = pane.min_size.y;
2177 if (pane.min_size.x > dock_min_size)
2178 dock_min_size = pane.min_size.x;
2191 // if the pane's current size is less than it's
2204 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2205 if (!pane.IsFixed())
2207 if (!pane.IsToolbar())
2209 if (pane.HasFlag(wxAuiPaneInfo::optionDockFixed))
2211 if (pane.state & wxAuiPaneInfo::actionPane)
2223 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2224 pane.dock_pos = j;
2240 wxAuiPaneInfo& pane = *(dock.panes.Item(j));
2241 pane.dock_pos = pane_positions[j];
2243 int amount = pane.dock_pos - offset;
2247 pane.dock_pos += -amount;
2327 part.pane = NULL;
2373 part.pane = NULL;
2428 // because the pane is no longer in a floating, we need to
2439 // a pane, we need to cancel that action here to prevent
2453 // reparent to m_frame and destroy the pane
2484 // pane, which has recently been floated
2528 // any optionActive values from the pane states
2561 // the new pane rectangles against the old rectangles that
2651 part.pane->rect = part.rect;
2655 // GetPanePart() looks up the pane the pane border UI part (or the regular
2656 // pane part if there is no border). This allows the caller to get the exact
2657 // rectangle of the pane in question, including decorations like
2667 part.pane && part.pane->window == wnd)
2674 part.pane && part.pane->window == wnd)
2686 // fixel-pane/toolbar offsets when they are dragged.
2758 // and determines where the pane's new position would be. If the pane is to be
2759 // dropped, it performs the drop operation using the specified dock and pane
2760 // arrays. By specifying copied dock and pane arrays when calling, a "what-if"
2785 // Check to see if the pane has been dragged outside of the window
2869 // to the point where the user dropped the pane
2877 // toolbars may only be moved in and to fixed-pane docks,
2878 // otherwise we will try to float the pane. Also, the pane
2879 // should float if being dragged over center pane windows
3036 if (!part->pane)
3039 part = GetPanePart(part->pane->window);
3044 int insert_row = part->pane->dock_row;
3045 int insert_dir = part->pane->dock_direction;
3046 int insert_layer = part->pane->dock_layer;
3048 switch (part->pane->dock_direction)
3086 // are along the borders of the center pane
3122 // determine the mouse offset and the pane size, both in the
3138 int drop_position = part->pane->dock_pos;
3140 // if we are in the top/left part of the pane,
3141 // insert the pane before the pane being hovered over
3144 drop_position = part->pane->dock_pos;
3146 part->pane->dock_direction,
3147 part->pane->dock_layer,
3148 part->pane->dock_row,
3149 part->pane->dock_pos);
3152 // if we are in the bottom/right part of the pane,
3153 // insert the pane before the pane being hovered over
3156 drop_position = part->pane->dock_pos+1;
3158 part->pane->dock_direction,
3159 part->pane->dock_layer,
3160 part->pane->dock_row,
3161 part->pane->dock_pos+1);
3211 // if we are dragging a floating pane, set the focus
3212 // back to that floating pane (otherwise it becomes unfocused)
3246 wxAuiPaneInfo& pane = m_panes.Item(i);
3248 if (pane.IsFloating() &&
3249 pane.frame->IsShown())
3251 wxRect rect = pane.frame->GetRect();
3309 wxAuiPaneInfo& pane = GetPane(pane_window);
3310 if (!pane.IsOk())
3313 if (pane.IsToolbar())
3329 // first calls DoDrop() to determine the exact position the pane would
3330 // be at were if dropped. If the pane would indeed become docked at the
3333 // |pane_window| is the window pointer of the pane being dragged, |pt| is
3362 // remove any pane already there which bears the same window;
3363 // this happens when you are moving a pane around in a dock
3374 // find out where the new pane would be
3393 part.pane && part.pane->name == wxT("__HINT__"))
3442 // try to find the pane
3443 wxAuiPaneInfo& pane = GetPane(wnd);
3444 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
3446 if(!pane.frame)
3450 pane.frame->SetTransparent(150);
3455 // try to find the pane
3456 wxAuiPaneInfo& pane = GetPane(wnd);
3457 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
3459 if(!pane.frame)
3468 // move to pane's upper border
3477 // move to pane's left border
3484 // move to pane's right border
3491 // move to pane's bottom border
3504 wxPoint frame_pos = pane.frame->GetPosition();
3508 if (pane.IsToolbar() && m_action == actionDragFloatingPane)
3515 wxAuiPaneInfo hint = pane;
3519 // find out where the new pane would be
3525 pane = hint;
3527 m_action_window = pane.window;
3561 // try to find the pane
3562 wxAuiPaneInfo& pane = GetPane(wnd);
3563 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
3565 if(!pane.frame)
3574 // move to pane's upper border
3583 // move to pane's left border
3590 // move to pane's right border
3597 // move to pane's bottom border
3610 wxPoint frame_pos = pane.frame->GetPosition();
3618 DoDrop(m_docks, m_panes, pane, client_pt, action_offset);
3621 // if the pane is still floating, update it's floating
3623 if (pane.IsFloating())
3625 pane.floating_pos = pane.frame->GetPosition();
3628 pane.frame->SetTransparent(255);
3642 // try to find the pane
3643 wxAuiPaneInfo& pane = GetPane(wnd);
3644 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
3646 pane.floating_size = size;
3652 // try to find the pane
3653 wxAuiPaneInfo& pane = GetPane(wnd);
3654 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
3657 // fire pane close event
3659 e.SetPane(&pane);
3670 // close the pane, but check that it
3671 // still exists in our pane array first
3677 ClosePane(pane);
3693 // OnRender() draws all of the pane captions, sashes,
3694 // backgrounds, captions, grippers, pane borders and buttons.
3714 // don't draw hidden pane items or items that aren't windows
3728 m_art->DrawCaption(*dc, m_frame, part.pane->caption, part.rect, *part.pane);
3731 m_art->DrawGripper(*dc, m_frame, part.rect, *part.pane);
3734 m_art->DrawBorder(*dc, m_frame, part.rect, *part.pane);
3738 wxAUI_BUTTON_STATE_NORMAL, part.rect, *part.pane);
3866 // pane which is not resizable
3873 if (part->pane && part->pane->IsFixed())
3923 if (hit_test->pane)
3929 *hit_test->pane);
3944 // Removing this restriction so that a centre pane can be resized
3949 // pane which is not resizable
3956 if (part->pane && part->pane->IsFixed())
3984 if (part->pane &&
3985 part->pane->window &&
3991 owner_mgr->StartPaneDrag(part->pane->window,
4000 SetActivePane(m_panes, part->pane->window);
4034 // resize the dock or the pane
4125 wxAuiPaneInfo& pane = *m_action_part->pane;
4138 // determine the pane rectangle by getting the pane part
4139 wxAuiDockUIPart* pane_part = GetPanePart(pane.window);
4144 // this will help us recalculate the pane's proportion
4164 if (p.window == pane.window)
4167 // while we're at it, subtract the pane sash
4194 // find a pane in our dock to 'steal' space from or to 'give'
4195 // space to -- this is essentially what is done when a pane is
4196 // resized; the pane should usually be the first non-fixed pane
4197 // to the right of the action pane
4210 // demand that the pane being resized is found in this dock
4221 // calculate the new proportion of the pane
4227 // check against the pane's minimum size, if specified. please note
4230 // causing the size of the pane to violate it's minimum size
4231 if (pane.min_size.IsFullySpecified())
4235 if (pane.HasBorder())
4241 min_size += pane.min_size.y;
4242 if (pane.HasCaption())
4247 min_size += pane.min_size.x;
4265 int prop_diff = new_proportion - pane.dock_proportion;
4267 // borrow the space from our neighbor pane to the
4274 // borrowing from other pane would make it too small,
4285 pane.dock_proportion = new_proportion;
4339 e.SetPane(m_action_part->pane);
4357 wxAuiPaneInfo& pane = GetPane(m_action_window);
4358 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
4362 FindDocks(m_docks, pane.dock_direction,
4363 pane.dock_layer, pane.dock_row, docks);
4376 pane.state &= ~wxAuiPaneInfo::actionPane;
4468 wxAuiPaneInfo* pane_info = m_action_part->pane;
4491 // to drag a docked pane and suddenly have it become a floating frame.
4518 wxAuiPaneInfo& pane = GetPane(m_action_window);
4519 wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
4521 pane.state |= wxAuiPaneInfo::actionPane;
4524 DoDrop(m_docks, m_panes, pane, pt, m_action_offset);
4526 // if DoDrop() decided to float the pane, set up
4527 // the floating pane's initial position
4528 if (pane.IsFloating())
4531 pane.floating_pos = wxPoint(pt.x - m_action_offset.x,
4536 // in the case that the pane has been floated,
4537 // this call will create the floating pane
4541 // if the pane has been floated, change the mouse
4543 // EVT_MOTION() events will move the floating pane
4544 if (pane.IsFloating())
4546 pane.state &= ~wxAuiPaneInfo::actionPane;
4548 m_action_window = pane.frame;
4598 // when a child pane has it's focus set, we should change the
4599 // pane's active state to reflect this. (this is only true if
4603 wxAuiPaneInfo& pane = GetPane(event.GetWindow());
4604 if (pane.IsOk() && (pane.state & wxAuiPaneInfo::optionActive) == 0)
4616 // when a pane button has been pressed.
4619 wxASSERT_MSG(evt.pane, wxT("Pane Info passed to wxAuiManager::OnPaneButton must be non-null"));
4621 wxAuiPaneInfo& pane = *(evt.pane);
4625 // fire pane close event
4628 e.SetPane(evt.pane);
4633 // close the pane, but check that it
4634 // still exists in our pane array first
4637 wxAuiPaneInfo& check = GetPane(pane.window);
4640 ClosePane(pane);
4646 else if (evt.button == wxAUI_BUTTON_MAXIMIZE_RESTORE && !pane.IsMaximized())
4648 // fire pane close event
4651 e.SetPane(evt.pane);
4656 MaximizePane(pane);
4660 else if (evt.button == wxAUI_BUTTON_MAXIMIZE_RESTORE && pane.IsMaximized())
4662 // fire pane close event
4665 e.SetPane(evt.pane);
4670 RestorePane(pane);
4677 pane.IsFloatable())
4678 pane.Float();