summaryrefslogtreecommitdiffstats
path: root/include/view-internal.h
diff options
context:
space:
mode:
authorDave Davenport <DaveDavenport@users.noreply.github.com>2016-10-08 18:57:59 +0200
committerGitHub <noreply@github.com>2016-10-08 18:57:59 +0200
commit3c64507f02b36a541c9893dd21b0a45e19a8ba9e (patch)
tree6d91f23333937d98483dcf8d0f8898ec70888f43 /include/view-internal.h
parent0da0587087129825f27df4a6229383be892b3bf0 (diff)
Qtk widgets (#478)
* Initial support for using boxes for packing widgets. * Make CapiTalIzation more consistent * Move widgets to subdirectory * Removed nolonger needed resize function. * Small cleanup * When switching mode, reuse view, don't rebuild it. Reduces artifacts. * Needs cleaning up. * Remove separate prompt argument, use display_name * Simplify run-switcher code. * Add notion of parents, and trigger parent update on resize. * Use widget_get_height wrapper, avoid crash * Size separator width based on height. (indent) * TODO add margin to box. * First draft version of listview. * Add scrollbar to listview widget * Add padding option to box * Move access to global config out of widget. (1/2 done) * Remove printf * Make listview not access global config * Add click support, implement on mode buttons. * Re-introduce mouse handling on list-view. * TODO draggin on scrollbar. * Fix multi-select * Fix warnings * Fix include
Diffstat (limited to 'include/view-internal.h')
-rw-r--r--include/view-internal.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/include/view-internal.h b/include/view-internal.h
index 0c693065..1a9e5a30 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -1,8 +1,10 @@
#ifndef ROFI_VIEW_INTERNAL_H
#define ROFI_VIEW_INTERNAL_H
-#include "widget.h"
-#include "textbox.h"
-#include "scrollbar.h"
+#include "widgets/widget.h"
+#include "widgets/textbox.h"
+#include "widgets/separator.h"
+#include "widgets/listview.h"
+#include "widgets/box.h"
#include "keyb.h"
#include "x11-helper.h"
@@ -16,27 +18,21 @@
struct RofiViewState
{
Mode *sw;
- unsigned int menu_lines;
- unsigned int max_elements;
- unsigned int max_rows;
- unsigned int columns;
-
- unsigned int element_width;
- int top_offset;
// Update/Refilter list.
- int update;
int refilter;
int rchanged;
- unsigned int cur_page;
+ box *main_box;
// Entries
+ box *input_bar;
+ separator *input_bar_separator;
+
+ textbox *prompt;
textbox *text;
- textbox *prompt_tb;
- textbox *message_tb;
textbox *case_indicator;
- textbox **boxes;
- scrollbar *scrollbar;
+
+ listview *list_view;
// Small overlay.
textbox *overlay;
int *distance;
@@ -45,7 +41,6 @@ struct RofiViewState
unsigned int num_lines;
// Selected element.
- unsigned int selected;
unsigned int filtered_lines;
// Last offset in paginating.
unsigned int last_offset;
@@ -58,11 +53,11 @@ struct RofiViewState
// Return state
unsigned int selected_line;
MenuReturn retv;
- int line_height;
unsigned int border;
workarea mon;
// Sidebar view
+ box *sidebar_bar;
unsigned int num_modi;
textbox **modi;