• 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:dock

312 // the dock and pane info.  wxAuiDockInfo's usually contain pointers
314 // reconstruct that relationship in the new dock info and pane info arrays
326 wxAuiDockInfo& dock = dest_docks.Item(i);
327 for (j = 0, pc1 = dock.panes.GetCount(); j < pc1; ++j)
329 if (dock.panes.Item(j) == &src_panes.Item(k))
330 dock.panes.Item(j) = &dest_panes.Item(k);
335 // the highest layer inside the specified dock
342 wxAuiDockInfo& dock = docks.Item(i);
343 if (dock.dock_direction == dock_direction &&
344 dock.dock_layer > max_layer && !dock.fixed)
345 max_layer = dock.dock_layer;
352 // the highest layer inside the specified dock
369 // DoInsertDockLayer() is an internal function that inserts a new dock
370 // layer by incrementing all existing dock layer values by one
386 // DoInsertDockLayer() is an internal function that inserts a new dock
387 // row by incrementing all existing dock row values by one
406 // another dock pane by incrementing all existing dock row values by one
442 // discover the maximum dock layer and the max row
449 // if no dock layer was specified, search all dock layers
456 // if no dock row was specified, search all dock row
478 // FindPaneInDock() looks up a specified window pointer inside a dock.
480 static wxAuiPaneInfo* FindPaneInDock(const wxAuiDockInfo& dock, wxWindow* window)
482 int i, count = dock.panes.GetCount();
485 wxAuiPaneInfo* p = dock.panes.Item(i);
513 // RenumberDockRows() takes a dock and assigns sequential numbers
515 // dock has rows with numbers 0,2,5, they will become 0,1,2
521 wxAuiDockInfo& dock = *docks.Item(i);
522 dock.dock_row = i;
525 for (j = 0, pane_count = dock.panes.GetCount(); j < pane_count; ++j)
526 dock.panes.Item(j)->dock_row = i;
548 // this function is used to sort panes by dock position
677 // besides, the entire dock area is covered with other
1480 wxAuiDockInfo& dock = m_docks.Item(dock_i);
1483 dock.dock_direction, dock.dock_layer,
1484 dock.dock_row, dock.size);
1513 // clear out the dock array; this will be reconstructed
1547 wxAuiDockInfo dock;
1548 dock.dock_direction = dir;
1549 dock.dock_layer = layer;
1550 dock.dock_row = row;
1551 dock.size = size;
1552 m_docks.Add(dock);
1580 void wxAuiManager::GetPanePositionsAndSizes(wxAuiDockInfo& dock,
1592 int pane_i, pane_count = dock.panes.GetCount();
1597 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1608 // on the dock's orientation) of each pane
1611 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1618 if (dock.IsHorizontal())
1655 // if the dock mode is fixed, make sure none of the panes
1672 wxAuiDockInfo& dock,
1686 // is the same as the dock's orientation)
1688 if (dock.IsHorizontal())
1708 part.dock = &dock;
1725 part.dock = &dock;
1746 part.dock = &dock;
1783 part.dock = &dock;
1818 // finally, add the pane sizer to the dock sizer
1827 part.dock = &dock;
1842 wxAuiDockInfo& dock,
1850 int orientation = dock.IsHorizontal() ? wxHORIZONTAL : wxVERTICAL;
1853 if (!m_has_maximized && !dock.fixed && (dock.dock_direction == wxAUI_DOCK_BOTTOM ||
1854 dock.dock_direction == wxAUI_DOCK_RIGHT))
1860 part.dock = &dock;
1868 // create the sizer for the dock
1871 // add each pane to the dock
1873 int pane_i, pane_count = dock.panes.GetCount();
1875 if (dock.fixed)
1881 GetPanePositionsAndSizes(dock, pane_positions, pane_sizes);
1886 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1896 if (dock.IsVertical())
1902 part.dock = &dock;
1913 LayoutAddPane(dock_sizer, dock, pane, uiparts, spacer_only);
1922 part.dock = &dock;
1934 wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
1946 part.dock = &dock;
1947 part.pane = dock.panes.Item(pane_i-1);
1955 LayoutAddPane(dock_sizer, dock, pane, uiparts, spacer_only);
1959 if (dock.dock_direction == wxAUI_DOCK_CENTER || has_maximized_pane)
1965 part.dock = &dock;
1973 if (dock.IsHorizontal())
1974 cont->SetItemMinSize(dock_sizer, 0, dock.size);
1976 cont->SetItemMinSize(dock_sizer, dock.size, 0);
1980 !dock.fixed &&
1981 (dock.dock_direction == wxAUI_DOCK_TOP ||
1982 dock.dock_direction == wxAUI_DOCK_LEFT))
1987 part.dock = &dock;
2013 wxAuiDockInfo& dock = docks.Item(i);
2016 dock.panes.Empty();
2018 if (dock.fixed)
2022 dock.size = 0;
2028 // of them into the appropriate dock. If the
2029 // pane does not exist in the dock, add it
2034 // find any docks with the same dock direction, dock layer, and
2035 // dock row as the pane we are working on
2036 wxAuiDockInfo* dock;
2042 // found the right dock
2043 dock = arr.Item(0);
2047 // dock was not found, so we need to create a new one
2053 dock = &docks.Last();
2060 RemovePaneFromDocks(docks, p, dock);
2062 // pane needs to be added to the dock,
2064 if (!FindPaneInDock(*dock, p.window))
2065 dock->panes.Add(&p);
2085 wxAuiDockInfo& dock = docks.Item(i);
2086 int j, dock_pane_count = dock.panes.GetCount();
2088 // sort the dock pane array by the pane's
2089 // dock position (dock_pos), in ascending order
2090 dock.panes.Sort(PaneSortFunc);
2093 if (dock.size == 0)
2099 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2106 if (dock.IsHorizontal())
2113 // if at least one pane inside the dock has a pane border
2116 if (dock.panes.Item(j)->HasBorder())
2124 // but only if at least one pane inside the dock has a caption
2125 if (dock.IsHorizontal())
2129 if (dock.panes.Item(j)->HasCaption())
2138 // new dock's size may not be more than the dock constraint
2144 if (dock.IsHorizontal())
2149 // absolute minimum size for a dock is 10 pixels
2153 dock.size = size;
2157 // determine the dock's minimum size
2163 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2170 if (dock.IsHorizontal())
2185 if (plus_caption && dock.IsHorizontal())
2188 dock.min_size = dock_min_size;
2192 // minimum, increase the dock's size to it's minimum
2193 if (dock.size < dock.min_size)
2194 dock.size = dock.min_size;
2197 // determine the dock's mode (fixed or proportional);
2198 // determine whether the dock has only toolbars
2200 dock.fixed = true;
2201 dock.toolbar = true;
2204 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2206 dock.fixed = false;
2208 dock.toolbar = false;
2210 dock.fixed = true;
2216 // if the dock mode is proportional and not fixed-pixel,
2219 if (!dock.fixed)
2223 wxAuiPaneInfo& pane = *dock.panes.Item(j);
2228 // if the dock mode is fixed, and none of the panes
2232 if (dock.fixed && !action_pane_marked)
2235 GetPanePositionsAndSizes(dock, pane_positions, pane_sizes);
2240 wxAuiPaneInfo& pane = *(dock.panes.Item(j));
2254 // discover the maximum dock layer
2310 // add content dock (or previous layer's sizer
2328 part.dock = NULL;
2374 part.dock = NULL;
2386 // SetDockSizeConstraint() allows the dock constraints to be set. For example,
2387 // specifying values of 0.5, 0.5 will mean that upon dock creation, a dock may
2649 part.dock->rect = part.rect;
2683 // a dock's offset in pixels from the left side of the window
2690 // the only way to accurately calculate the dock's
2711 part.dock->rect = part.rect;
2718 wxAuiDockInfo& dock = docks.Item(i);
2719 if (test.dock_direction == dock.dock_direction &&
2720 test.dock_layer==dock.dock_layer && test.dock_row==dock.dock_row)
2722 if (dock.IsVertical())
2723 return dock.rect.y;
2725 return dock.rect.x;
2735 // if a dock operation is allowed, the new dock position is copied into
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"
2786 // (or near to the outside of the window), if so, dock it along the edge
2865 if (!part || !part->dock)
2868 // calculate the offset from where the dock begins
2871 if (part->dock->IsHorizontal())
2872 dock_drop_offset = pt.x - part->dock->rect.x - offset.x;
2874 dock_drop_offset = pt.y - part->dock->rect.y - offset.y;
2880 if (!part->dock->fixed || part->dock->dock_direction == wxAUI_DOCK_CENTER ||
2910 m_last_rect = part->dock->rect;
2915 Direction(part->dock->dock_direction).
2916 Layer(part->dock->dock_layer).
2917 Row(part->dock->dock_row).
2921 ((pt.y < part->dock->rect.y + 1) && part->dock->IsHorizontal()) ||
2922 ((pt.x < part->dock->rect.x + 1) && part->dock->IsVertical())
2923 ) && part->dock->panes.GetCount() > 1)
2925 if ((part->dock->dock_direction == wxAUI_DOCK_TOP) ||
2926 (part->dock->dock_direction == wxAUI_DOCK_LEFT))
2929 DoInsertDockRow(panes, part->dock->dock_direction,
2930 part->dock->dock_layer,
2931 part->dock->dock_row);
2936 DoInsertDockRow(panes, part->dock->dock_direction,
2937 part->dock->dock_layer,
2938 part->dock->dock_row+1);
2939 drop.dock_row = part->dock->dock_row+1;
2944 ((pt.y > part->dock->rect.y + part->dock->rect.height - 2 ) && part->dock->IsHorizontal()) ||
2945 ((pt.x > part->dock->rect.x + part->dock->rect.width - 2 ) && part->dock->IsVertical())
2946 ) && part->dock->panes.GetCount() > 1)
2948 if ((part->dock->dock_direction == wxAUI_DOCK_TOP) ||
2949 (part->dock->dock_direction == wxAUI_DOCK_LEFT))
2951 DoInsertDockRow(panes, part->dock->dock_direction,
2952 part->dock->dock_layer,
2953 part->dock->dock_row+1);
2954 drop.dock_row = part->dock->dock_row+1;
2959 DoInsertDockRow(panes, part->dock->dock_direction,
2960 part->dock->dock_layer,
2961 part->dock->dock_row);
2986 if (part->dock->panes.GetCount() != 1)
2988 part = GetPanePart(part->dock->panes.Item(0)->window);
2999 if (part->dock && part->dock->toolbar)
3003 switch (part->dock->dock_direction)
3027 DoInsertDockRow(panes, part->dock->dock_direction,
3030 Direction(part->dock->dock_direction).
3123 // direction of the dock itself, and perpendicular to the dock
3165 Direction(part->dock->dock_direction).
3166 Layer(part->dock->dock_layer).
3167 Row(part->dock->dock_row).
3363 // this happens when you are moving a pane around in a dock
3537 // don't dock the window
3614 // don't dock the window
3865 // a dock may not be resized if it has a single
3867 if (part->type == wxAuiDockUIPart::typeDockSizer && part->dock &&
3868 part->dock->panes.GetCount() == 1 &&
3869 part->dock->panes.Item(0)->IsFixed())
3945 //if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER)
3948 // a dock may not be resized if it has a single
3950 if (part->type == wxAuiDockUIPart::typeDockSizer && part->dock &&
3951 part->dock->panes.GetCount() == 1 &&
3952 part->dock->panes.Item(0)->IsFixed())
4004 if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER)
4034 // resize the dock or the pane
4037 // first, we must calculate the maximum size the dock may be
4047 wxAuiDockInfo& dock = m_docks.Item(dock_i);
4048 if (dock.dock_direction == wxAUI_DOCK_TOP ||
4049 dock.dock_direction == wxAUI_DOCK_BOTTOM)
4051 used_height += dock.size;
4053 if (dock.dock_direction == wxAUI_DOCK_LEFT ||
4054 dock.dock_direction == wxAUI_DOCK_RIGHT)
4056 used_width += dock.size;
4058 if (dock.resizable)
4082 wxRect& rect = m_action_part->dock->rect;
4086 int new_size, old_size = m_action_part->dock->size;
4088 switch (m_action_part->dock->dock_direction)
4094 m_action_part->dock->size = new_size;
4100 m_action_part->dock->size = new_size;
4107 m_action_part->dock->size = new_size;
4114 m_action_part->dock->size = new_size;
4124 wxAuiDockInfo& dock = *m_action_part->dock;
4145 if (dock.IsHorizontal())
4150 // determine the size of the dock, based on orientation
4151 if (dock.IsHorizontal())
4152 dock_pixels = dock.rect.GetWidth();
4154 dock_pixels = dock.rect.GetHeight();
4157 // and the total size of the dock minus the size of all
4159 int i, dock_pane_count = dock.panes.GetCount();
4163 wxAuiPaneInfo& p = *dock.panes.Item(i);
4168 // width from the dock width, because this would
4178 if (dock.IsHorizontal())
4189 // new size can never be more than the number of dock pixels
4194 // find a pane in our dock to 'steal' space from or to 'give'
4201 wxAuiPaneInfo& p = *dock.panes.Item(i);
4210 // demand that the pane being resized is found in this dock
4212 wxASSERT_MSG(pane_position != -1, wxT("Pane not found in dock"));
4270 int prop_borrow = dock.panes.Item(borrow_pane)->dock_proportion;
4284 dock.panes.Item(borrow_pane)->dock_proportion = prop_borrow;
4366 wxAuiDockInfo& dock = *docks.Item(0);
4369 GetPanePositionsAndSizes(dock, pane_positions, pane_sizes);
4371 int i, dock_pane_count = dock.panes.GetCount();
4373 dock.panes.Item(i)->dock_pos = pane_positions[i];