blob: c4fedc64af6e7961ba01b19f45741989042f0188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
#define CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
#include <gtk/gtk.h>
#include <string>
#include "base/basictypes.h"
class OptionsLayoutBuilderGtk {
public:
explicit OptionsLayoutBuilderGtk();
GtkWidget* get_page_widget() {
return page_;
}
// Adds an option group to the table. Handles layout and the placing of
// separators between groups. If expandable is true, the content widget will
// be allowed to expand and fill any extra space when the dialog is resized.
void AddOptionGroup(const std::string& title, GtkWidget* content,
bool expandable);
private:
// The parent widget
GtkWidget* page_;
DISALLOW_COPY_AND_ASSIGN(OptionsLayoutBuilderGtk);
};
#endif // CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
|