Searched refs:button (Results 1 - 25 of 110) sorted by relevance

12345

/haiku-fatelf/src/tests/kits/interface/layout/widget_layout_test/tests/
H A DSliderTest.cpp188 // the radio button group for selecting the orientation
198 LabeledRadioButton* button = new OrientationRadioButton("Horizontal", local
200 vGroup->AddChild(button);
201 fOrientationRadioGroup->AddButton(button->GetRadioButton());
204 button = new OrientationRadioButton("Vertical", B_VERTICAL);
205 vGroup->AddChild(button);
206 fOrientationRadioGroup->AddButton(button->GetRadioButton());
211 // the radio button group for selecting the thumb style
221 button = new ThumbStyleRadioButton("Block thumb", B_BLOCK_THUMB);
222 vGroup->AddChild(button);
413 OrientationRadioButton* button = dynamic_cast<OrientationRadioButton*>( local
431 ThumbStyleRadioButton* button = dynamic_cast<ThumbStyleRadioButton*>( local
449 HashMarkLocationRadioButton* button local
467 ThicknessRadioButton* button local
484 LabelRadioButton* button = dynamic_cast<LabelRadioButton*>(parent); local
501 LimitLabelsRadioButton* button = dynamic_cast<LimitLabelsRadioButton*>( local
[all...]
H A DBoxTest.cpp103 // the radio button group for selecting the border style
109 LabeledRadioButton* button = new BorderStyleRadioButton("no border", local
111 group->AddChild(button);
112 fBorderStyleRadioGroup->AddButton(button->GetRadioButton());
115 button = new BorderStyleRadioButton("plain border", B_PLAIN_BORDER);
116 group->AddChild(button);
117 fBorderStyleRadioGroup->AddButton(button->GetRadioButton());
120 button = new BorderStyleRadioButton("fancy border", B_FANCY_BORDER);
121 group->AddChild(button);
122 fBorderStyleRadioGroup->AddButton(button
214 BorderStyleRadioButton* button = dynamic_cast<BorderStyleRadioButton*>( local
232 LabelRadioButton* button = dynamic_cast<LabelRadioButton*>(parent); local
[all...]
H A DScrollBarTest.cpp59 // the radio button group for selecting the orientation
70 LabeledRadioButton* button = new OrientationRadioButton("Horizontal", local
72 vGroup->AddChild(button);
73 fOrientationRadioGroup->AddButton(button->GetRadioButton());
76 button = new OrientationRadioButton("Vertical", B_VERTICAL);
77 vGroup->AddChild(button);
78 fOrientationRadioGroup->AddButton(button->GetRadioButton());
114 // We need to get the parent of the actually selected button, since
115 // that is the labeled radio button we've derived our
120 OrientationRadioButton* button local
[all...]
/haiku-fatelf/src/tests/kits/interface/layout/widget_layout_test/
H A DRadioButton.cpp107 for (int32 i = 0; AbstractButton* button = ButtonAt(i); i++)
108 button->RemoveListener(this);
113 RadioButtonGroup::AddButton(AbstractButton* button) argument
115 if (!button || fButtons.HasItem(button))
118 // force radio button policy
119 button->SetPolicy(BUTTON_POLICY_SELECT_ON_RELEASE);
121 // deselect the button, if we do already have a selected one
123 button->SetSelected(false);
126 button
134 RemoveButton(AbstractButton* button) argument
144 AbstractButton* button = (AbstractButton*)fButtons.RemoveItem(index); local
183 SelectButton(AbstractButton* button) argument
213 SelectionChanged(AbstractButton* button) argument
[all...]
H A DRadioButton.h55 void AddButton(AbstractButton* button);
56 bool RemoveButton(AbstractButton* button);
61 int32 IndexOfButton(AbstractButton* button) const;
63 void SelectButton(AbstractButton* button);
69 virtual void SelectionChanged(AbstractButton* button);
/haiku-fatelf/src/apps/showimage/
H A DToolBarView.cpp57 BIconButton* button = new BIconButton(NULL, NULL, message, target); local
58 button->SetIcon(icon);
60 button->SetToolTip(toolTipText);
61 _AddView(button);
82 if (BIconButton* button = _FindIconButton(command))
83 button->SetEnabled(enabled);
90 if (BIconButton* button = _FindIconButton(command))
91 button->SetPressed(pressed);
98 BIconButton* button = _FindIconButton(command); local
99 if (button
140 BIconButton* button = dynamic_cast<BIconButton*>(view); local
[all...]
/haiku-fatelf/src/apps/packageinstaller/
H A DPackageTextViewer.cpp119 BButton *button = new BButton(BRect(0, 0, 1, 1), "accept", local
121 button->ResizeToPreferred();
123 bounds = button->Bounds();
128 button->MoveTo(rect.LeftTop());
129 button->MakeDefault(true);
130 fBackground->AddChild(button);
132 button = new BButton(BRect(0, 0, 1, 1), "decline",
134 button->ResizeToPreferred();
136 bounds = button->Bounds();
138 button
141 BButton *button = new BButton(BRect(0, 0, 1, 1), "accept", local
[all...]
/haiku-fatelf/src/apps/mail/
H A DButtonBar.cpp46 BmapButton* button; member in struct:BBDivider
82 BmapButton* button = new BmapButton(BRect(0, 0, 31, 31), label, label, local
88 fButtonList.AddItem(button, position);
90 fButtonList.AddItem(button);
91 AddChild(button);
92 return button;
97 ButtonBar::RemoveButton(BmapButton *button) argument
99 if (fButtonList.RemoveItem(button)) {
100 RemoveChild(button);
101 delete button;
109 IndexOf(BmapButton *button) argument
125 BmapButton *button; local
228 BmapButton* button; local
[all...]
/haiku-fatelf/src/bin/screen_blanker/
H A DPasswordWindow.cpp57 BButton* button = new BButton(BRect(), "unlock", B_TRANSLATE("Unlock"), local
59 customBox->AddChild(button);
60 button->MakeDefault(true);
61 button->ResizeToPreferred();
62 button->SetTarget(NULL, be_app);
65 button->MoveTo(frame.right - button->Bounds().Width(), frame.bottom + 10.0);
66 customBox->ResizeTo(frame.right + 10.0, button->Frame().bottom + 10.0);
/haiku-fatelf/src/apps/launchbox/
H A DMainWindow.cpp119 LaunchButton* button = dynamic_cast<LaunchButton*>(pointer); local
120 if (button == NULL)
124 if (button->Ref()) {
125 BEntry entry(button->Ref(), true);
131 trackerMessage.AddRef("refs", button->Ref());
143 status_t ret = be_roster->Launch(button->Ref());
147 BPath path(button->Ref());
151 errStr.ReplaceFirst("%1", button->Ref()->name);
158 if (!launchedByRef && button->AppSignature()) {
159 status_t ret = be_roster->Launch(button
184 LaunchButton* button; local
192 LaunchButton* button; local
198 LaunchButton* button; local
206 LaunchButton* button; local
409 LaunchButton* button = new LaunchButton("launch button", local
582 LaunchButton* button = new LaunchButton("launch button", NULL, local
617 LaunchButton* button = new LaunchButton("launch button", NULL, local
[all...]
H A DPadView.h29 void AddButton(LaunchButton* button,
31 bool RemoveButton(LaunchButton* button);
35 LaunchButton* button = NULL) const;
/haiku-fatelf/src/libs/print/libgutenprint/src/gutenprintui2/
H A Dgammacurve.c283 curve->button[i] = gtk_toggle_button_new ();
284 g_object_set_data (G_OBJECT (curve->button[i]), "_StpuiGammaCurveIndex",
286 gtk_container_add (GTK_CONTAINER (vbox), curve->button[i]);
287 g_signal_connect (curve->button[i], "realize",
289 g_signal_connect (curve->button[i], "toggled",
291 gtk_widget_show (curve->button[i]);
297 curve->button[i] = gtk_button_new ();
298 g_object_set_data (G_OBJECT (curve->button[i]), "_StpuiGammaCurveIndex",
300 gtk_container_add (GTK_CONTAINER (vbox), curve->button[i]);
301 g_signal_connect (curve->button[
402 GtkWidget *vbox, *hbox, *label, *button; local
435 gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); local
442 gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); local
[all...]
/haiku-fatelf/src/apps/icon-o-matic/generic/gui/
H A DIconOptionsControl.cpp54 for (int32 i = 0; IconButton* button = _FindIcon(i); i++) {
55 minimax childPrefs = button->layoutprefs();
121 for (int32 i = 0; IconButton* button = _FindIcon(i); i++)
122 button->SetTarget(this);
159 for (int32 i = 0; IconButton* button = _FindIcon(i); i++) {
160 button->SetPressed(button == valueButton);
169 for (int32 i = 0; IconButton* button = _FindIcon(i); i++) {
170 if (button->IsPressed())
180 for (int32 i = 0; IconButton* button
[all...]
/haiku-fatelf/src/add-ons/print/drivers/pdf/source/
H A DFontsWindow.cpp116 BButton *button; local
154 // add a "Embed" button, and make it default
155 button = new BButton(r1, NULL, "Embed", new BMessage(EMBED_MSG),
157 button->ResizeToPreferred();
158 button->GetPreferredSize(&w, &h);
161 button->MoveTo(x, y);
162 button->SetEnabled(false);
163 panel->AddChild(button);
164 button->MakeDefault(true);
165 fEmbedButton = button;
[all...]
/haiku-fatelf/src/apps/sudoku/
H A DProgressWindow.cpp49 BButton* button = new BButton(rect, "abort", B_TRANSLATE("Abort"), local
51 button->ResizeToPreferred();
52 button->MoveBy((rect.Width() - button->Bounds().Width()) / 2, 0);
53 view->AddChild(button);
54 button->SetTarget(referenceWindow);
55 height = button->Frame().bottom;
/haiku-fatelf/src/servers/input/
H A DMouseSettings.cpp24 static const int32 kDefaultMouseType = 3; // 3 button mouse
124 printf("type:\t\t%ld button mouse\n", fSettings.type);
126 fSettings.map.button[0], fSettings.map.button[2],
127 fSettings.map.button[1]);
181 fSettings.map.button[0] = B_PRIMARY_MOUSE_BUTTON;
182 fSettings.map.button[1] = B_SECONDARY_MOUSE_BUTTON;
183 fSettings.map.button[2] = B_TERTIARY_MOUSE_BUTTON;
226 return fSettings.map.button[index];
238 MouseSettings::SetMapping(int32 index, uint32 button) argument
[all...]
/haiku-fatelf/src/preferences/screen/
H A DRefreshWindow.cpp63 BButton* button = new BButton(doneButton->Frame(), "CancelButton", local
66 button->ResizeToPreferred();
67 button->MoveBy(-button->Bounds().Width() - 10, 0);
68 topView->AddChild(button);
75 height = fRefreshSlider->Frame().bottom + button->Bounds().Height() + 20.0f;
H A DAlertView.cpp60 BButton* button = new BButton(rect, "undo", B_TRANSLATE("Undo"), local
62 button->ResizeToPreferred();
63 AddChild(button);
74 = fCountdownView->Frame().bottom + 24 + button->Bounds().Height();
79 button->MoveTo(keepButton->Frame().left - button->Bounds().Width() - 8,
/haiku-fatelf/src/tests/servers/app/look_and_feel/
H A DLookAndFeel.cpp151 BButton* button = new BButton(rect, "normal", "Add Normal Window", local
156 button->GetPreferredSize(&width, &height);
157 button->ResizeTo(rect.Width(), height);
158 view->AddChild(button);
162 rect = button->Frame();
164 button = new BButton(rect, "modal_subset", "Add Modal Subset",
168 view->AddChild(button);
171 button = new BButton(rect, "app_modal", "Add Application Modal",
175 view->AddChild(button);
178 button
[all...]
/haiku-fatelf/src/preferences/mouse/
H A DMouseSettings.cpp27 static const int32 kDefaultMouseType = 3; // 3 button mouse
147 printf("type:\t\t%ld button mouse\n", fSettings.type);
149 fSettings.map.button[0], fSettings.map.button[2],
150 fSettings.map.button[1]);
203 map.button[0] = B_PRIMARY_MOUSE_BUTTON;
204 map.button[1] = B_SECONDARY_MOUSE_BUTTON;
205 map.button[2] = B_TERTIARY_MOUSE_BUTTON;
222 || fSettings.map.button[0] != B_PRIMARY_MOUSE_BUTTON
223 || fSettings.map.button[
316 SetMapping(int32 index, uint32 button) argument
[all...]
H A DMouseView.cpp150 int32 button = -1; local
155 button = i;
159 if (button < 0)
166 button = _ConvertFromVisualOrder(button);
170 message.AddInt32("button", button);
176 menu.ItemAt(getMappingNumber(fSettings.Mapping(button)))
224 bool middlePressed = fType == 3 && (map.button[2] & fButtons) != 0;
229 bool pressed = (fButtons & map.button[_ConvertFromVisualOrde
[all...]
/haiku-fatelf/src/apps/switcher/
H A DApplicationsView.cpp70 LaunchButton* button = new LaunchButton(info.signature, NULL, message, local
72 button->SetTo(&info.ref);
73 AddChild(button);
/haiku-fatelf/src/preferences/screensaver/
H A DPasswordWindow.cpp106 BButton* button = new BButton(BRect(), "done", B_TRANSLATE("Done"), local
108 topView->AddChild(button);
109 button->ResizeToPreferred();
112 button->MoveTo(frame.right - button->Bounds().Width(), frame.bottom + 10.0);
114 frame = button->Frame();
115 button->MakeDefault(true);
117 button = new BButton(frame, "cancel", B_TRANSLATE("Cancel"),
119 topView->AddChild(button);
120 button
[all...]
/haiku-fatelf/src/libs/print/libprint/
H A DAboutBox.cpp65 BButton *button = new BButton(rect, "", "OK", new BMessage(kMsgOK)); local
66 AddChild(button);
67 button->MakeDefault(true);
/haiku-fatelf/src/preferences/filetypes/
H A DTypeListWindow.cpp43 BButton* button = new BButton("cancel", B_TRANSLATE("Cancel"), local
60 .Add(button)
65 button->SetExplicitAlignment(buttonAlignment);

Completed in 256 milliseconds

12345